Changeset 190


Ignore:
Timestamp:
Oct 11, 2007, 4:09:01 AM (17 years ago)
Author:
root
Message:

Bugfixes to make it run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dhcp/dhcpserver.py

    r189 r190  
    11#!/usr/bin/python
     2import sys.path
     3sys.path.append('pydhcplib/')
    24import pydhcplib
     5import pydhcplib.dhcp_network
    36from pydhcplib.dhcp_packet import *
    47from pydhcplib.type_hw_addr import hwmac
    58from pydhcplib.type_ipv4 import ipv4
    69
     10import event_logger
     11if '__main__' == __name__:
     12    event_logger.init("stdout", 'INFO', {})
    713from event_logger import Log
    814
     
    7177
    7278    def SendPacket(self, packet):
    73             """Encode and send the packet."""
     79        """Encode and send the packet."""
    7480       
    7581        giaddr = packet.GetOption('giaddr')
     
    150156
    151157if '__main__' == __name__:
    152     event_logger.init("stdout", event_logger.INFO, {})
    153158    options = { "server_listen_port":67,
    154159                "client_listen_port":68,
Note: See TracChangeset for help on using the changeset viewer.