summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-12-12 01:04:36 +0000
committerobrien <obrien@FreeBSD.org>1999-12-12 01:04:36 +0000
commit9e84904436c91af26afdc6f643bed5b04969c820 (patch)
tree09c9449b182dbb6a574e42882997a7817ee71655 /contrib
parent54d3cf85919a430985f1be197281c95751db133d (diff)
downloadFreeBSD-src-9e84904436c91af26afdc6f643bed5b04969c820.zip
FreeBSD-src-9e84904436c91af26afdc6f643bed5b04969c820.tar.gz
Do not add routes for localhost to the `dhclient' controlled interface.
Doing so is bogus if the loop-back interface was not configured. Typically ``network_interfaces="auto"'' will return the list of interfaces such that "lo0" is not first. Thus there are times when `dhclient' configs an interface before "lo0" is configured. Under BSD4.4, there's no need to add the above route, as it will be automatically generated by the kernel. PR: conf/14098, misc/15183 Submitted by: luoqi (true identification of the problem)
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/isc-dhcp/client/scripts/freebsd7
1 files changed, 2 insertions, 5 deletions
diff --git a/contrib/isc-dhcp/client/scripts/freebsd b/contrib/isc-dhcp/client/scripts/freebsd
index c4f5320..5a4ab0b 100755
--- a/contrib/isc-dhcp/client/scripts/freebsd
+++ b/contrib/isc-dhcp/client/scripts/freebsd
@@ -1,5 +1,7 @@
#!/bin/sh
+# $FreeBSD$
+
if [ -x /usr/bin/logger ]; then
LOGGER="/usr/bin/logger -s -p user.notice -t dhclient"
else
@@ -111,7 +113,6 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
[ x$reason = xBOUND ] || [ x$reason = xREBOOT ]; then
ifconfig $interface inet $new_ip_address $new_netmask_arg \
$new_broadcast_arg $medium
- route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
route add default $router >/dev/null 2>&1
done
@@ -127,7 +128,6 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
if [ x$new_ip_address != x$alias_ip_address ] && [ x$alias_ip_address != x ];
then
ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg
- route add $alias_ip_address 127.0.0.1
fi
echo search $new_domain_name >/etc/resolv.conf
for nameserver in $new_domain_name_servers; do
@@ -159,7 +159,6 @@ if [ x$reason = xEXPIRE ] || [ x$reason = xFAIL ]; then
fi
if [ x$alias_ip_address != x ]; then
ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg
- route add $alias_ip_address 127.0.0.1
fi
exit_with_hooks 0
fi
@@ -179,9 +178,7 @@ if [ x$reason = xTIMEOUT ]; then
if [ x$new_ip_address != x$alias_ip_address ] && \
[ x$alias_ip_address != x ]; then
ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg
- route add $alias_ip_address 127.0.0.1
fi
- route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
route add default $router >/dev/null 2>&1
done
OpenPOWER on IntegriCloud