From 7e82455ea841e222426123e805550b3ba50ffc89 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 26 Aug 2005 01:02:38 +0000 Subject: [PATCH] Don't and/remove a route to our assigned IP through 127.0.0.1. It serves no apparent purpose (we commented this out ages ago in the ISC scripts) and cases problems with some ADSL setups. Reported by: Rostislav Krasny --- sbin/dhclient/dhclient-script | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script index 0e446b4aef62..4d7601e61a7d 100644 --- a/sbin/dhclient/dhclient-script +++ b/sbin/dhclient/dhclient-script @@ -74,7 +74,7 @@ add_new_address() { delete_old_alias() { if [ -n "$alias_ip_address" ]; then ifconfig $interface inet -alias $alias_ip_address > /dev/null 2>&1 - route delete $alias_ip_address $LOCALHOST > /dev/null 2>&1 + #route delete $alias_ip_address $LOCALHOST > /dev/null 2>&1 fi } @@ -82,12 +82,12 @@ add_new_alias() { if [ -n "$alias_ip_address" ]; then ifconfig $interface inet alias $alias_ip_address netmask \ $alias_subnet_mask - route add $alias_ip_address $LOCALHOST + #route add $alias_ip_address $LOCALHOST fi } delete_old_routes() { - route delete "$old_ip_address" $LOCALHOST >/dev/null 2>&1 + #route delete "$old_ip_address" $LOCALHOST >/dev/null 2>&1 for router in $old_routers; do if [ $if_defaultroute = x -o $if_defaultroute = $interface ]; then route delete default $route >/dev/null 2>&1 @@ -106,7 +106,7 @@ delete_old_routes() { } add_new_routes() { - route add $new_ip_address $LOCALHOST >/dev/null 2>&1 + #route add $new_ip_address $LOCALHOST >/dev/null 2>&1 for router in $new_routers; do if [ "$new_ip_address" = "$router" ]; then route add default -iface $router >/dev/null 2>&1