summaryrefslogtreecommitdiff
path: root/sbin/dhclient
AgeCommit message (Collapse)Author
2005-04-11use STDERR_FILENOTheo de Raadt
2005-04-11handle snprintf returning -1; ok henningTheo de Raadt
2005-04-11use writev; ok henningTheo de Raadt
2005-04-09document that dhclient-script overwrites resolv.conf,Jason McIntyre
and use of resolv.conf.tail; issue spotted by rick barter via nick; ok henning@ jaredy@ nick@
2005-04-09incorrect apostrophe (in comment);Jason McIntyre
2005-04-08protect read() on rtsock against interruptions by signal, foudn with djmHenning Brauer
while looking for sth else
2005-04-02spacingTheo de Raadt
2005-04-02fix indentation both, michael knudsenHenning Brauer
2005-04-02allow _ in hostnames, but complain since this is not legal, but there isHenning Brauer
no point in punishing openbsd users in fucked up networks From: Michael Knudsen <e@molioner.dk> with input from theo and me
2005-03-02bad news to have a .Bl before .Ss;Jason McIntyre
2005-02-06"no link .got link" => "no link .... got link". i.e. always displayKenneth R Westerback
complete ellipsis ('...') and a following space. ok beck@
2004-12-26snprintf return value paranoia; henning okTheo de Raadt
2004-12-05extend window of "ignoring route messages on the socket" for 10 secondsTheo de Raadt
instead of 3.
2004-11-25Ignore 0.0.0.0 in RTM_NEWADDR messages as these messages are generated byClaudio Jeker
dhclient. This fixes the dhclient exiting problem reported by Steve Shockley. This is a fast fix for the problem acctually the dhclient-script needs to be replaced. OK henning@ deraadt@
2004-11-02delint gunk approved by otto a while backTheo de Raadt
2004-11-01much to my surprise a minute has only 60 seconds, and the hour 60 minutes,Henning Brauer
not 70 :( From: Jorden Verwer <J.Verwer@inter.NL.net>
2004-09-21spelling fixes; ok jmc@ henning@David Krause
2004-09-15use ftello() instead of ftell() where betterTheo de Raadt
2004-09-15variable set but not usedTheo de Raadt
2004-09-15no \n in error() calls and minor KNF, from Moritz Jodeit <moritz@jodeit.org>Henning Brauer
2004-08-30Avoid spinning if the server gives us a bogus zero lease time, byOtto Moerbeek
enforcing a minimum lease time of 60s. ok deraadt@ henning@
2004-08-24revert r1.16, dhclient has to work without a config file at least on theHenning Brauer
install media, theo ok
2004-07-07make the shell script execution window 3 seconds. i really need to findTheo de Raadt
a better solution...
2004-07-04properly bitch when we cannot open the config file, basically resemblingHenning Brauer
a diff from Damir Horvat <damir@x-si.org> which didn't apply cleanly
2004-06-23better dead detect window code; still crapTheo de Raadt
2004-06-22horrid horrid horrid. we have a race window where we, ourselves, do anTheo de Raadt
address deletion. yesterday we stopped ignoring deletions. but now dhclient does not see itself coming up, and voila, we get more and processes. so now make a 5-second window where we ignore delete messages, but terminate if we get them at any other time. a very relucant ok from henning who is actively searching for a final solution to this problem.
2004-06-22do not exit on RTM_DELADDR, dhclient can cause this itself under some rareHenning Brauer
circumstances. instead, exit on RTM_NEWADDR if, and only if, the new IP address is not a lease we got. theo ok
2004-06-22handle interface removals in the poll loop. ok henning@Can Erkin Acar
2004-06-03fall back to "nobody" when the _dhcp user is not available, theo bob okHenning Brauer
2004-05-13don't leave this file open, ok henning@Peter Stromberg
2004-05-13when trying to rewrite the lease file, and if the lease file is alreadyHenning Brauer
opened, do not close and re-open it, which of course fails once we're chrooted and privilege revoked, but rewind the file and truncate later on as needed. makes wilfried@ and Ben Lovett happy (aka, they tested)
2004-05-10missing casts spotted by 64 bit ccTheo de Raadt
2004-05-10knfTheo de Raadt
2004-05-08unbreakHenning Brauer
2004-05-07Error out on attempts to inject command or variable substitutionKenneth R Westerback
into dhclient-script environment variables. Inspiration from todd@. ok henning@ deraadt@.
2004-05-06remove more unused codeTheo de Raadt
2004-05-06Support ADSL routers running in half-bridge mode or acctuallyClaudio Jeker
almost-broken mode. It seems these devices do proxyarp for the whole internet and do not provide a real default gateway. Fix for and from PR3747 by Andrew Basterfield. OK deraadt@ makes sense krw@
2004-05-05line wrapTheo de Raadt
2004-05-05knfTheo de Raadt
2004-05-05spacingTheo de Raadt
2004-05-05must simulate daemon because already inside the jail; henning okTheo de Raadt
2004-05-05bpf write filter, and lockTheo de Raadt
2004-05-05open the lease file after the priv child was forked off so it doesn't haveHenning Brauer
a copy of this fd
2004-05-05routefd needs to be opened slightly laterHenning Brauer
2004-05-05use tzset() before chrootingHenning Brauer
2004-05-05open bpf and routefd a little later, after forking the priv child so itHenning Brauer
doesn't get copies of those fds
2004-05-04do not overload libc function names causing linker troublesMichael Shalayeff
2004-05-04knfTheo de Raadt
2004-05-04remove things not used, spotted by lint mostly; ok henningTheo de Raadt
2004-05-04use SIZE_T_MAX, canacarHenning Brauer