]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC rev 1.19
authorbrooks <brooks@FreeBSD.org>
Fri, 11 Apr 2008 00:18:37 +0000 (00:18 +0000)
committerbrooks <brooks@FreeBSD.org>
Fri, 11 Apr 2008 00:18:37 +0000 (00:18 +0000)
commit8bae282fb9dac88773503f41b893def62a608f2b
tree2bbe5d52d657c68a18dd8944244f637def868e54
parent65c97bf08afeec124182e035c5066810232aa22d
MFC rev 1.19

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]
sbin/dhclient/dhclient-script