Source-Changes-HG archive

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

[src/trunk]: src/tests/net/mpls Disable ip forwarding at penultimate hop



details:   https://anonhg.NetBSD.org/src/rev/a8ed2dd01644
branches:  trunk
changeset: 788884:a8ed2dd01644
user:      kefren <kefren%NetBSD.org@localhost>
date:      Sat Jul 27 14:39:24 2013 +0000

description:
Disable ip forwarding at penultimate hop
Raise the ping wait time a little bit in order for changes to propagate
over ldp

diffstat:

 tests/net/mpls/t_ldp_static.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 0daea72692a2 -r a8ed2dd01644 tests/net/mpls/t_ldp_static.sh
--- a/tests/net/mpls/t_ldp_static.sh    Sat Jul 27 14:36:39 2013 +0000
+++ b/tests/net/mpls/t_ldp_static.sh    Sat Jul 27 14:39:24 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ldp_static.sh,v 1.1 2013/07/25 14:28:29 kefren Exp $
+# $NetBSD: t_ldp_static.sh,v 1.2 2013/07/27 14:39:24 kefren Exp $
 #
 # Copyright (c) 2013 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -86,7 +86,7 @@
        # to R4's ldpd. ldpd on R4 should verify that the next hop
        # corresponds to its routing table and tag the route to an
        RUMP_SERVER=${RUMP_SERVER1} atf_check -s exit:0 -o ignore -e ignore \
-               rump.ping -n -o -w 2 $1
+               rump.ping -n -o -w 5 $1
 
        # Tear it down and bye bye
        RUMP_SERVER=${RUMP_SERVER5} atf_check -s exit:0 \
@@ -161,6 +161,7 @@
        atf_check -s exit:0 rump.ifconfig shmif1 10.0.4.1/24
        atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
        atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
+       atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
        atf_check -s exit:0 rump.ifconfig mpls0 create up
        atf_check -s exit:0 rump.route -q add 10.0.1.0/24 10.0.3.1
        atf_check -s exit:0 rump.route -q add 10.0.5.0/24 10.0.4.2



Home | Main Index | Thread Index | Old Index