Source-Changes-HG archive

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

[src/trunk]: src/tests/net/arp Give a chance to send a DAD announce packet



details:   https://anonhg.NetBSD.org/src/rev/386569b54966
branches:  trunk
changeset: 340166:386569b54966
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Aug 25 02:24:34 2015 +0000

description:
Give a chance to send a DAD announce packet

ifconfig -w ensures IP addresses have left tentative state, however,
it doesn't guarantee that a DAD announce packet is sent. The kernel
clears tentative flag and then sends the packet so that ifconfig -w
can return before the kernel sends the packet.

diffstat:

 tests/net/arp/t_dad.sh |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r beda3be08739 -r 386569b54966 tests/net/arp/t_dad.sh
--- a/tests/net/arp/t_dad.sh    Tue Aug 25 02:09:18 2015 +0000
+++ b/tests/net/arp/t_dad.sh    Tue Aug 25 02:24:34 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_dad.sh,v 1.5 2015/08/24 02:02:25 ozaki-r Exp $
+#      $NetBSD: t_dad.sh,v 1.6 2015/08/25 02:24:34 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -124,6 +124,8 @@
 
        # Waiting for DAD complete
        atf_check -s exit:0 rump.ifconfig -w 10
+       # Give a chance to send a DAD announce packet
+       atf_check -s exit:0 sleep 1
        extract_new_packets > ./out
        $DEBUG && cat ./out
 
@@ -151,6 +153,8 @@
 
        # Waiting for DAD complete
        atf_check -s exit:0 rump.ifconfig -w 10
+       # Give a chance to send a DAD announce packet
+       atf_check -s exit:0 sleep 1
        extract_new_packets > ./out
        $DEBUG && cat ./out
 



Home | Main Index | Thread Index | Old Index