summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
AgeCommit message (Expand)Author
2009-03-31claudio has spent too much time with the mbuf macros.David Gwynne
2009-03-10Add 6-byte MAC address to the log entries for DHCP ACK/NAK/OFFER.Kenneth R Westerback
2009-02-01Let this compile with gcc2.Miod Vallat
2009-01-28use claudios new rtsocket filters to restrict which messages on the routeDavid Gwynne
2009-01-10Use the kernel set ifam_hdrlen so that ABI changes won't cause olderClaudio Jeker
2008-06-07stop spurious "got link" which nooone noticed, but everyone should have; ok krwTheo de Raadt
2008-05-26If an interface has no link at startup, try to force it up, and thenTheo de Raadt
2008-05-09- don't give up when the link is not available on startup: dhclientReyk Floeter
2008-03-12Code was not passing script exit status; fix with macro.Hugh Graham
2007-10-16sync the synopsis and usage of commandsIgor Sobrado
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-14make default_lease_time a #define; ok krw@ henning@Kevin Steves
2007-07-18eliminate duplicate code to open lease file and just open atKevin Steves
2007-06-02safer snprintf construct with more paranoid length calculationPeter Valchev
2007-02-25No point in using zero'd fields in the parsed options. Use the optionsKenneth R Westerback
2007-02-25remove unused/dangling prototypes and comment reference;Kevin Steves
2007-02-13move includes only needed in dhclient.c; ok henning@Kevin Steves
2007-02-13error check socket() return; ok henning@Kevin Steves
2007-01-29Don't malloc memory to store option data in leases, just appropriateKenneth R Westerback
2007-01-27We only poll on the bpf fd and the routing socket fd. No need forKenneth R Westerback
2007-01-25Cleanup some more code. Eliminate dhcp(), bootp(), parse_options() byKenneth R Westerback
2007-01-16More cleanup. Eliminate 'struct packet' by cleverly passing asKenneth R Westerback
2007-01-11Since bootp_packet_handler is always set to do_packet before weKenneth R Westerback
2007-01-04Eliminate the 'len' parameter from send_packet() since it alwaysKenneth R Westerback
2007-01-04Another round of cleanup. There is only one instance of structKenneth R Westerback
2006-12-28please lintTheo de Raadt
2006-12-28parenthesis not needed here; consistent with usage in other areas.Kevin Steves
2006-12-28small knf (extra space, newline)Kevin Steves
2006-12-28no extra "\n" in note(); ok krw@ henning@Kevin Steves
2006-12-27Since we only have the single global struct interface_info, weKenneth R Westerback
2006-12-26Our dhclient only handles one interface. Simplify code by using theKenneth R Westerback
2006-12-26There must be no alias address set, so check ifi->client->aliasMoritz Jodeit
2006-12-18this is clearer and consistent with other areas; ok henning@Kevin Steves
2006-12-17remove ASSERT_STATE() macro which is a NOOP, no binary change; ok henning@Kevin Steves
2006-12-15KNFKevin Steves
2006-11-27correct commentKevin Steves
2006-09-24No point in checking for a NULL ifi after we've used it. Plus ifi isKenneth R Westerback
2006-08-31adjust link detection further: if no link, bring interface up and checkTheo de Raadt
2006-08-29some net if devices do not media negotiate (for link) until brought up.Theo de Raadt
2006-06-16always change the working directory of the priv child to the rootReyk Floeter
2006-06-01Don't treat the addition of a dhclient.conf 'alias{}' address as anKenneth R Westerback
2006-05-31Fix 'special value 0 requests that dhclient not wait for a link stateKevin Steves
2006-05-08add 'link-timeout n' seconds option to grammer, from fkr@hazardous.orgTheo de Raadt
2006-03-06convert permanent privilege revocation to use setresuid/setresgid;Damien Miller
2005-10-26put the 100% right r1.79 back in, that is still as right as it was the firstHenning Brauer
2005-08-27backout unapproved diffTheo de Raadt
2005-08-25when we get an invalid hostname in an option, bitching a moaning is ok,Henning Brauer
2005-08-07Simplify code by calling error() from inside buf_* functions ratherKenneth R Westerback
2005-08-02Rip out code dealing with multiple/nested interfaces. Each instance ofKenneth R Westerback
2005-07-16Eliminate unnecessary 'code' field from struct option. MakeKenneth R Westerback