summaryrefslogtreecommitdiff
path: root/sbin/dhclient
AgeCommit message (Collapse)Author
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
2004-05-04more shrink and lint fixes; henning okTheo de Raadt
2004-05-04$OpenBSD$Henning Brauer
2004-05-04prevent the len params from overflowing, catched by & ok canacarHenning Brauer
2004-05-04Fix memory leak, ok henning@Can Erkin Acar
2004-05-04zap some spacesTheo de Raadt
2004-05-04privilege seperate dhclient.Henning Brauer
the privileged child's duty is the dhclient-script env setup & exection. the parent process now chroots to /var/empty and drops privileges to _dhcp mostly hacked at vancouver airport with some feedback from krw@ and otto@, tested to not break installs by krw@
2004-04-18zap comment; han@mijncomputer.nlTheo de Raadt
2004-04-15more AUTHORS update;Jason McIntyre
ok henning@
2004-04-14get rif of the few dmalloc/dfree occurances that were leftHenning Brauer
2004-04-14turns out more is obsolete nowHenning Brauer
inspired by diff from Emil Mikulic <emikulic@dmr.ath.cx>
2004-04-14prototypes fixupHenning Brauer
2004-04-13unfortunately we have to wait a little if the nic does not have a link andHenning Brauer
check again, theo help & ok
2004-04-12spacingTheo de Raadt
2004-04-12simplify, from Han Boetes & pb@, theo okHenning Brauer
2004-04-09remove some excess from AUTHORS, and slight update;Jason McIntyre
requested by henning, and discussed w/ him and deraadt; ok henning@
2004-04-08sync with reality, mostly from jmcHenning Brauer
2004-04-08fix usage(), jmcHenning Brauer
2004-04-08-l can overwrite the path to the leases file, noticed by millertHenning Brauer
2004-04-07reflect reality. with lots of help from jmc@Henning Brauer
2004-04-07remove -D option which had no effect whatsoverHenning Brauer
2004-04-07since we removed all the multiple interfaces crap, we now need a leaseHenning Brauer
file per interface, and not one for all. Use /var/db/dhclient.leases.IFNAME discussed with pb@ quite some time ago, ok tdeval@ beck@
2004-04-07fix a logic botch in discover_interfaces that prevented dhclient to seeHenning Brauer
any but the first real interface found yesterday evening at RATT when dhclient would not get me a lease on wireless
2004-04-04Emil Mikulic pointed out there are two copies of this stuff (thanks!) ...Jason McIntyre
- correct option is `dhcp-lease-time', not `requested-lease-time'; fixed w/ help from krw@ - kill a rake of unnecessary .Pp's
2004-03-05remove even more gooTheo de Raadt
2004-03-02more pruning; henning okTheo de Raadt
2004-03-02use daemon(3) instead of homebrown gunkHenning Brauer
2004-03-02zap unused and empty functions and some glorious very much needed commentsHenning Brauer
that explain us that "if (foo > 255) { error() } " ensures that foo is not bigger than 255
2004-03-02zap interface flagsHenning Brauer