Tidy up
This commit is contained in:
parent
e8e49589ec
commit
dd5eeccf7a
@ -305,7 +305,6 @@ class DHCPServer(object):
|
|||||||
self.DHCP_SERVER_PORT = self.SETTINGS['DHCP']['SERVER_PORT']
|
self.DHCP_SERVER_PORT = self.SETTINGS['DHCP']['SERVER_PORT']
|
||||||
self.MAX_BYTES = self.SETTINGS['DHCP']['MAX_BYTES']
|
self.MAX_BYTES = self.SETTINGS['DHCP']['MAX_BYTES']
|
||||||
self.TFTP_SERVER_IP = self.SETTINGS['TFTP']['SERVER_IP']
|
self.TFTP_SERVER_IP = self.SETTINGS['TFTP']['SERVER_IP']
|
||||||
|
|
||||||
|
|
||||||
def create_socket(self):
|
def create_socket(self):
|
||||||
'''
|
'''
|
||||||
|
9
midas
9
midas
@ -13,12 +13,3 @@ if __name__ == '__main__':
|
|||||||
provisioning.render(topology)
|
provisioning.render(topology)
|
||||||
dhcp_server = DHCPServer(SETTINGS_FILE='settings.yaml')
|
dhcp_server = DHCPServer(SETTINGS_FILE='settings.yaml')
|
||||||
dhcp_server.run(topology)
|
dhcp_server.run(topology)
|
||||||
|
|
||||||
# Todo
|
|
||||||
# 1. Implement giaddr inspection as backup to packet source address, current using socket source IP instead
|
|
||||||
# Not needed? Adds further complexity and lines of code, socket already reports source IP address
|
|
||||||
# 2. Add fingerprints / persistent lease storage system (ensure that duplicate packets are only printed once, i.e. Cisco sends multiple release packets)
|
|
||||||
# 3. Work out what variables can be made more dynamic, i.e. reply packet options - build from a YAML file?
|
|
||||||
# 4. Make IP allocation & config var (YAML) generation automatic
|
|
||||||
# 5. Implement socket.inet_aton() function
|
|
||||||
# 6. PCAP from PC to capture DHCP option values that are not yet printed in a human readable format
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user