summaryrefslogtreecommitdiff
path: root/sbin/dhclient
AgeCommit message (Collapse)Author
2006-09-24No point in checking for a NULL ifi after we've used it. Plus ifi isKenneth R Westerback
set once in main() and used everywhere without further checks. From Matthew R. Dempsky via tech@
2006-08-31adjust link detection further: if no link, bring interface up and checkTheo de Raadt
for link for 10 seconds. otherwise, if there was link, no problem! ok henning, claudio, tested by others
2006-08-29snuck in a typo, damnitTheo de Raadt
2006-08-29some net if devices do not media negotiate (for link) until brought up.Theo de Raadt
(for some drivers, this is a bug. for others, it is part of how they work) therefore before doing the 10-second link test, we must bring the if up. ok krw, tested marco ckuethe
2006-06-16always change the working directory of the priv child to the rootReyk Floeter
directory ("/"). this fixes a problem when dhclient was called in a working directory like "/mnt" and the user tried to unmount this directory while dhclient was still running. umount failed because the device for "/mnt" was still busy and blocked by the running priv child of dhclient. ok henning@
2006-06-03Use ifconfig delete/alias conforming with the man page.Marco Pfatschbacher
OK krw@
2006-06-02backoff-cutoff defaults to 15 seconds; ok henning@Kevin Steves
2006-06-01'-alias' is deprecated. Use 'delete' in ifconfig statements.Kenneth R Westerback
ok beck@
2006-06-01Don't treat the addition of a dhclient.conf 'alias{}' address as anKenneth R Westerback
external modification when the RTM_NEWADDR message arrives from the routing socket. Now dhclient will not exit if 'alias{}' is specified in dhclient.conf. Mentioned many times, most recently by Matthias Bertschy on misc@. ok henning@ beck@
2006-05-31clarify link-timeout default as seconds; ok jmc@Kevin Steves
2006-05-31Fix 'special value 0 requests that dhclient not wait for a link stateKevin Steves
change before timing out' behaviour of the man page for link-timeout; ok deraadt@ henning@
2006-05-15whitespace cleanupFelix Kronlage
ok claudio@, mbalmer@
2006-05-09new sentence, new line;Jason McIntyre
2006-05-09spellingTheo de Raadt
2006-05-08add 'link-timeout n' seconds option to grammer, from fkr@hazardous.orgTheo de Raadt
default remains 10 seconds.
2006-04-20adjust comments as to what keywords are legal; from fkrTheo de Raadt
2006-04-18cleanup keyword lookup for the lexer, and remove keywords not valid inTheo de Raadt
either dhclient or dhcpd context; tested by many
2006-03-06convert permanent privilege revocation to use setresuid/setresgid;Damien Miller
ok henning@
2006-02-01NTP is described by RFC 1305, not 1035;Jason McIntyre
from michal f. hanula (freebsd docs/92629)
2005-11-26enable the bpf filter-drop option in dhclientReyk Floeter
ok henning@, tested by many others (tech@)
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