summaryrefslogtreecommitdiff
path: root/sbin/dhclient
AgeCommit message (Collapse)Author
2005-07-29Fix erroneous use of '=' instead of '+' that caused infinite loopsKenneth R Westerback
when skipping packets. Use BPF_WORDALIGN() to properly skip packets. From Brooks Davis at FreeBSD. ok deraadt@ henning@
2005-07-26Fix buffer overflows in dhcpd and dhclient. Closes PR#4306.Kenneth R Westerback
ok henning@
2005-07-23Our dhclient.conf lives in /usr/src/etc.Kenneth R Westerback
ok henning@
2005-07-17No longer used.Kenneth R Westerback
2005-07-17Insist on correct hardware addresses in dhclient.conf andKenneth R Westerback
dhclient.leases.<if> files. Simplify parse_numeric_aggregate() as a result, rendering tree.c and tree.h redundant. ok millert@
2005-07-16No longer used.Kenneth R Westerback
2005-07-16Rejig struct string_list to use char array rather than char pointer, andKenneth R Westerback
eliminate new_parse_string. alloc.c becomes redundant. Junk a couple of unused fields (env, envc) in struct client_state. suggestions by & ok millert@
2005-07-16fix printing of hostname, from brooks davis via jmcHenning Brauer
2005-07-16back out last; breaks in cases where we want hex and the last byte is 0Henning Brauer
2005-07-16NULL is not a time_t. From brooks at freebsd.Kenneth R Westerback
2005-07-16Eliminate unnecessary 'code' field from struct option. MakeKenneth R Westerback
dhcp_options const. ok henning@
2005-07-15Fix handling of comma separated option value lists, broken in r1.20.Kenneth R Westerback
Found and fix tested by Moritz Jodeit.
2005-07-15let pretty_print_option() handle trailing nul bytes correctly (i. e. don'tHenning Brauer
let a trailing nul byte force hex printing) FreeBSD PR 83468 by Sean Winn <sean@gothic.net.au>, via jmc@
2005-07-13spacingTheo de Raadt
2005-07-13minor knfTheo de Raadt
2005-07-13Repair/rationalize option handling to ensure valid option section isKenneth R Westerback
always sent. Fold store_options into cons_options. Eliminate priority list of options. ok deraadt@
2005-07-11krw stopped use of hash.cTheo de Raadt
2005-07-11spacingTheo de Raadt
2005-07-11Expunge unused hashing code and variables.Kenneth R Westerback
2005-07-11Dispense with the overhead of creating a hash just to lookup theKenneth R Westerback
option name. Just iterate over the 256 option names. Only the first 80 or so are used anyway. Eliminating now unused hash code will follow. ok henning@ millert@ beck@
2005-07-09Clean out a few more unused/uninitialized variables.Kenneth R Westerback
ok millert@
2005-07-09Clean out a few more unused/uninitialized variables.Kenneth R Westerback
ok henning@
2005-07-09Since we never add more than the default dhcp_universe, expunge theKenneth R Westerback
code to handle mulitple 'vendor' universes. Don't bother with a specific error message about 'vendor'. An unsupported option is an unsupported option, and a '.' in an option name is a syntax error. ok henning@
2005-07-08More dead and moribund code removal/cleanup. This time unused parametersKenneth R Westerback
and associated code for store_options(). ok henning@
2005-07-08Eliminate unused code and associated parameters.Kenneth R Westerback
ok deraadt@
2005-07-07Eliminate unused code and associated parameter.Kenneth R Westerback
ok deraadt@ millert@.
2005-07-07Eliminate tree_cache structure in favour of option_data. EliminateKenneth R Westerback
redundant level of indirection in building and using option_data arrays while constructing outgoing packets. Make option_data len field unsigned. ok henning@. 'cool!' deraadt@.
2005-07-07Expunge two unused fields (buf_size, timeout) in tree_cache structure.Kenneth R Westerback
ok millert@ deraadt@ henning@
2005-07-07Expunge two unused fields (buf_size, timeout) in tree_cache structure.Kenneth R Westerback
ok millert@ deraadt@ henning@
2005-06-27reference bpf(4); from alexey e. suslikov;Jason McIntyre
2005-06-02Make buf_add a no-op if length == 0. OK henningChad Loder
2005-06-01snprintf returns an int, not a size_t. OK deraadt@Chad Loder
2005-05-29robustness against malformed snames.marius eriksen
ok henning@
2005-05-24no more 'ifconfig $if 0.0.0.0 up' only 'ifconfig $if up' since dhclientTodd T. Fries
uses bpf exclusively ok deraadt@, henning@, claudio@
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>