This commit is contained in:
Dom 2023-10-08 00:29:00 +01:00
parent e8e49589ec
commit dd5eeccf7a
2 changed files with 0 additions and 10 deletions

View File

@ -305,7 +305,6 @@ class DHCPServer(object):
self.DHCP_SERVER_PORT = self.SETTINGS['DHCP']['SERVER_PORT']
self.MAX_BYTES = self.SETTINGS['DHCP']['MAX_BYTES']
self.TFTP_SERVER_IP = self.SETTINGS['TFTP']['SERVER_IP']
def create_socket(self):
'''

9
midas
View File

@ -13,12 +13,3 @@ if __name__ == '__main__':
provisioning.render(topology)
dhcp_server = DHCPServer(SETTINGS_FILE='settings.yaml')
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