]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r231858:
authorbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Mar 2012 19:13:19 +0000 (19:13 +0000)
committerbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Mar 2012 19:13:19 +0000 (19:13 +0000)
commit1c0f3d15de45d1deb7e405cd93620b1a1507f454
tree71191c8bd3496c56fd5fff4443a310d9858a5370
parente252df545a3a99e5c3a6fe97fa5c57d0914a4077
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/8@232567 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]