summaryrefslogtreecommitdiff
path: root/sbin/dhclient
AgeCommit message (Expand)Author
2016-07-23Back out the dhclient BPF change. There are DHCP servers out there whichStefan Sperling
2016-07-22Actually DECLINE and delete unused offers. Don't just say so in a comment.Kenneth R Westerback
2016-07-21Use explicit idiom when testing the result of strcmp() and strncmp().Kenneth R Westerback
2016-07-20Shrink priv_write_file() API so that it does less, and the callers askTheo de Raadt
2016-07-20As a general rule, fchown before fchmod is a safer order (because manyTheo de Raadt
2016-07-19Narrow the BPF read filter rules so only packets sent to theKenneth R Westerback
2016-06-03update default value for rebootTed Unangst
2016-06-03The networks I use are sufficiently fast that a 10 second "reboot" timeoutTed Unangst
2016-05-08Use /dev/bpf0 instead of /dev/bpf (without loop though), as suggested byMartin Natano
2016-05-03Move to /dev/bpf; ok tb jmcMartin Natano
2016-04-28If the attempt to broadcast a DCHPDISCOVER packet returns EAFNOSUPPORT,Kenneth R Westerback
2016-02-06Eliminate #include inside *.h files and include only needed headers inKenneth R Westerback
2016-02-03be very careful accepting packets via bpf. First check that theKenneth R Westerback
2016-01-26Use an unsigned int rather than an int when iterating through all 32mmcc
2015-12-19Don't exit if a route can't be added. Just log particulars andKenneth R Westerback
2015-12-19Delete superfluous "continue;" just before end of loop.Kenneth R Westerback
2015-12-19Delete superfluous "close(s);return" just before "close(s);<functionKenneth R Westerback
2015-12-18Check ioctl() result with == -1, not < 0. Break long line.Kenneth R Westerback
2015-12-12Send DECLINE messages in response to ACK messages that turn out toKenneth R Westerback
2015-12-10Pledge.Kenneth R Westerback
2015-12-07Convert to arc4random_uniform.tb
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker
2015-12-03No need to continuously check the current rdomain of the interfaceKenneth R Westerback
2015-11-12When link loss is reported, cancel any active timeout and wait forKenneth R Westerback
2015-10-26Give dhclient(8) the ability to use option 119, a.k.a. "DomainKenneth R Westerback
2015-09-08Correct strsep() usage to free() correct string. Spotted by andKenneth R Westerback
2015-09-05Some whitespace bulking out a diff unnecessarily.Kenneth R Westerback
2015-08-31Support deviant but historically blessed practice of acceptingKenneth R Westerback
2015-08-19Missing prototypes. Noted by deraadt@Kenneth R Westerback
2015-05-18Tweak parsing so that hostnames starting with 0-9 are accepted.Kenneth R Westerback
2015-05-18Stop rejecting leases with a subnet that overlaps a subnet alreadyKenneth R Westerback
2015-05-02Hoist common assignments out of a series of if/if-else statementsKenneth R Westerback
2015-05-02Correct switch between current and previous line buffers whenKenneth R Westerback
2015-04-16Tweak error output.Gleydson Soares
2015-02-15convert bcmp to memcmpTed Unangst
2015-02-10Groundwork for better route support over multiple interfaces byKenneth R Westerback
2015-02-08Get rid of a bunch of memset()'s where struct variables and arraysKenneth R Westerback
2015-02-07Add support for interface-mtu (option 26).Kenneth R Westerback
2015-02-07GC unused parameters now that ifname and rdomain are not used inKenneth R Westerback
2015-02-06The write_file() privsep interface was too permissive andReyk Floeter
2015-02-06matthew@ points out that it's a bad idea to rely on the non-privileged,Kenneth R Westerback
2015-02-06Don't let errors leak the memory returned by getifaddrs().Kenneth R Westerback
2015-02-05Use sizeof(struct X) rather than sizeof(*p) in calloc() invocations.Kenneth R Westerback
2015-02-01free(NULL) works, so stop checking for non-zero length allocationKenneth R Westerback
2015-01-31free(NULL) works, so stop checking for non-zero length allocationKenneth R Westerback
2015-01-31Don't leak the "access protected, zero sized object" returned byKenneth R Westerback
2015-01-31Set is_static to 0 before trying to free a lease. Otherwise itKenneth R Westerback
2015-01-31Always free(buf) if errmsg is set while trying to flush routes.Kenneth R Westerback
2015-01-30Don't leak incompletely cloned static lease. Should never happenKenneth R Westerback
2015-01-30Tweak error message to say 'realloc' since that's what's failing,Kenneth R Westerback