summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/common/memory.c
AgeCommit message (Collapse)Author
2001-06-24dhcp 2.0pl5 merge/cleanup/deadcode slashing. still needs more eyes on thisBob Beck
but appears to work better than what's been in-tree before for dealing with stupid dhcp servers.
2000-07-21Deal with a bunch of dhcp issues, ok fries@:Bob Beck
- some minor cleanup (syscall return codes, dead code, use strlcpy, etc) - sanity check dhcp option values recieved by dhclient so that things that should look like a hostname look like a hostname, and things that should look like an ip address look like an ip address, if they don't ignore the lease offer because it's bogus. - Make the dhcp server attempt to ping an address when it recieves a RELEASE from it. If the address answers a ping, ignore the release offer. This helps make spoofing releases to liberate addresses more difficult.
2000-06-23fix dhcpd to not abandon addresses forever when they are pinged before useBob Beck
which creates a nice denial of service when people use static addresses in the dhcp range. - instead abandon the address only for the default lease time so that it may be re-used afterwards. Tested and committed with aaron and jason while drinking beer and wearing balloons on my head in the bar at the USENIX party.
1998-08-18ISC dhcp, needs security audit for sureTheo de Raadt