i was inspired to improve this program written by someone else... not my code. here was the source: http://trac.secdev.org/scapy/wiki/DhcpTakeover
i'm very impressed with scapy; forking dhcptakeover strikes me as an excellent way to learn more about dhcp and scapy.