summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
AgeCommit message (Expand)Author
2013-01-13Make pretty_print_option() return "" rather than "<fmt error>" whenKenneth R Westerback
2013-01-13Check results of strdup() of domainname and nameservers options.Kenneth R Westerback
2013-01-06Make buffer for lease_as_string() 8192 bytes. A pathological leaseKenneth R Westerback
2013-01-05Change write_client_lease() into lease_as_string() and modifyKenneth R Westerback
2013-01-02Only check '-l' parameter for regular-fileness. Not built-in defaultKenneth R Westerback
2012-12-29Make HUP to either one of the processes cause a restart that willKenneth R Westerback
2012-12-21When binding to a new lease, wait for the RTM_NEWADDR message inKenneth R Westerback
2012-12-19Don't attempt to delete an address that has already been deletedKenneth R Westerback
2012-12-18Don't clean up twice when the non-privileged process exits. Let theKenneth R Westerback
2012-12-17Don't daemonize until the RTM_NEWADDR message is received. ShuffleKenneth R Westerback
2012-12-16Prevent a potential segfault that could occur if certain calloc() andLawrence Teo
2012-12-15Nuke unused parameter 'ifname' to get_ifname().Kenneth R Westerback
2012-12-10add -i to usage(); ok krwJason McIntyre
2012-12-09Add a new option to the dhclient command line interface. '-i' takesKenneth R Westerback
2012-12-05Archeological investigation shows dhclient-script did not overwriteKenneth R Westerback
2012-12-05If there is no domain-name and no domain-name-servers provided inKenneth R Westerback
2012-12-04Eliminate hand-rolled pseudo-strerror() %m strangeness by replacingKenneth R Westerback
2012-12-03Backout last. It breaks existing 'ifconfig down ; dhclient' usage.Kenneth R Westerback
2012-12-03Cleanup after a 'ifconfig down', but stick around so 'ifconfig up'Kenneth R Westerback
2012-12-02Try harder to cleanup when exiting. In particular catch signalsKenneth R Westerback
2012-12-01Make privileged process daemonize too. Using same function as theKenneth R Westerback
2012-11-29Nobody looks at the result of fork_privchld(), so make it returnKenneth R Westerback
2012-11-27Clean up parsing of option lists. Part 6.Kenneth R Westerback
2012-11-25Clean up parsing of option lists. Part 1.Kenneth R Westerback
2012-11-24Don't segfault if no subnet-mask is provided, or is marked 'ignore'Kenneth R Westerback
2012-11-23Use the libutil imsg framework rather than a hand-rolled localKenneth R Westerback
2012-11-16Call discover_interface() before forking, so both processes will knowKenneth R Westerback
2012-11-15Shuffle #include's to use the majority idiom everywhere - i.e. useKenneth R Westerback
2012-11-15If '-d' is specified to keep dhclient from daemonizing, don'tKenneth R Westerback
2012-11-14Oops. Commit the one that actually compiles.Kenneth R Westerback
2012-11-14When copying option.data, use option.len to specify the amount ofKenneth R Westerback
2012-11-14Remove useless _new_ and _old_ from various function names to makeKenneth R Westerback
2012-11-11Fix dhclient.conf 'default' directive which was also broken in codeKenneth R Westerback
2012-11-11supersede/append/prepend actions should work even if the dhcp serverKenneth R Westerback
2012-11-08Remove confusing extra address abstraction 'struct iaddr'. Just useKenneth R Westerback
2012-11-07Always memcpy() into/out of option data rather than hoping the char *Kenneth R Westerback
2012-11-07Use memset() consistently rather than tossing in a few bzero()'s.Kenneth R Westerback
2012-11-07Use memcpy() consistently rather than tossing in a few bcopy()'s.Kenneth R Westerback
2012-11-04No need to pass interface name around when flushing routes.Kenneth R Westerback
2012-11-04No need to pass interface name around when creating routes.Kenneth R Westerback
2012-11-03Various fixes/tweaks for resolv.conf handling:Kenneth R Westerback
2012-11-02Don't add a 'nameserver' line to resolv.conf if the nameserver inKenneth R Westerback
2012-10-31Delete some leftover debug code and the array it rode in on.Kenneth R Westerback
2012-10-31chris@ spotted a '2038' where a '2048' was meant and pointed outKenneth R Westerback
2012-10-31Forcibly delete all existing ipv4 addresses from an interface whenKenneth R Westerback
2012-10-30Nuke dhclient-script and dhclient.conf 'script' directive. Do allKenneth R Westerback
2012-10-27Change dhclient.conf directive 'ignore' to take a list of option namesKenneth R Westerback
2012-10-10Revert r1.155. Routing breaks if dhclient-script flushes theKenneth R Westerback
2012-09-18Don't accept leases that offer a subnet that is already configuredKenneth R Westerback
2012-09-17When a link is lost, call dhclient-script with reason "FAIL". ThisKenneth R Westerback