#!/usr/bin/python
+import sys.path
+sys.path.append('pydhcplib/')
import pydhcplib
+import pydhcplib.dhcp_network
from pydhcplib.dhcp_packet import *
from pydhcplib.type_hw_addr import hwmac
from pydhcplib.type_ipv4 import ipv4
+import event_logger
+if '__main__' == __name__:
+ event_logger.init("stdout", 'INFO', {})
from event_logger import Log
import sipb_xen_database
Log.Output(Log.debug, "__init__ DhcpServer")
def SendPacket(self, packet):
- """Encode and send the packet."""
+ """Encode and send the packet."""
giaddr = packet.GetOption('giaddr')
# FIXME : what if false ?
if '__main__' == __name__:
- event_logger.init("stdout", event_logger.INFO, {})
options = { "server_listen_port":67,
"client_listen_port":68,
"listen_address":"0.0.0.0"}