freebsd-nq/sbin/dhclient
Brooks Davis d5354256b6 Add a new function is_default_interface() which determines if this
interface is one with the default route (or there isn't one).  Use it to
decide if we should adjust the default route and /etc/resolv.conf.

Fix the delete of the default route.  The if statement was totally bogus
and the delete only worked due to a typo. [1]

Reported by:	Jordan Coleman <jordan at JordanColeman dot com> [1]
MFC after:	1 week
2008-03-30 02:42:39 +00:00
..
alloc.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
bpf.c It is possible for bpf to return a length such that: 2006-09-26 01:02:02 +00:00
clparse.c Implement RFC3442, the Classless Static Route option. 2007-02-09 17:50:26 +00:00
conflex.c In read_string(), when the last character was a backslash, unincrement 2005-08-26 01:25:59 +00:00
convert.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
dhclient-script Add a new function is_default_interface() which determines if this 2008-03-30 02:42:39 +00:00
dhclient-script.8 Line up the markup. 2005-06-22 14:55:59 +00:00
dhclient.8 - Remove references to unexisting man pages 2007-09-20 10:46:25 +00:00
dhclient.c Defer state change on disassociate to avoid unnecessarily dropping the 2008-03-22 16:24:02 +00:00
dhclient.conf Implement RFC3442, the Classless Static Route option. 2007-02-09 17:50:26 +00:00
dhclient.conf.5 Line up the markup. 2005-06-22 14:55:59 +00:00
dhclient.leases.5 Line up the markup. 2005-06-22 14:55:59 +00:00
dhcp-options.5 Correct RFC for NTP. 2006-02-06 19:22:34 +00:00
dhcp.h Implement RFC3442, the Classless Static Route option. 2007-02-09 17:50:26 +00:00
dhcpd.h Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag 2005-06-07 04:05:09 +00:00
dhctoken.h Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag 2005-06-07 04:05:09 +00:00
dispatch.c Teach dhclient(8) about net80211 link (association) status. 2007-12-05 17:13:45 +00:00
errwarn.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
hash.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
inet.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
Makefile Install the dhcp-options.5 manpage. 2005-06-25 11:03:06 +00:00
options.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
packet.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
parse.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
privsep.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
privsep.h Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag 2005-06-07 04:05:09 +00:00
tables.c Implement RFC3442, the Classless Static Route option. 2007-02-09 17:50:26 +00:00
tree.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
tree.h Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag 2005-06-07 04:05:09 +00:00