]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r231858:
authorbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Mar 2012 19:13:18 +0000 (19:13 +0000)
committerbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Mar 2012 19:13:18 +0000 (19:13 +0000)
commit205439870b0bf1396412b2dd4ae5dda032a5a69e
tree7a6cb9c817af14f4114cdffd3095f46875ac8ed8
parent5a7f22581c70a28ede5c1d5852a2a25dee0b4b5f
MFC r231858:

 Add regression tests scripts for multi-IP FIBs exercising the send,
 receive and forward path tagging packets with both the ifconfig fib
 option or using ipfw, running ICMP6, TCP/v6 and UDP/v6 tests and
 testing both setfib(2) as well as the SO_SETFIB socket option.

 At 16 FIBs a total of over 64k return codes/replies/stati are checked,
 sometimes multiple times (in different ways, e.g. the reflected request
 as well as ipfw counter values).

 The scripts need two or three machines to run and are thus not added
 to the tools/regression framework but only to tools/test.

MFC r232114:

 Update scripts to work around two sh(1) bugs found in stable/8:
 1) _x=$((_x + 1)) does not work while x=$((x + 1)) does.
 2) Parameter Expansion, esp. "${x%%bar}" does not work if quoted.

 Correct typos and improve some details forwarding.sh already
 had in initiator, esp. related to ipfw accepting if the default
 is deny.

 Add an extra stat call to the "delay" function in addition to the
 touch which together is still a lot faster than sleep 1 but seems
 to help a lot more to mitigate the unrelated kernel race seen.

Sponsored by: Cisco Systems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/9@232566 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tools/test/README
tools/test/netfibs/Makefile [new file with mode: 0644]
tools/test/netfibs/README [new file with mode: 0644]
tools/test/netfibs/forwarding.sh [new file with mode: 0755]
tools/test/netfibs/initiator.sh [new file with mode: 0755]
tools/test/netfibs/reflect.c [new file with mode: 0644]
tools/test/netfibs/reflector.sh [new file with mode: 0755]