summaryrefslogtreecommitdiff
path: root/sbin/dhclient
AgeCommit message (Collapse)Author
2005-10-26put the 100% right r1.79 back in, that is still as right as it was the firstHenning Brauer
time. dale just had the same problem and made me look again.
2005-10-07Don't display errno message when errno isn't set.Pedro Martelletto
Okay deraadt@, moritz@, help and okay henning@
2005-09-30deploy .An -nosplit; ok jmcJared Yanovich
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
but there is no point in refusing the lease based on that. so bitch and moan and ignore that option but accept the lease. yes, customer networks are sometimes interesting... ok millert krw beck
2005-08-22Fix problems with some Linksys DHCP servers (and probably others) byKenneth R Westerback
not accidentally inserting two NULL characters after each option in the DHCPREQUEST packet. Thanks to Christian Jones for the problem report and tcpdump's, and to Emmett Pate for finding a problematic Linksys model still in my local stores. ok deraadt@
2005-08-08re-add write() error check in buf_close(). ok henning@Moritz Jodeit
2005-08-07Simplify code by calling error() from inside buf_* functions ratherKenneth R Westerback
than always testing the return code and calling error() from the caller. From a diff by moritz@, ok henning@.
2005-08-05remove duplicate privsep prototypes and put allMoritz Jodeit
of them into privsep.h. ok krw@ henning@
2005-08-04buf_* was taken from the framework I wrote for bgpd (also used by ntpd, ospfdHenning Brauer
and some more). Here, however, we have a blocking socket for the IPC. buf_close (writes out) and buf_read can be simplified due to that, and they can just error out on short writes/reads. ok krw moritz
2005-08-02add missing break; ok henning@Moritz Jodeit
2005-08-02Rip out code dealing with multiple/nested interfaces. Each instance ofKenneth R Westerback
dhclient is responsible for one interface. Simply skip interface declarations for other interfaces and store all info in the one interface structure. tested by dlg@, ok henning@
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@