summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
AgeCommit message (Expand)Author
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
2005-07-13minor knfTheo de Raadt
2005-07-13Repair/rationalize option handling to ensure valid option section isKenneth R Westerback
2005-07-09Clean out a few more unused/uninitialized variables.Kenneth R Westerback
2005-07-08Eliminate unused code and associated parameters.Kenneth R Westerback
2005-07-07Eliminate unused code and associated parameter.Kenneth R Westerback
2005-07-07Eliminate tree_cache structure in favour of option_data. EliminateKenneth R Westerback
2005-07-07Expunge two unused fields (buf_size, timeout) in tree_cache structure.Kenneth R Westerback
2005-05-29robustness against malformed snames.marius eriksen
2005-04-08protect read() on rtsock against interruptions by signal, foudn with djmHenning Brauer