[Click] Patch for dhcpclient.cc/dhcpclient.hh and arpquerier.cc/arpquerier.hh

Nicholas Weaver nweaver at ICSI.Berkeley.EDU
Thu Apr 15 17:54:01 EDT 2010


Adds two new read handlers, "gateway" and "netmask", which return the DHCP-provided gateway router and netmask respectively.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dhcp_diff.txt
Url: http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20100415/9793578a/attachment.txt 
-------------- next part --------------


Useful in combination with the following patch to arpquerier.cc/arpquerier.hh, which adds a new read/write handler for gateway and netmask.  

When those are set, and the destination is not on the same subnet, it instead ARPs for the gateway machine.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: arp_diff.txt
Url: http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20100415/9793578a/attachment-0001.txt 
-------------- next part --------------


Together, this allows for a click configuration to grab a DHCP lease (for whatever MAC address is desired) and then make sure that packets to the subnet are ARP'ed as usual, but packets to other networks are sent directly to the gateway.



More information about the click mailing list