Source-Changes-HG archive

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

[src/trunk]: src/tests/net/route Check if ARP/NDP entries are purged when a r...



details:   https://anonhg.NetBSD.org/src/rev/d527b307b85e
branches:  trunk
changeset: 354810:d527b307b85e
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Jun 30 07:57:12 2017 +0000

description:
Check if ARP/NDP entries are purged when a related route is deleted

diffstat:

 tests/net/route/t_flags.sh  |  4 +++-
 tests/net/route/t_flags6.sh |  5 ++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 47082b479dd3 -r d527b307b85e tests/net/route/t_flags.sh
--- a/tests/net/route/t_flags.sh        Fri Jun 30 05:22:14 2017 +0000
+++ b/tests/net/route/t_flags.sh        Fri Jun 30 07:57:12 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_flags.sh,v 1.18 2017/06/28 04:14:53 ozaki-r Exp $
+#      $NetBSD: t_flags.sh,v 1.19 2017/06/30 07:57:12 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -148,6 +148,8 @@
 
        # Delete an existing route first
        atf_check -s exit:0 -o ignore rump.route delete -net 10.0.0.0/24
+       # Should be removed too
+       atf_check -s not-exit:0 -e match:'no entry' rump.arp -n 10.0.0.1
 
        # Gateway must be lo0
        atf_check -s exit:0 -o ignore \
diff -r 47082b479dd3 -r d527b307b85e tests/net/route/t_flags6.sh
--- a/tests/net/route/t_flags6.sh       Fri Jun 30 05:22:14 2017 +0000
+++ b/tests/net/route/t_flags6.sh       Fri Jun 30 07:57:12 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_flags6.sh,v 1.14 2017/06/28 04:14:53 ozaki-r Exp $
+#      $NetBSD: t_flags6.sh,v 1.15 2017/06/30 07:57:12 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -134,6 +134,9 @@
        # Delete an existing route first
        atf_check -s exit:0 -o ignore \
            rump.route delete -inet6 -net fc00::/64
+       # Should be removed too
+       atf_check -s not-exit:0 -o ignore -e match:'no entry' \
+           rump.ndp -n $IP6_PEER
 
        # Gateway must be lo0
        atf_check -s exit:0 -o ignore \



Home | Main Index | Thread Index | Old Index