Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcp/bin/clientscript No longer a need to add l...



details:   https://anonhg.NetBSD.org/src/rev/e52c4ce9769a
branches:  trunk
changeset: 336342:e52c4ce9769a
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Feb 26 09:59:55 2015 +0000

description:
No longer a need to add local routes for the address.

diffstat:

 external/bsd/dhcp/bin/clientscript/dhclient-script |  16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diffs (92 lines):

diff -r 0c1077ba23a9 -r e52c4ce9769a external/bsd/dhcp/bin/clientscript/dhclient-script
--- a/external/bsd/dhcp/bin/clientscript/dhclient-script        Thu Feb 26 09:58:12 2015 +0000
+++ b/external/bsd/dhcp/bin/clientscript/dhclient-script        Thu Feb 26 09:59:55 2015 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: dhclient-script,v 1.1 2013/03/24 15:54:30 christos Exp $
+# $NetBSD: dhclient-script,v 1.2 2015/02/26 09:59:55 roy Exp $
 
 ENTERHOOKS=/etc/dhclient-enter-hooks
 EXITHOOKS=/etc/dhclient-exit-hooks
@@ -147,7 +147,6 @@
        if [ ! -z "$alias_ip_address" ]; then
                ifconfig $interface inet \
                    -alias $alias_ip_address >/dev/null 2>&1
-               route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
        fi
 
        ifconfig $interface inet 0.0.0.0 netmask 0.0.0.0 \
@@ -182,14 +181,11 @@
            \( "x$alias_ip_address" != "x$old_ip_address" \) ]; then
                ifconfig $interface inet \
                    -alias $alias_ip_address > /dev/null 2>&1
-               route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
        fi
 
        if [ \( ! -z "$old_ip_address" \) -a \
            \( "x$old_ip_address" != "x$new_ip_address" \) ]; then
                eval "ifconfig $interface inet -alias $old_ip_address $medium"
-               route delete $old_ip_address 127.0.0.1 >/dev/null 2>&1
-
                delete_old_routes
        fi
 
@@ -198,8 +194,6 @@
            \( "x$reason" = "xBOUND" \) -o \( "x$reason" = "xREBOOT" \) ]; then
                eval "ifconfig $interface inet $new_ip_address \
                    $new_netmask_arg $new_broadcast_arg $medium"
-               route add $new_ip_address 127.0.0.1 >/dev/null 2>&1
-
                add_new_routes
        fi
 
@@ -207,7 +201,6 @@
            \( "x$new_ip_address" != "x$alias_ip_address" \) ]; then
                ifconfig $interface inet alias $alias_ip_address \
                    $alias_subnet_arg
-               route add $alias_ip_address 127.0.0.1
        fi
        make_resolv_conf
        exit_with_hooks 0
@@ -223,12 +216,10 @@
 
        if [ ! -z "$alias_ip_address" ]; then
                ifconfig $interface inet -alias $alias_ip_address 
-               route delete $alias_ip_address 127.0.0.1
        fi > /dev/null 2>&1
 
        if [ ! -z "$old_ip_address" ]; then
                eval "ifconfig $interface inet -alias $old_ip_address $medium"
-               route delete $old_ip_address 127.0.0.1 >/dev/null 2>&1
                delete_old_routes
 
        fi
@@ -236,7 +227,6 @@
        if [ ! -z "$alias_ip_address" ]; then
                ifconfig $interface inet alias $alias_ip_address \
                    $alias_subnet_arg
-               route add $alias_ip_address 127.0.0.1
        fi
 
        restore_resolv_conf
@@ -246,7 +236,6 @@
 TIMEOUT)
        if [ ! -z "$alias_ip_address" ]; then
                ifconfig $interface inet -alias $alias_ip_address
-               route delete $alias_ip_address 127.0.0.1
        fi > /dev/null 2>&1
 
        if [ ! -z "$new_host_name" ]; then
@@ -273,11 +262,8 @@
                        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.0.0.1 >/dev/null 2>&1
-
                        add_new_routes
                        make_resolv_conf
                        exit_with_hooks 0



Home | Main Index | Thread Index | Old Index