summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp
AgeCommit message (Collapse)Author
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
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.
2000-04-29fix spec. PR1217Eric Jackson
2000-04-20Document /etc/resolv.conf.tailAngelos D. Keromytis
2000-04-20If /etc/resolv.conf.tail exists, append to newly-constructedAngelos D. Keromytis
/etc/resolv.conf
2000-04-12Trailing whitespace begone!Aaron Campbell
2000-03-19Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some otherAaron Campbell
cleanup along the way.
2000-02-11Fix from jonathon.fletcher@pobox.comChris Cappuccio
Check $new_domain_name_servers not $nameserver
2000-02-09I need to get rid of local stuff of my tree. Here is an oldNiklas Hallqvist
patch to deal with machines with many interfaces, myself, I have 256 loopbacks on my laptop.
2000-01-31Don't update /etc/resolv.conf if no data is returned for DNS serversChris Cappuccio
or if user removes request domain-name-servers from /etc/dhclient.conf
1999-12-19Fix the TIMEOUT case not to dump the shell environment.Angelos D. Keromytis
1999-12-04Careful with long, command-line provided interface names.Angelos D. Keromytis
1999-11-30Fix the "append" keyword to work as it should (looks like it was aAngelos D. Keromytis
cut-n-paste of "prepend")
1999-11-15Consistify DHCP man page titles somewhat; d@, sebastion@irelandmail.comAaron Campbell
1999-10-05New mdoc'd dhclient(8) man page; form@Aaron Campbell
1999-09-23Typo fixes.Alex Feldman
1999-06-06permit non-broadcast reply; map@infinitum.chTheo de Raadt
1999-06-05remove trailing whitespace, some Nm cleanupAaron Campbell
1999-05-30check mkstemp() failureTheo de Raadt
1999-05-30It's spelled "occurrence". Also a few other minor mods while I'm at it.Paul Janzen
1999-05-15ethernet -> Ethernet, other repairsAaron Campbell
1999-05-12grammar police: do not hyphenate compound words that act as adjectives if theAaron Campbell
first word ends in -ly i.e., fully-qualified, newly-created, globally-visible, etc. are wrong
1999-04-21seperate -> separate, people really need to learn how to spell this wordAaron Campbell
1999-02-11ship lease time in network order; cas@trans-nt.comTheo de Raadt
1999-02-11tweakTheo de Raadt
1998-11-24grammerTheo de Raadt
1998-09-20add -1 option: Try once, if we fail, EXITTheo de Raadt
1998-09-17dhclient-script should be in sbinTheo de Raadt
1998-09-17move dhclient-script to /usr/bin by default; executables do not belong in /etcTheo de Raadt