Source-Changes-HG archive

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

[src/trunk]: src/tests/net/ndp Don't assign unused IP address



details:   https://anonhg.NetBSD.org/src/rev/2260e1180ed1
branches:  trunk
changeset: 341690:2260e1180ed1
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Nov 18 04:13:01 2015 +0000

description:
Don't assign unused IP address

It sometimes creates an unexpected NDP cache.

diffstat:

 tests/net/ndp/t_ndp.sh |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r f4e3d9b6e63b -r 2260e1180ed1 tests/net/ndp/t_ndp.sh
--- a/tests/net/ndp/t_ndp.sh    Wed Nov 18 02:51:11 2015 +0000
+++ b/tests/net/ndp/t_ndp.sh    Wed Nov 18 04:13:01 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ndp.sh,v 1.7 2015/11/17 06:44:13 ozaki-r Exp $
+#      $NetBSD: t_ndp.sh,v 1.8 2015/11/18 04:13:01 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -68,10 +68,14 @@
 
 setup_dst_server()
 {
+       local assign_ip=$1
+
        export RUMP_SERVER=$SOCKDST
        atf_check -s exit:0 rump.ifconfig shmif0 create
        atf_check -s exit:0 rump.ifconfig shmif0 linkstr bus1
-       atf_check -s exit:0 rump.ifconfig shmif0 inet6 $IP6DST
+       if [ "$assign_ip" != no ]; then
+               atf_check -s exit:0 rump.ifconfig shmif0 inet6 $IP6DST
+       fi
        atf_check -s exit:0 rump.ifconfig shmif0 up
        atf_check -s exit:0 rump.ifconfig -w 10
 
@@ -249,7 +253,7 @@
        atf_check -s exit:0 ${inetserver} $SOCKSRC
        atf_check -s exit:0 ${inetserver} $SOCKDST
 
-       setup_dst_server
+       setup_dst_server no
        setup_src_server
 
        export RUMP_SERVER=$SOCKDST



Home | Main Index | Thread Index | Old Index