Lines Matching +full:count +full:- +full:up
1 #!/usr/bin/env atf-sh
2 #-
3 # SPDX-License-Identifier: BSD-2-Clause
44 [ "$(uname -p)" = "i386" ]; then
50 if [ $$ -gt 65535 ]; then
51 xl=`printf "%x" $(($$ - 65535))`
66 ifconfig ${epair}a up
69 jname="v4t-${id}-${yl}-${xl}"
71 jexec ${jname} ifconfig ${epair}b up
74 atf_check -s exit:0 $(atf_get_srcdir)/${script_name} \
75 --dip ${ip4b} --test_name ipdivert_ip_output_remote_success
77 count=`jexec ${jname} netstat -s -p icmp | grep 'Input histogram:' -A8 | grep -c 'echo: '`
79 atf_check_equal "1" "${count}"
99 [ "$(uname -p)" = "i386" ]; then
105 if [ $$ -gt 65535 ]; then
106 xl=`printf "%x" $(($$ - 65535))`
121 ifconfig ${epair}a up
124 jname="v4t-${id}-${yl}-${xl}"
126 jexec ${jname} ifconfig ${epair}b up
129 atf_check -s exit:0 jexec ${jname} $(atf_get_srcdir)/${script_name} \
130 --sip ${ip4a} --dip ${ip4b} \
131 --test_name ipdivert_ip_input_local_success
133 count=`jexec ${jname} netstat -s -p icmp | grep 'Input histogram:' -A8 | grep -c 'echo: '`
135 atf_check_equal "1" "${count}"