summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp
AgeCommit message (Collapse)Author
2002-05-30typo; moritz@jodeit.orgTheo de Raadt
2002-05-07spelling; svs@ropnet.ruTheo de Raadt
2002-05-06syslog() paranoia; never pass in a non-const buffer w/o using "%s"Todd C. Miller
2002-03-25make docs match reality - we don't support hooks in dhclient-scriptBob Beck
2002-03-052nd part to make dhcpd work on sparc64:Jason Wright
remove use of SIOCGIFCONF and use getifaddrs()/freeifaddrs() instead
2002-02-28no, that error message was bad.Bob Beck
2002-02-28Some new servers return the hostname as type XBob Beck
this ensures we check against the right thing and don't reject leases when we shouldn't.
2002-02-17fix LP64 bug; ura@hiru.aoba.yokohama.jpTheo de Raadt
2002-02-06Don't pass long*'s to ioctl's expecting int*'s (part 1 of a 2 part fix forJason Wright
sparc64 dhcpd)
2001-10-08force alignment, makes dhcp work on alpha'sEric Jackson
from netbsd. deraadt@ Ok.
2001-10-08Link order tweak so vax crunches happily.Hugh Graham
2001-10-01change broken urlJakob Schlyter
2001-09-11sparc64 has 64 bit pointers, tooJason Wright
2001-08-28fix a segfault occuring in dhclient when the server specifies his name.Matthieu Herrb
ok beck@
2001-08-26Fix typo: 'On after defining ...' -> 'After defining ...'Kenneth R Westerback
2001-08-26Fix two typos that had the effect that ethernet addresses where always loggedMatthieu Herrb
as <null> and that hostname lookups didn't work, forcing people to use IP adresses instead of names. ok krw@
2001-08-18be careful with snprintf/strlcpy - account for cases where theyBob Beck
can return values bigger than the length specified.
2001-07-04check for nul bytes on the end of an option buffer, since windows 2000Bob Beck
erroneously puts them into hostname and the like returned by a dhcp server.
2001-07-03ENODEV -> EOPNOTSUPP to make this work. beck@ ok.Tobias Weingartner
2001-06-27don't die if IPV6 isn't there, so that this will work even withBob Beck
kernels without IPV6 support.
2001-06-25fix nasty little bug in the identifaction of dead interfaces - make sureBob Beck
we only care about stuff associated with an interface.
2001-06-24Old M of mine, uncovered by the recent dhcpd update: Bypass IPsec in allNiklas Hallqvist
DHCP traffic.
2001-06-24bye byeBob Beck
2001-06-24bye byeBob Beck
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.
2001-06-04Chop off remainder of string, so we don't get mangled options.Angelos D. Keromytis
2001-04-25After tree lock, undo a bullshit change that was obviously NOT tested.Theo de Raadt
Come on guys! Will you ever learn to not put radical untested shit into the source tree in the last few weeks before a release? A few of you do this time after time!
2001-04-10Allow unnatural behavior.Chris Cappuccio
Otherwise, some dhcp clients are not able to get a lease at all... ok beck@
2001-02-23cleanup after vacationing hippies and make dhclient create theBob Beck
dhclient.leases file if it doesn't exist, so that install floppies work again, thanks Brian Kifiak <bk@rt.fm>
2001-01-14Compute UDP checksum, PR 1621 (matthieu.herrb@wanadoo.fr)Angelos D. Keromytis
2001-01-06Commit 1.6 was just plain wrong on two counts; as a result, it causedAngelos D. Keromytis
dhclient to complain about options.
2001-01-06Also protect write_client_lease() in bind_lease()Angelos D. Keromytis
2001-01-06Lock the leases file, to protect against multiple instances ofAngelos D. Keromytis
dhclient running.
2001-01-03-Wall cleanup.Eric Jackson
roll a function for writing out pidfile's instead of rolling it for each program. be careful with a few more buffers
2000-12-30setockopt(SO_REUSEPORT), so multiple dhclients work, PR 1391Angelos D. Keromytis
2000-12-29If no LEASE_TIME was received from the server, use theAngelos D. Keromytis
default_lease_time (12 hours); I'm not entirely certain the fallback is correct, but the RFC does not say what the client should do if no LEASE_TIME is given by the server. Closes PR 1077
2000-11-10seperate -> separate, okay aaron@Niels Provos
2000-10-30accept unknown options in leases by default; beckTheo de Raadt
2000-10-26Close pr1295 - Only a DHCPNAK bootreply should have a yiaddr of 0.0.0.0,Bob Beck
this makes sure we ignore bootreplies that aren't NAK's which have a 0 yiaddr.
2000-10-20Fix various typos; spotted by gluk@ptci.ru.Aaron Campbell
2000-10-18this was overlooked in the last commit. ok beck@.Todd T. Fries
2000-10-18due to over agressive quoting, various space separated variables were failing.Todd T. Fries
o remove un-necessary quotes, the source of several reported problems. o remove un-necessary variable assignments (paranoia) o remove un-necessary cases (when var="", $var evaluates to nothing) Ok beck@, testing by beck@.
2000-09-05undo security hole peter just commitedTheo de Raadt
2000-09-05Remove quotes from arguement lists to for loops.Peter Galbavy
This applied to two type of dhcp option, "domain_name_servers" and "routers". This fixes the problem of seeing mutliple nameservers on one nameserver line in resolv.conf. If anyone used multiple routers, then it would fix this too.
2000-08-18Fix obviously bad XrefNiklas Hallqvist
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-07-03arp(8) invocations fixedNiklas Hallqvist
2000-06-29use %s with syslog; millert wrote an identical patchTheo de Raadt
2000-06-25safe shell quotingDug Song
2000-06-25pass variables to dhclient-script via a constructed environment, instead of ↵Dug Song
a temporary shell script