Changeset 190
- Timestamp:
- Oct 11, 2007, 4:09:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dhcp/dhcpserver.py
r189 r190 1 1 #!/usr/bin/python 2 import sys.path 3 sys.path.append('pydhcplib/') 2 4 import pydhcplib 5 import pydhcplib.dhcp_network 3 6 from pydhcplib.dhcp_packet import * 4 7 from pydhcplib.type_hw_addr import hwmac 5 8 from pydhcplib.type_ipv4 import ipv4 6 9 10 import event_logger 11 if '__main__' == __name__: 12 event_logger.init("stdout", 'INFO', {}) 7 13 from event_logger import Log 8 14 … … 71 77 72 78 def SendPacket(self, packet): 73 79 """Encode and send the packet.""" 74 80 75 81 giaddr = packet.GetOption('giaddr') … … 150 156 151 157 if '__main__' == __name__: 152 event_logger.init("stdout", event_logger.INFO, {})153 158 options = { "server_listen_port":67, 154 159 "client_listen_port":68,
Note: See TracChangeset
for help on using the changeset viewer.