5 nc -i 1 -l 9876 > ${TMP_DIR}/nc_tmp &
12 echo "Test failed: $L7VSD"
17 $L7VSADM -A -t 127.0.0.1:40001 -m ip --forwarded-for
20 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m ip --forwarded-for"
24 $L7VSADM -a -t 127.0.0.1:40001 -m ip -r 127.0.0.1:9876
27 echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r 127.0.0.1:9876"
36 echo -e -n "POST / HTTP/1.0\r
37 X-Forwarded-For: 127.0.0.1\r
40 0123456789" > $TMP_DIR/expect_tmp
42 if [ -n "`diff $TMP_DIR/nc_tmp $TMP_DIR/expect_tmp`" ]
44 echo "Test failed: diff $TMP_DIR/nc_tmp $TMP_DIR/expect_tmp"