From 3cd98890057147ddcd9747680d50a136e4259195 Mon Sep 17 00:00:00 2001 From: ozaki-r Date: Fri, 30 Jun 2017 07:57:12 +0000 Subject: [PATCH] Check if ARP/NDP entries are purged when a related route is deleted --- tests/net/route/t_flags.sh | 4 +++- tests/net/route/t_flags6.sh | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/net/route/t_flags.sh b/tests/net/route/t_flags.sh index 6f04a2ae1466..57378d4b9dbd 100644 --- a/tests/net/route/t_flags.sh +++ b/tests/net/route/t_flags.sh @@ -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 @@ test_blackhole() # 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 --git a/tests/net/route/t_flags6.sh b/tests/net/route/t_flags6.sh index 9c433ec0f9cf..38950ad6174a 100644 --- a/tests/net/route/t_flags6.sh +++ b/tests/net/route/t_flags6.sh @@ -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 @@ test_blackhole6() # 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 \