Skip to content

Future Work

Arvind Ramachandran edited this page Dec 1, 2017 · 27 revisions

Features Implemented

Proposed Changes To Make The Code Scalable

  • Server should be capable of storing a set of address pools which can be assigned to clients requesting an IP from multiple subnets.

    • The current server configuration provides IP addresses to incoming clients from a single address pool.
    • This pool consists of IP addresses from only the server's subnet.
    • The InstallDhcpServer() function adds all the attributes of the server including its own IP address and launches the start application.
    • This should be split into 2 separate functions :
      • ApplicationContainer InstallDhcpServer(Ptr<NetDevice> netDevice, Ipv4Address serverAddr, Ipv4Mask Mask)

        This function will allocate the server IP address to the Ptr argument passed, install a default traffic control configuration, creates a DHCP server app and returns that pointer.

      • void AddAddressPool(ApplicationContainer dhcpServerApp, Ipv4Address minAddr, Ipv4Address maxAddr, Ipv4Address gateway)

        It will add the IP addresses in the given range i.e. within minAddr and maxAddr, as a pair along with given gateway to m_availableAddresses (a map consisting of gateway and IP addresses allocatable a subnet).

Clone this wiki locally