ShellCheck - shell script analysis tool version: 0.10.0 license: GNU General Public License, version 3 website: https://www.shellcheck.net Redirect to /tmp/tmp.TkBqZ8oCtt and /tmp/tmp.boPp7saYzq Tree base: 5d6d67c4cb10 ("Merge branch 'net-bcmgenet-add-support-for-gro-software-interrupt-coalescing'") Now at: c6577cdf5cc9 ("selftest: Add selftest for multicast address notifications") ====== Checking before the patch ====== Checking tools/testing/selftests/net/rtnetlink.sh - 92b39af047694c9000fd5d4b91e04b1c583b35a20f0c57eecd990e1ab7a38e29 In rtnetlink.sh line 54: if [ $1 -eq 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$1" -eq 0 ]; then In rtnetlink.sh line 55: ret=1 ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 68: if [ "$VERBOSE" = "1" -a -n "$out" ]; then ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. In rtnetlink.sh line 82: run_cmd_common "$@" ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 83: rc=$? ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 84: check_fail $rc ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_fail "$rc" In rtnetlink.sh line 85: return $rc ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 90: local find="$1"; shift ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 91: local cmd="$*" ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 92: local out ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 93: if [ "$VERBOSE" = "1" ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 94: echo "COMMAND: ${cmd} 2>&1 | grep -q '${find}'" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 96: out=$($cmd 2>&1 | grep -q "${find}" 2>&1) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 97: return $? ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 101: run_cmd_grep_common "$@" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 102: rc=$? ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 103: check_err $rc ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_err "$rc" In rtnetlink.sh line 104: return $rc ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 109: run_cmd_grep_common "$@" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 110: rc=$? ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 111: check_fail $rc ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_fail "$rc" In rtnetlink.sh line 112: return $rc ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 122: read a ^--^ SC2162 (info): read without -r will mangle backslashes. In rtnetlink.sh line 127: read a ^--^ SC2162 (info): read without -r will mangle backslashes. In rtnetlink.sh line 146: dev="$1" ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 147: r=$ret ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 148: run_cmd ip netconf show dev "$dev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 149: for f in 4 6; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 150: run_cmd ip -$f netconf show dev "$dev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -"$f" netconf show dev "$dev" In rtnetlink.sh line 153: if [ $ret -ne 0 ] ;then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ] ;then In rtnetlink.sh line 154: end_test "FAIL: ip netconf show $dev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 155: test $r -eq 0 && ret=0 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: test "$r" -eq 0 && ret=0 In rtnetlink.sh line 156: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 163: devbr="test-br0" ^--------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 164: vlandev="testbr-vlan1" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 166: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 167: run_cmd ip link add name "$devbr" type bridge ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 168: run_cmd ip link set dev "$devdummy" master "$devbr" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 169: run_cmd ip link set "$devbr" up ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 170: run_cmd ip link add link "$devbr" name "$vlandev" type vlan id 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 171: run_cmd ip addr add dev "$vlandev" 10.200.7.23/30 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 172: run_cmd ip -6 addr add dev "$vlandev" dead:42::1234/64 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 173: run_cmd ip -d link ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 174: run_cmd ip r s t all ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 176: for name in "$devbr" "$vlandev" "$devdummy" ; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 177: kci_test_netconf "$name" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 179: run_cmd ip -6 addr del dev "$vlandev" dead:42::1234/64 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 180: run_cmd ip link del dev "$vlandev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 181: run_cmd ip link del dev "$devbr" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 183: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 184: end_test "FAIL: bridge setup" ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 185: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 187: end_test "PASS: bridge setup" ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 193: gredev=neta ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 194: rem=10.42.42.1 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 195: loc=10.0.0.1 ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 197: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 198: run_cmd ip tunnel add $gredev mode gre remote $rem local $loc ttl 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip tunnel add "$gredev" mode gre remote "$rem" local "$loc" ttl 1 In rtnetlink.sh line 199: run_cmd ip link set $gredev up ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip link set "$gredev" up In rtnetlink.sh line 200: run_cmd ip addr add 10.23.7.10 dev $gredev ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip addr add 10.23.7.10 dev "$gredev" In rtnetlink.sh line 201: run_cmd ip route add 10.23.8.0/30 dev $gredev ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip route add 10.23.8.0/30 dev "$gredev" In rtnetlink.sh line 202: run_cmd ip addr add dev "$devdummy" 10.23.7.11/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 203: run_cmd ip link ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 204: run_cmd ip addr ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 206: kci_test_netconf "$gredev" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 207: run_cmd ip addr del dev "$devdummy" 10.23.7.11/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 208: run_cmd ip link del $gredev ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip link del "$gredev" In rtnetlink.sh line 210: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 211: end_test "FAIL: gre tunnel endpoint" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 212: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 214: end_test "PASS: gre tunnel endpoint" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 221: dev=lo ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 222: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 224: run_cmd tc qdisc add dev "$dev" root handle 1: htb ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 225: run_cmd tc class add dev "$dev" parent 1: classid 1:10 htb rate 1mbit ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 226: run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffe: protocol ip u32 divisor 256 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 227: run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffd: protocol ip u32 divisor 256 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 228: run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffc: protocol ip u32 divisor 256 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 229: run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ht ffe:2: match ip src 10.0.0.3 flowid 1:10 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 230: run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:2 u32 ht ffe:2: match ip src 10.0.0.2 flowid 1:10 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 231: run_cmd tc filter show dev "$dev" parent 1:0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 232: run_cmd tc filter del dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 233: run_cmd tc filter show dev "$dev" parent 1:0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 234: run_cmd tc qdisc del dev "$dev" root handle 1: htb ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 236: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 237: end_test "FAIL: tc htb hierarchy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 238: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 240: end_test "PASS: tc htb hierarchy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 246: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 247: run_cmd ip rule add fwmark 1 lookup 100 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 248: run_cmd ip route add local 0.0.0.0/0 dev lo table 100 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 249: run_cmd ip r s t all ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 250: run_cmd ip rule del fwmark 1 lookup 100 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 251: run_cmd ip route del local 0.0.0.0/0 dev lo table 100 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 253: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 254: end_test "FAIL: policy route test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 255: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 257: end_test "PASS: policy routing" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 262: local hash_policy=$(sysctl -n net.ipv4.fib_multipath_hash_policy) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 264: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 265: run_cmd ip route get 127.0.0.1 ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 266: run_cmd ip route get 127.0.0.1 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 267: run_cmd ip route get ::1 ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 268: run_cmd ip route get fe80::1 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 269: run_cmd ip route get 127.0.0.1 from 127.0.0.1 oif lo tos 0x10 mark 0x1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 270: run_cmd ip route get ::1 from ::1 iif lo oif lo tos 0x10 mark 0x1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 271: run_cmd ip addr add dev "$devdummy" 10.23.7.11/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 272: run_cmd ip route get 10.23.7.11 from 10.23.7.12 iif "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 273: run_cmd ip route add 10.23.8.0/24 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 277: sysctl -wq net.ipv4.fib_multipath_hash_policy=0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 278: run_cmd ip route get 10.23.8.11 ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 279: sysctl -wq net.ipv4.fib_multipath_hash_policy=1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 280: run_cmd ip route get 10.23.8.11 ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 281: sysctl -wq net.ipv4.fib_multipath_hash_policy="$hash_policy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 282: run_cmd ip route del 10.23.8.0/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 283: run_cmd ip addr del dev "$devdummy" 10.23.7.11/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 286: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 287: end_test "FAIL: route get" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 288: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 291: end_test "PASS: route get" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 296: for i in $(seq 10 100) ;do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 297: lft=$(((RANDOM%3) + 1)) ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 298: run_cmd ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1)) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip addr add 10.23.11."$i"/32 dev "$devdummy" preferred_lft "$lft" valid_lft $((lft+1)) In rtnetlink.sh line 301: sleep 5 ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 302: run_cmd_grep_fail "10.23.11." ip addr show dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 303: if [ $? -eq 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. In rtnetlink.sh line 304: check_err 1 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 305: end_test "FAIL: preferred_lft addresses remaining" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 306: return ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 309: end_test "PASS: preferred_lft addresses have expired" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 314: promote=$(sysctl -n net.ipv4.conf.$devdummy.promote_secondaries) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: promote=$(sysctl -n net.ipv4.conf."$devdummy".promote_secondaries) In rtnetlink.sh line 316: sysctl -q net.ipv4.conf.$devdummy.promote_secondaries=1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl -q net.ipv4.conf."$devdummy".promote_secondaries=1 In rtnetlink.sh line 318: for i in $(seq 2 254);do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 319: IP="10.23.11.$i" ^--------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 320: ip -f inet addr add $IP/16 brd + dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -f inet addr add "$IP"/16 brd + dev "$devdummy" In rtnetlink.sh line 321: ifconfig "$devdummy" $IP netmask 255.255.0.0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ifconfig "$devdummy" "$IP" netmask 255.255.0.0 In rtnetlink.sh line 324: ip addr flush dev "$devdummy" ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 326: [ $promote -eq 0 ] && sysctl -q net.ipv4.conf.$devdummy.promote_secondaries=0 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: [ "$promote" -eq 0 ] && sysctl -q net.ipv4.conf."$devdummy".promote_secondaries=0 In rtnetlink.sh line 328: end_test "PASS: promote_secondaries complete" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 333: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 334: run_cmd ip addrlabel add prefix dead::/64 dev lo label 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 335: run_cmd_grep "prefix dead::/64 dev lo label 1" ip addrlabel list ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 336: run_cmd ip addrlabel del prefix dead::/64 dev lo label 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 337: run_cmd ip addrlabel add prefix dead::/64 label 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 338: run_cmd ip addrlabel del prefix dead::/64 label 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 341: for i in $(seq 1 1000); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 342: ip addrlabel add prefix 1c3::/64 label 12345 2>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 345: for i in $(seq 1 1000); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 346: ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 349: wait ^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 351: ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 353: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 354: end_test "FAIL: ipv6 addrlabel" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 355: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 358: end_test "PASS: ipv6 addrlabel" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 363: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 364: namewant=$(uuidgen) ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 365: syspathname="/sys/class/net/$devdummy/ifalias" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 366: run_cmd ip link set dev "$devdummy" alias "$namewant" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 368: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 369: end_test "FAIL: cannot set interface alias of $devdummy to $namewant" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 370: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 372: run_cmd_grep "alias $namewant" ip link show "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 374: if [ -r "$syspathname" ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 375: read namehave < "$syspathname" ^--^ SC2162 (info): read without -r will mangle backslashes. ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 376: if [ "$namewant" != "$namehave" ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 377: end_test "FAIL: did set ifalias $namewant but got $namehave" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 378: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 381: namewant=$(uuidgen) ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 382: echo "$namewant" > "$syspathname" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 383: run_cmd_grep "alias $namewant" ip link show "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 386: echo "" > "$syspathname" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 387: run_cmd_grep_fail "alias $namewant" ip link show "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 389: for i in $(seq 1 100); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 390: uuidgen > "$syspathname" & ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 393: wait ^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 396: run_cmd ip link set dev "$devdummy" alias "$namewant" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 400: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 401: end_test "FAIL: set interface alias $devdummy to $namewant" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 402: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 405: end_test "PASS: set ifalias $namewant for $devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 410: vrfname="test-vrf" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 411: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 412: run_cmd ip link show type vrf ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 413: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 414: end_test "SKIP: vrf: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 415: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 417: run_cmd ip link add "$vrfname" type vrf table 10 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 418: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 419: end_test "FAIL: can't add vrf interface, skipping test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 420: return 0 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 422: run_cmd_grep "$vrfname" ip -br link show type vrf ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 423: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 424: end_test "FAIL: created vrf device not found" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 425: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 428: run_cmd ip link set dev "$vrfname" up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 429: run_cmd ip link set dev "$devdummy" master "$vrfname" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 430: run_cmd ip link del dev "$vrfname" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 432: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 433: end_test "FAIL: vrf" ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 434: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 437: end_test "PASS: vrf" ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 442: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 443: vxlan="test-vxlan0" ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 444: vlan="test-vlan0" ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 445: run_cmd ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2154 (warning): testns is referenced but not assigned. In rtnetlink.sh line 447: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 448: end_test "FAIL: can't add vxlan interface, skipping test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 449: return 0 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 452: run_cmd ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 453: run_cmd ip -netns "$testns" link set up dev "$vxlan" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 454: run_cmd ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 457: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 458: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 459: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 461: run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 462: run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 464: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan proxy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 465: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan norsc ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 466: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l2miss ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 467: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l3miss ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 468: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan external ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 469: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udpcsum ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 470: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumtx ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 471: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumrx ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 472: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumtx ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 473: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumrx ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 474: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gbp ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 475: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gpe ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 476: run_cmd ip -netns "$testns" link del "$vxlan" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 478: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 479: end_test "FAIL: vxlan" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 480: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 482: end_test "PASS: vxlan" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 487: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 488: name="test-fou" ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 489: run_cmd_grep 'Usage: ip fou' ip fou help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 490: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 491: end_test "SKIP: fou: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 492: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 495: if ! /sbin/modprobe -q -n fou; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 496: end_test "SKIP: module fou is not found" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 497: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 499: /sbin/modprobe -q fou ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 501: run_cmd ip -netns "$testns" fou add port 7777 ipproto 47 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 502: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 503: end_test "FAIL: can't add fou port 7777, skipping test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 504: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 506: run_cmd ip -netns "$testns" fou add port 8888 ipproto 4 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 507: run_cmd_fail ip -netns "$testns" fou del port 9999 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 508: run_cmd ip -netns "$testns" fou del port 7777 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 509: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 510: end_test "FAIL: fou"s ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 511: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 514: end_test "PASS: fou" ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 520: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 521: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 522: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 523: end_test "SKIP encap tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 524: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 526: run_cmd ip -netns "$testns" link set lo up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 527: run_cmd ip -netns "$testns" link add name "$devdummy" type dummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 528: run_cmd ip -netns "$testns" link set "$devdummy" up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 529: run_cmd kci_test_encap_vxlan ^--------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 530: run_cmd kci_test_encap_fou ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 532: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 533: return $ret ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 538: msname="test_macsec0" ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 539: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 540: run_cmd_grep "^Usage: ip macsec" ip macsec help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 541: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 542: end_test "SKIP: macsec: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 543: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 545: run_cmd ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 546: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 547: end_test "FAIL: can't add macsec interface, skipping test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 548: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 550: run_cmd ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 551: run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 552: run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 0123456789abcdef0123456789abcdef ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 553: run_cmd ip macsec show ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 554: run_cmd ip link del dev "$msname" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 556: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 557: end_test "FAIL: macsec" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 558: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 561: end_test "PASS: macsec" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 584: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 585: algo="aead rfc4106(gcm(aes)) 0x3132333435363738393031323334353664636261 128" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 586: srcip=192.168.123.1 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 587: dstip=192.168.123.2 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 588: spi=7 ^-^ SC2034 (warning): spi appears unused. Verify use (or export if used externally). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 590: ip addr add $srcip dev $devdummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr add "$srcip" dev "$devdummy" In rtnetlink.sh line 593: run_cmd ip x s flush ; ip x p flush ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 596: tmpfile=`mktemp /var/run/ipsectestXXX` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^--------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: tmpfile=$(mktemp /var/run/ipsectestXXX) In rtnetlink.sh line 597: mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: mpid=$((ip x m > "$tmpfile" & echo $!) 2>/dev/null) In rtnetlink.sh line 598: sleep 0.2 ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 600: ipsecid="proto esp src $srcip dst $dstip spi 0x07" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 601: run_cmd ip x s add $ipsecid \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s add "$ipsecid" \ In rtnetlink.sh line 603: $algo sel src $srcip/24 dst $dstip/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$algo" sel src "$srcip"/24 dst "$dstip"/24 In rtnetlink.sh line 606: lines=`ip x s list | grep $srcip | grep $dstip | wc -l` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(ip x s list | grep "$srcip" | grep "$dstip" | wc -l) In rtnetlink.sh line 607: run_cmd test $lines -eq 2 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 608: run_cmd_grep "SAD count 1" ip x s count ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 610: lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(ip x s get "$ipsecid" | grep "$srcip" | grep "$dstip" | wc -l) In rtnetlink.sh line 611: run_cmd test $lines -eq 2 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 612: run_cmd ip x s delete $ipsecid ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s delete "$ipsecid" In rtnetlink.sh line 614: lines=`ip x s list | wc -l` ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: lines=$(ip x s list | wc -l) In rtnetlink.sh line 615: run_cmd test $lines -eq 0 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 0 In rtnetlink.sh line 617: ipsecsel="dir out src $srcip/24 dst $dstip/24" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 618: run_cmd ip x p add $ipsecsel \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p add "$ipsecsel" \ In rtnetlink.sh line 619: tmpl proto esp src $srcip dst $dstip \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tmpl proto esp src "$srcip" dst "$dstip" \ In rtnetlink.sh line 623: lines=`ip x p list | grep $srcip | grep $dstip | wc -l` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(ip x p list | grep "$srcip" | grep "$dstip" | wc -l) In rtnetlink.sh line 624: run_cmd test $lines -eq 2 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 626: run_cmd_grep "SPD IN 0 OUT 1 FWD 0" ip x p count ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 628: lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(ip x p get "$ipsecsel" | grep "$srcip" | grep "$dstip" | wc -l) In rtnetlink.sh line 629: run_cmd test $lines -eq 2 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 631: run_cmd ip x p delete $ipsecsel ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p delete "$ipsecsel" In rtnetlink.sh line 633: lines=`ip x p list | wc -l` ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: lines=$(ip x p list | wc -l) In rtnetlink.sh line 634: run_cmd test $lines -eq 0 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 0 In rtnetlink.sh line 637: kill $mpid ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: kill "$mpid" In rtnetlink.sh line 638: lines=`wc -l $tmpfile | cut "-d " -f1` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(wc -l "$tmpfile" | cut "-d " -f1) In rtnetlink.sh line 639: run_cmd test $lines -eq 20 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 20 In rtnetlink.sh line 640: rm -rf $tmpfile ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm -rf "$tmpfile" In rtnetlink.sh line 643: run_cmd ip x s flush ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 644: run_cmd ip x p flush ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 645: ip addr del $srcip/32 dev $devdummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr del "$srcip"/32 dev "$devdummy" In rtnetlink.sh line 647: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 648: end_test "FAIL: ipsec" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 649: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 651: end_test "PASS: ipsec" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 668: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 669: algo="aead rfc4106(gcm(aes)) 0x3132333435363738393031323334353664636261 128" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 670: srcip=192.168.123.3 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 671: dstip=192.168.123.4 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 672: sysfsd=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 673: sysfsf=$sysfsd/ipsec ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 674: sysfsnet=/sys/bus/netdevsim/devices/netdevsim0/net/ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 675: probed=false ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 677: if ! mount | grep -q debugfs; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 678: mount -t debugfs none /sys/kernel/debug/ &> /dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 682: if [ ! -w /sys/bus/netdevsim/new_device ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 683: run_cmd modprobe -q netdevsim ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 684: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 685: end_test "SKIP: ipsec_offload can't load netdevsim" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 686: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 688: probed=true ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 691: echo "0" > /sys/bus/netdevsim/new_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 692: while [ ! -d $sysfsnet ] ; do :; done ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: while [ ! -d "$sysfsnet" ] ; do :; done In rtnetlink.sh line 693: udevadm settle ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 694: dev=`ls $sysfsnet` ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev=$(ls "$sysfsnet") In rtnetlink.sh line 696: ip addr add $srcip dev $dev ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr add "$srcip" dev "$dev" In rtnetlink.sh line 697: ip link set $dev up ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$dev" up In rtnetlink.sh line 698: if [ ! -d $sysfsd ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ ! -d "$sysfsd" ] ; then In rtnetlink.sh line 699: end_test "FAIL: ipsec_offload can't create device $dev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 700: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 702: if [ ! -f $sysfsf ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ ! -f "$sysfsf" ] ; then In rtnetlink.sh line 703: end_test "FAIL: ipsec_offload netdevsim doesn't support IPsec offload" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 704: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 708: ip x s flush ; ip x p flush ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 711: run_cmd ip x p add dir out src $srcip/24 dst $dstip/24 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p add dir out src "$srcip"/24 dst "$dstip"/24 \ In rtnetlink.sh line 712: tmpl proto esp src $srcip dst $dstip spi 9 \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tmpl proto esp src "$srcip" dst "$dstip" spi 9 \ In rtnetlink.sh line 715: run_cmd ip x p add dir in src $dstip/24 dst $srcip/24 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p add dir in src "$dstip"/24 dst "$srcip"/24 \ In rtnetlink.sh line 716: tmpl proto esp src $dstip dst $srcip spi 9 \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tmpl proto esp src "$dstip" dst "$srcip" spi 9 \ In rtnetlink.sh line 719: run_cmd ip x s add proto esp src $srcip dst $dstip spi 9 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s add proto esp src "$srcip" dst "$dstip" spi 9 \ In rtnetlink.sh line 720: mode transport reqid 42 $algo sel src $srcip/24 dst $dstip/24 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mode transport reqid 42 "$algo" sel src "$srcip"/24 dst "$dstip"/24 \ In rtnetlink.sh line 721: offload dev $dev dir out ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: offload dev "$dev" dir out In rtnetlink.sh line 723: run_cmd ip x s add proto esp src $dstip dst $srcip spi 9 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s add proto esp src "$dstip" dst "$srcip" spi 9 \ In rtnetlink.sh line 724: mode transport reqid 42 $algo sel src $dstip/24 dst $srcip/24 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mode transport reqid 42 "$algo" sel src "$dstip"/24 dst "$srcip"/24 \ In rtnetlink.sh line 725: offload dev $dev dir in ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: offload dev "$dev" dir in In rtnetlink.sh line 727: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 728: end_test "FAIL: ipsec_offload can't create SA" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 729: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 733: lines=`ip x s list | grep -c "crypto offload parameters: dev $dev dir"` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: lines=$(ip x s list | grep -c "crypto offload parameters: dev $dev dir") In rtnetlink.sh line 734: if [ $lines -ne 2 ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$lines" -ne 2 ] ; then In rtnetlink.sh line 735: check_err 1 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 736: end_test "FAIL: ipsec_offload SA offload missing from list output" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 740: ip neigh add $dstip dev $dev lladdr 00:11:22:33:44:55 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip neigh add "$dstip" dev "$dev" lladdr 00:11:22:33:44:55 In rtnetlink.sh line 742: ping -I $dev -c 3 -W 1 -i 0 $dstip >/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping -I "$dev" -c 3 -W 1 -i 0 "$dstip" >/dev/null In rtnetlink.sh line 745: run_cmd diff $sysfsf - << EOF ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd diff "$sysfsf" - << EOF In rtnetlink.sh line 754: if [ $? -ne 0 ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 755: end_test "FAIL: ipsec_offload incorrect driver data" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 756: check_err 1 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 760: ip x s flush ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 761: ip x p flush ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 762: lines=`grep -c "SA count=0" $sysfsf` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^--------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(grep -c "SA count=0" "$sysfsf") In rtnetlink.sh line 763: if [ $lines -ne 1 ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$lines" -ne 1 ] ; then In rtnetlink.sh line 764: check_err 1 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 765: end_test "FAIL: ipsec_offload SA not removed from driver" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 769: echo 0 > /sys/bus/netdevsim/del_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 770: $probed && rmmod netdevsim ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 772: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 773: end_test "FAIL: ipsec_offload" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 774: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 776: end_test "PASS: ipsec_offload" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 781: DEV_NS=gretap00 ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 782: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 784: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 785: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 786: end_test "SKIP gretap tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 787: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 790: run_cmd_grep "^Usage:" ip link help gretap ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 791: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 792: end_test "SKIP: gretap: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 793: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 794: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 798: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 802: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 803: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 804: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 807: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap external ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 808: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 810: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 811: end_test "FAIL: gretap" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 812: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 813: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 815: end_test "PASS: gretap" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 817: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 822: DEV_NS=ip6gretap00 ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 823: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 825: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 826: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 827: end_test "SKIP ip6gretap tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 828: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 831: run_cmd_grep "^Usage:" ip link help ip6gretap ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 832: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 833: end_test "SKIP: ip6gretap: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 834: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 835: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 839: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 843: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" fc00:200::1/96 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 844: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 845: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 848: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap external ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 849: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 851: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 852: end_test "FAIL: ip6gretap" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 853: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 854: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 856: end_test "PASS: ip6gretap" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 858: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 863: DEV_NS=erspan00 ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 864: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 865: run_cmd_grep "^Usage:" ip link help erspan ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 866: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 867: end_test "SKIP: erspan: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 868: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 870: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 871: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 872: end_test "SKIP erspan tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 873: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 877: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 882: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 883: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 884: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 887: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 892: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 893: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 894: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 897: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan external ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 898: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 900: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 901: end_test "FAIL: erspan" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 902: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 903: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 905: end_test "PASS: erspan" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 907: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 912: DEV_NS=ip6erspan00 ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 913: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 914: run_cmd_grep "^Usage:" ip link help ip6erspan ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 915: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 916: end_test "SKIP: ip6erspan: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 917: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 919: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 920: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 921: end_test "SKIP ip6erspan tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 922: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 926: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 931: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 932: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 933: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 936: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 941: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 942: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 943: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 946: run_cmd ip -netns "$testns" link add dev "$DEV_NS" \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 949: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 951: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 952: end_test "FAIL: ip6erspan" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 953: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 954: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 956: end_test "PASS: ip6erspan" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 958: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 963: brdev="test-br0" ^--------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 964: vxlandev="vxlan10" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 965: test_mac=de:ad:be:ef:13:37 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 966: localip="10.0.2.2" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 967: dstip="10.0.2.3" ^--------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 968: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 970: run_cmd_grep 'bridge fdb get' bridge fdb help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 971: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 972: end_test "SKIP: fdb get tests: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 973: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 976: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 977: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 978: end_test "SKIP fdb get tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 979: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 981: IP="ip -netns $testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 982: BRIDGE="bridge -netns $testns" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 983: run_cmd $IP link add "$vxlandev" type vxlan id 10 local $localip \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link add "$vxlandev" type vxlan id 10 local "$localip" \ In rtnetlink.sh line 985: run_cmd $IP link add name "$brdev" type bridge ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link add name "$brdev" type bridge In rtnetlink.sh line 986: run_cmd $IP link set dev "$vxlandev" master "$brdev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link set dev "$vxlandev" master "$brdev" In rtnetlink.sh line 987: run_cmd $BRIDGE fdb add $test_mac dev "$vxlandev" master ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb add "$test_mac" dev "$vxlandev" master In rtnetlink.sh line 988: run_cmd $BRIDGE fdb add $test_mac dev "$vxlandev" dst $dstip self ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb add "$test_mac" dev "$vxlandev" dst "$dstip" self In rtnetlink.sh line 989: run_cmd_grep "dev $vxlandev master $brdev" $BRIDGE fdb get $test_mac brport "$vxlandev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "dev $vxlandev master $brdev" "$BRIDGE" fdb get "$test_mac" brport "$vxlandev" In rtnetlink.sh line 990: run_cmd_grep "dev $vxlandev master $brdev" $BRIDGE fdb get $test_mac br "$brdev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "dev $vxlandev master $brdev" "$BRIDGE" fdb get "$test_mac" br "$brdev" In rtnetlink.sh line 991: run_cmd_grep "dev $vxlandev dst $dstip" $BRIDGE fdb get $test_mac dev "$vxlandev" self ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "dev $vxlandev dst $dstip" "$BRIDGE" fdb get "$test_mac" dev "$vxlandev" self In rtnetlink.sh line 993: ip netns del $testns &>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip netns del "$testns" &>/dev/null In rtnetlink.sh line 995: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 996: end_test "FAIL: bridge fdb get" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 997: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1000: end_test "PASS: bridge fdb get" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1005: local test_mac=de:ad:be:ef:13:37 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1006: local dummydev="dummy1" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1007: local brdev="test-br0" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1008: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1010: run_cmd_grep 'bridge fdb get' bridge fdb help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1011: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1012: end_test "SKIP: fdb del tests: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1013: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1016: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1017: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1018: end_test "SKIP fdb del tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1019: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1021: IP="ip -netns $testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1022: BRIDGE="bridge -netns $testns" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1023: run_cmd $IP link add $dummydev type dummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link add "$dummydev" type dummy In rtnetlink.sh line 1024: run_cmd $IP link add name $brdev type bridge vlan_filtering 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link add name "$brdev" type bridge vlan_filtering 1 In rtnetlink.sh line 1025: run_cmd $IP link set dev $dummydev master $brdev ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link set dev "$dummydev" master "$brdev" In rtnetlink.sh line 1026: run_cmd $BRIDGE fdb add $test_mac dev $dummydev master static vlan 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb add "$test_mac" dev "$dummydev" master static vlan 1 In rtnetlink.sh line 1027: run_cmd $BRIDGE vlan del vid 1 dev $dummydev ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" vlan del vid 1 dev "$dummydev" In rtnetlink.sh line 1028: run_cmd $BRIDGE fdb get $test_mac br $brdev vlan 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb get "$test_mac" br "$brdev" vlan 1 In rtnetlink.sh line 1029: run_cmd $BRIDGE fdb del $test_mac dev $dummydev master vlan 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb del "$test_mac" dev "$dummydev" master vlan 1 In rtnetlink.sh line 1030: run_cmd_fail $BRIDGE fdb get $test_mac br $brdev vlan 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_fail "$BRIDGE" fdb get "$test_mac" br "$brdev" vlan 1 In rtnetlink.sh line 1032: ip netns del $testns &>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip netns del "$testns" &>/dev/null In rtnetlink.sh line 1034: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1035: end_test "FAIL: bridge fdb del" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1036: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1039: end_test "PASS: bridge fdb del" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1044: dstmac=de:ad:be:ef:13:37 ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1045: dstip=10.0.2.4 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1046: dstip6=dead::2 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1047: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1049: run_cmd_grep 'ip neigh get' ip neigh help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1050: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1051: end_test "SKIP: fdb get tests: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1052: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1056: run_cmd ip neigh add $dstip lladdr $dstmac dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh add "$dstip" lladdr "$dstmac" dev "$devdummy" In rtnetlink.sh line 1057: run_cmd_grep "$dstmac" ip neigh get $dstip dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "$dstmac" ip neigh get "$dstip" dev "$devdummy" In rtnetlink.sh line 1058: run_cmd ip neigh del $dstip lladdr $dstmac dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh del "$dstip" lladdr "$dstmac" dev "$devdummy" In rtnetlink.sh line 1061: run_cmd ip neigh add proxy $dstip dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh add proxy "$dstip" dev "$devdummy" In rtnetlink.sh line 1062: run_cmd_grep "$dstip" ip neigh get proxy $dstip dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "$dstip" ip neigh get proxy "$dstip" dev "$devdummy" In rtnetlink.sh line 1063: run_cmd ip neigh del proxy $dstip dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh del proxy "$dstip" dev "$devdummy" In rtnetlink.sh line 1066: run_cmd ip neigh add $dstip6 lladdr $dstmac dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh add "$dstip6" lladdr "$dstmac" dev "$devdummy" In rtnetlink.sh line 1067: run_cmd_grep "$dstmac" ip neigh get $dstip6 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "$dstmac" ip neigh get "$dstip6" dev "$devdummy" In rtnetlink.sh line 1068: run_cmd ip neigh del $dstip6 lladdr $dstmac dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh del "$dstip6" lladdr "$dstmac" dev "$devdummy" In rtnetlink.sh line 1071: run_cmd ip neigh add proxy $dstip6 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh add proxy "$dstip6" dev "$devdummy" In rtnetlink.sh line 1072: run_cmd_grep "$dstip6" ip neigh get proxy $dstip6 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "$dstip6" ip neigh get proxy "$dstip6" dev "$devdummy" In rtnetlink.sh line 1073: run_cmd ip neigh del proxy $dstip6 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh del proxy "$dstip6" dev "$devdummy" In rtnetlink.sh line 1075: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 1076: end_test "FAIL: neigh get" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1077: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1080: end_test "PASS: neigh get" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1085: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1086: sysfsnet=/sys/bus/netdevsim/devices/netdevsim ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1087: probed=false ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1089: if [ ! -w /sys/bus/netdevsim/new_device ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1090: run_cmd modprobe -q netdevsim ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1091: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1092: end_test "SKIP: bridge_parent_id can't load netdevsim" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1093: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1095: probed=true ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1098: echo "10 1" > /sys/bus/netdevsim/new_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1099: while [ ! -d ${sysfsnet}10 ] ; do :; done ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: while [ ! -d "${sysfsnet}"10 ] ; do :; done In rtnetlink.sh line 1100: echo "20 1" > /sys/bus/netdevsim/new_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1101: while [ ! -d ${sysfsnet}20 ] ; do :; done ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: while [ ! -d "${sysfsnet}"20 ] ; do :; done In rtnetlink.sh line 1102: udevadm settle ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1103: dev10=`ls ${sysfsnet}10/net/` ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev10=$(ls "${sysfsnet}"10/net/) In rtnetlink.sh line 1104: dev20=`ls ${sysfsnet}20/net/` ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev20=$(ls "${sysfsnet}"20/net/) In rtnetlink.sh line 1105: run_cmd ip link add name test-bond0 type bond mode 802.3ad ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1106: run_cmd ip link set dev $dev10 master test-bond0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip link set dev "$dev10" master test-bond0 In rtnetlink.sh line 1107: run_cmd ip link set dev $dev20 master test-bond0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip link set dev "$dev20" master test-bond0 In rtnetlink.sh line 1108: run_cmd ip link add name test-br0 type bridge ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1109: run_cmd ip link set dev test-bond0 master test-br0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1112: ip link del dev test-br0 ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1113: ip link del dev test-bond0 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1114: echo 20 > /sys/bus/netdevsim/del_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1115: echo 10 > /sys/bus/netdevsim/del_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1116: $probed && rmmod netdevsim ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1118: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1119: end_test "FAIL: bridge_parent_id" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1120: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1122: end_test "PASS: bridge_parent_id" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1127: local addr=$1; shift ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1129: ip -N -j address show dev "$devdummy" | ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1136: ip -N -j address show dev "$devdummy" "$@" | ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1142: local what=$1; shift ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1143: local addr=$1; shift ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1144: local addr2=${addr%/*}2/${addr#*/} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1145: local addr3=${addr%/*}3/${addr#*/} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1146: local proto ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1147: local count ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1148: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1149: local err ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1151: ip address add dev "$devdummy" "$addr3" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1152: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1153: proto=$(address_get_proto "$addr3") ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1154: [[ "$proto" == null ]] ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1155: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1157: ip address add dev "$devdummy" "$addr2" proto 0x99 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1158: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1159: proto=$(address_get_proto "$addr2") ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1160: [[ "$proto" == 0x99 ]] ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1161: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1163: ip address add dev "$devdummy" "$addr" proto 0xab ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1164: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1165: proto=$(address_get_proto "$addr") ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1166: [[ "$proto" == 0xab ]] ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1167: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1169: ip address replace dev "$devdummy" "$addr" proto 0x11 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1170: proto=$(address_get_proto "$addr") ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1171: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1172: [[ "$proto" == 0x11 ]] ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1173: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1175: count=$(address_count) ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1176: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1177: (( count >= 3 )) # $addr, $addr2 and $addr3 plus any kernel addresses ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1178: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1180: count=$(address_count proto 0) ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1181: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1182: (( count == 1 )) # just $addr3 ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1183: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1185: count=$(address_count proto 0x11) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1186: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1187: (( count == 2 )) # $addr and $addr3 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1188: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1190: count=$(address_count proto 0xab) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1191: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1192: (( count == 1 )) # just $addr3 ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1193: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1195: ip address del dev "$devdummy" "$addr" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1196: ip address del dev "$devdummy" "$addr2" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1197: ip address del dev "$devdummy" "$addr3" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1199: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1200: end_test "FAIL: address proto $what" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1201: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1203: end_test "PASS: address proto $what" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1208: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1210: do_test_address_proto IPv4 192.0.2.1/28 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1211: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1213: do_test_address_proto IPv6 2001:db8:1::1/64 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1214: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1216: return $ret ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 1221: local bond="bond123" ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1222: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1224: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1225: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1226: end_test "SKIP bonding tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1227: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1230: run_cmd ip -netns $testns link add dev $bond type bond mode balance-rr ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link add dev "$bond" type bond mode balance-rr In rtnetlink.sh line 1231: run_cmd ip -netns $testns link add dev $devdummy type dummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link add dev "$devdummy" type dummy In rtnetlink.sh line 1232: run_cmd ip -netns $testns link set dev $devdummy up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$devdummy" up In rtnetlink.sh line 1233: run_cmd ip -netns $testns link set dev $devdummy master $bond down ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$devdummy" master "$bond" down In rtnetlink.sh line 1234: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1235: end_test "FAIL: initially up interface added to a bond and set down" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1236: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1237: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1240: end_test "PASS: enslave interface in a bond" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1241: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1252: local dev=$1 ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1253: local prefix="" ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1254: local addr_list=$(ip -j -n $testns addr show dev ${dev}) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local addr_list=$(ip -j -n "$testns" addr show dev "${dev}") In rtnetlink.sh line 1255: local temp_addrs=$(echo ${addr_list} | \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local temp_addrs=$(echo "${addr_list}" | \ In rtnetlink.sh line 1257: local mng_prefixes=$(echo ${addr_list} | \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local mng_prefixes=$(echo "${addr_list}" | \ In rtnetlink.sh line 1260: local undep_prefixes=$(echo ${addr_list} | \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local undep_prefixes=$(echo "${addr_list}" | \ In rtnetlink.sh line 1265: for address in ${temp_addrs}; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1266: prefix=$(echo ${address} | cut -d: -f1-4) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: prefix=$(echo "${address}" | cut -d: -f1-4) In rtnetlink.sh line 1267: if [[ ! " ${mng_prefixes} " =~ " $prefix " ]]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2076 (warning): Remove quotes from right-hand side of =~ to match as a regex rather than literally. In rtnetlink.sh line 1268: check_err 1 "FAIL: Temporary $address with no matching mngtmpaddr!"; ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1269: return 0 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1274: for prefix in ${mng_prefixes}; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1275: if [[ ! " ${undep_prefixes} " =~ " $prefix " ]]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2076 (warning): Remove quotes from right-hand side of =~ to match as a regex rather than literally. In rtnetlink.sh line 1276: check_err 1 "FAIL: No undeprecated temporary in $prefix!"; ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1277: return 0 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1281: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1286: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1288: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1289: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1290: end_test "SKIP mngtmpaddr tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1291: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1295: run_cmd ip -n $testns link add ${devdummy} type dummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" link add "${devdummy}" type dummy In rtnetlink.sh line 1296: run_cmd ip -n $testns link set ${devdummy} up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" link set "${devdummy}" up In rtnetlink.sh line 1297: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.use_tempaddr=1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip netns exec "$testns" sysctl -w net.ipv6.conf."${devdummy}".use_tempaddr=1 In rtnetlink.sh line 1298: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_prefered_lft=10 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip netns exec "$testns" sysctl -w net.ipv6.conf."${devdummy}".temp_prefered_lft=10 In rtnetlink.sh line 1299: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_valid_lft=25 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip netns exec "$testns" sysctl -w net.ipv6.conf."${devdummy}".temp_valid_lft=25 In rtnetlink.sh line 1300: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.max_desync_factor=1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip netns exec "$testns" sysctl -w net.ipv6.conf."${devdummy}".max_desync_factor=1 In rtnetlink.sh line 1305: for i in $(seq 1 9); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1306: run_cmd ip -n $testns addr add 2001:db8:7e57:${i}::1/64 mngtmpaddr dev ${devdummy} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" addr add 2001:db8:7e57:"${i}"::1/64 mngtmpaddr dev "${devdummy}" In rtnetlink.sh line 1311: slowwait 30 validate_mngtmpaddr ${devdummy} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: slowwait 30 validate_mngtmpaddr "${devdummy}" In rtnetlink.sh line 1316: for i in $(seq 1 9); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1317: (( $i % 4 == 0 )) && mng_flag="mngtmpaddr" || mng_flag="" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables. ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1318: if (( $i % 2 == 0 )); then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables. In rtnetlink.sh line 1319: run_cmd ip -n $testns addr del 2001:db8:7e57:${i}::1/64 $mng_flag dev ${devdummy} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" addr del 2001:db8:7e57:"${i}"::1/64 "$mng_flag" dev "${devdummy}" In rtnetlink.sh line 1321: run_cmd ip -n $testns addr change 2001:db8:7e57:${i}::1/64 dev ${devdummy} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" addr change 2001:db8:7e57:"${i}"::1/64 dev "${devdummy}" In rtnetlink.sh line 1324: validate_mngtmpaddr ${devdummy} ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: validate_mngtmpaddr "${devdummy}" In rtnetlink.sh line 1327: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1328: end_test "FAIL: mngtmpaddr add/remove incorrect" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1330: end_test "PASS: mngtmpaddr add/remove correctly" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1333: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1334: return $ret ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 1363: (options: $(echo $ALL_TESTS)) ^----------------^ SC2116 (style): Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: (options: $(echo "$ALL_TESTS")) In rtnetlink.sh line 1378: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. For more information: https://www.shellcheck.net/wiki/SC2034 -- spi appears unused. Verify use (o... https://www.shellcheck.net/wiki/SC2076 -- Remove quotes from right-hand sid... https://www.shellcheck.net/wiki/SC2154 -- testns is referenced but not assi... ====== Checking the tree with the patch ====== Checking tools/testing/selftests/net/rtnetlink.sh - 92b39af047694c9000fd5d4b91e04b1c583b35a20f0c57eecd990e1ab7a38e29 In rtnetlink.sh line 55: if [ $1 -eq 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$1" -eq 0 ]; then In rtnetlink.sh line 56: ret=1 ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 69: if [ "$VERBOSE" = "1" -a -n "$out" ]; then ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. In rtnetlink.sh line 83: run_cmd_common "$@" ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 84: rc=$? ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 85: check_fail $rc ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_fail "$rc" In rtnetlink.sh line 86: return $rc ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 91: local find="$1"; shift ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 92: local cmd="$*" ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 93: local out ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 94: if [ "$VERBOSE" = "1" ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 95: echo "COMMAND: ${cmd} 2>&1 | grep -q '${find}'" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 97: out=$($cmd 2>&1 | grep -q "${find}" 2>&1) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 98: return $? ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 102: run_cmd_grep_common "$@" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 103: rc=$? ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 104: check_err $rc ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_err "$rc" In rtnetlink.sh line 105: return $rc ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 110: run_cmd_grep_common "$@" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 111: rc=$? ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 112: check_fail $rc ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_fail "$rc" In rtnetlink.sh line 113: return $rc ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 123: read a ^--^ SC2162 (info): read without -r will mangle backslashes. In rtnetlink.sh line 128: read a ^--^ SC2162 (info): read without -r will mangle backslashes. In rtnetlink.sh line 147: dev="$1" ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 148: r=$ret ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 149: run_cmd ip netconf show dev "$dev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 150: for f in 4 6; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 151: run_cmd ip -$f netconf show dev "$dev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -"$f" netconf show dev "$dev" In rtnetlink.sh line 154: if [ $ret -ne 0 ] ;then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ] ;then In rtnetlink.sh line 155: end_test "FAIL: ip netconf show $dev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 156: test $r -eq 0 && ret=0 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: test "$r" -eq 0 && ret=0 In rtnetlink.sh line 157: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 164: devbr="test-br0" ^--------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 165: vlandev="testbr-vlan1" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 167: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 168: run_cmd ip link add name "$devbr" type bridge ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 169: run_cmd ip link set dev "$devdummy" master "$devbr" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 170: run_cmd ip link set "$devbr" up ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 171: run_cmd ip link add link "$devbr" name "$vlandev" type vlan id 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 172: run_cmd ip addr add dev "$vlandev" 10.200.7.23/30 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 173: run_cmd ip -6 addr add dev "$vlandev" dead:42::1234/64 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 174: run_cmd ip -d link ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 175: run_cmd ip r s t all ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 177: for name in "$devbr" "$vlandev" "$devdummy" ; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 178: kci_test_netconf "$name" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 180: run_cmd ip -6 addr del dev "$vlandev" dead:42::1234/64 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 181: run_cmd ip link del dev "$vlandev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 182: run_cmd ip link del dev "$devbr" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 184: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 185: end_test "FAIL: bridge setup" ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 186: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 188: end_test "PASS: bridge setup" ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 194: gredev=neta ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 195: rem=10.42.42.1 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 196: loc=10.0.0.1 ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 198: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 199: run_cmd ip tunnel add $gredev mode gre remote $rem local $loc ttl 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip tunnel add "$gredev" mode gre remote "$rem" local "$loc" ttl 1 In rtnetlink.sh line 200: run_cmd ip link set $gredev up ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip link set "$gredev" up In rtnetlink.sh line 201: run_cmd ip addr add 10.23.7.10 dev $gredev ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip addr add 10.23.7.10 dev "$gredev" In rtnetlink.sh line 202: run_cmd ip route add 10.23.8.0/30 dev $gredev ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip route add 10.23.8.0/30 dev "$gredev" In rtnetlink.sh line 203: run_cmd ip addr add dev "$devdummy" 10.23.7.11/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 204: run_cmd ip link ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 205: run_cmd ip addr ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 207: kci_test_netconf "$gredev" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 208: run_cmd ip addr del dev "$devdummy" 10.23.7.11/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 209: run_cmd ip link del $gredev ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip link del "$gredev" In rtnetlink.sh line 211: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 212: end_test "FAIL: gre tunnel endpoint" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 213: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 215: end_test "PASS: gre tunnel endpoint" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 222: dev=lo ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 223: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 225: run_cmd tc qdisc add dev "$dev" root handle 1: htb ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 226: run_cmd tc class add dev "$dev" parent 1: classid 1:10 htb rate 1mbit ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 227: run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffe: protocol ip u32 divisor 256 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 228: run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffd: protocol ip u32 divisor 256 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 229: run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffc: protocol ip u32 divisor 256 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 230: run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ht ffe:2: match ip src 10.0.0.3 flowid 1:10 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 231: run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:2 u32 ht ffe:2: match ip src 10.0.0.2 flowid 1:10 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 232: run_cmd tc filter show dev "$dev" parent 1:0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 233: run_cmd tc filter del dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 234: run_cmd tc filter show dev "$dev" parent 1:0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 235: run_cmd tc qdisc del dev "$dev" root handle 1: htb ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 237: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 238: end_test "FAIL: tc htb hierarchy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 239: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 241: end_test "PASS: tc htb hierarchy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 247: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 248: run_cmd ip rule add fwmark 1 lookup 100 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 249: run_cmd ip route add local 0.0.0.0/0 dev lo table 100 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 250: run_cmd ip r s t all ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 251: run_cmd ip rule del fwmark 1 lookup 100 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 252: run_cmd ip route del local 0.0.0.0/0 dev lo table 100 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 254: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 255: end_test "FAIL: policy route test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 256: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 258: end_test "PASS: policy routing" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 263: local hash_policy=$(sysctl -n net.ipv4.fib_multipath_hash_policy) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 265: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 266: run_cmd ip route get 127.0.0.1 ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 267: run_cmd ip route get 127.0.0.1 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 268: run_cmd ip route get ::1 ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 269: run_cmd ip route get fe80::1 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 270: run_cmd ip route get 127.0.0.1 from 127.0.0.1 oif lo tos 0x10 mark 0x1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 271: run_cmd ip route get ::1 from ::1 iif lo oif lo tos 0x10 mark 0x1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 272: run_cmd ip addr add dev "$devdummy" 10.23.7.11/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 273: run_cmd ip route get 10.23.7.11 from 10.23.7.12 iif "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 274: run_cmd ip route add 10.23.8.0/24 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 278: sysctl -wq net.ipv4.fib_multipath_hash_policy=0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 279: run_cmd ip route get 10.23.8.11 ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 280: sysctl -wq net.ipv4.fib_multipath_hash_policy=1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 281: run_cmd ip route get 10.23.8.11 ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 282: sysctl -wq net.ipv4.fib_multipath_hash_policy="$hash_policy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 283: run_cmd ip route del 10.23.8.0/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 284: run_cmd ip addr del dev "$devdummy" 10.23.7.11/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 287: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 288: end_test "FAIL: route get" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 289: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 292: end_test "PASS: route get" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 297: for i in $(seq 10 100) ;do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 298: lft=$(((RANDOM%3) + 1)) ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 299: run_cmd ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1)) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip addr add 10.23.11."$i"/32 dev "$devdummy" preferred_lft "$lft" valid_lft $((lft+1)) In rtnetlink.sh line 302: sleep 5 ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 303: run_cmd_grep_fail "10.23.11." ip addr show dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 304: if [ $? -eq 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. In rtnetlink.sh line 305: check_err 1 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 306: end_test "FAIL: preferred_lft addresses remaining" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 307: return ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 310: end_test "PASS: preferred_lft addresses have expired" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 315: promote=$(sysctl -n net.ipv4.conf.$devdummy.promote_secondaries) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: promote=$(sysctl -n net.ipv4.conf."$devdummy".promote_secondaries) In rtnetlink.sh line 317: sysctl -q net.ipv4.conf.$devdummy.promote_secondaries=1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl -q net.ipv4.conf."$devdummy".promote_secondaries=1 In rtnetlink.sh line 319: for i in $(seq 2 254);do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 320: IP="10.23.11.$i" ^--------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 321: ip -f inet addr add $IP/16 brd + dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -f inet addr add "$IP"/16 brd + dev "$devdummy" In rtnetlink.sh line 322: ifconfig "$devdummy" $IP netmask 255.255.0.0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ifconfig "$devdummy" "$IP" netmask 255.255.0.0 In rtnetlink.sh line 325: ip addr flush dev "$devdummy" ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 327: [ $promote -eq 0 ] && sysctl -q net.ipv4.conf.$devdummy.promote_secondaries=0 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: [ "$promote" -eq 0 ] && sysctl -q net.ipv4.conf."$devdummy".promote_secondaries=0 In rtnetlink.sh line 329: end_test "PASS: promote_secondaries complete" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 334: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 335: run_cmd ip addrlabel add prefix dead::/64 dev lo label 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 336: run_cmd_grep "prefix dead::/64 dev lo label 1" ip addrlabel list ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 337: run_cmd ip addrlabel del prefix dead::/64 dev lo label 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 338: run_cmd ip addrlabel add prefix dead::/64 label 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 339: run_cmd ip addrlabel del prefix dead::/64 label 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 342: for i in $(seq 1 1000); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 343: ip addrlabel add prefix 1c3::/64 label 12345 2>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 346: for i in $(seq 1 1000); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 347: ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 350: wait ^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 352: ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 354: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 355: end_test "FAIL: ipv6 addrlabel" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 356: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 359: end_test "PASS: ipv6 addrlabel" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 364: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 365: namewant=$(uuidgen) ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 366: syspathname="/sys/class/net/$devdummy/ifalias" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 367: run_cmd ip link set dev "$devdummy" alias "$namewant" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 369: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 370: end_test "FAIL: cannot set interface alias of $devdummy to $namewant" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 371: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 373: run_cmd_grep "alias $namewant" ip link show "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 375: if [ -r "$syspathname" ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 376: read namehave < "$syspathname" ^--^ SC2162 (info): read without -r will mangle backslashes. ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 377: if [ "$namewant" != "$namehave" ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 378: end_test "FAIL: did set ifalias $namewant but got $namehave" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 379: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 382: namewant=$(uuidgen) ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 383: echo "$namewant" > "$syspathname" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 384: run_cmd_grep "alias $namewant" ip link show "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 387: echo "" > "$syspathname" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 388: run_cmd_grep_fail "alias $namewant" ip link show "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 390: for i in $(seq 1 100); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 391: uuidgen > "$syspathname" & ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 394: wait ^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 397: run_cmd ip link set dev "$devdummy" alias "$namewant" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 401: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 402: end_test "FAIL: set interface alias $devdummy to $namewant" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 403: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 406: end_test "PASS: set ifalias $namewant for $devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 411: vrfname="test-vrf" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 412: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 413: run_cmd ip link show type vrf ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 414: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 415: end_test "SKIP: vrf: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 416: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 418: run_cmd ip link add "$vrfname" type vrf table 10 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 419: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 420: end_test "FAIL: can't add vrf interface, skipping test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 421: return 0 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 423: run_cmd_grep "$vrfname" ip -br link show type vrf ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 424: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 425: end_test "FAIL: created vrf device not found" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 426: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 429: run_cmd ip link set dev "$vrfname" up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 430: run_cmd ip link set dev "$devdummy" master "$vrfname" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 431: run_cmd ip link del dev "$vrfname" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 433: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 434: end_test "FAIL: vrf" ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 435: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 438: end_test "PASS: vrf" ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 443: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 444: vxlan="test-vxlan0" ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 445: vlan="test-vlan0" ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 446: run_cmd ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2154 (warning): testns is referenced but not assigned. In rtnetlink.sh line 448: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 449: end_test "FAIL: can't add vxlan interface, skipping test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 450: return 0 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 453: run_cmd ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 454: run_cmd ip -netns "$testns" link set up dev "$vxlan" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 455: run_cmd ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 458: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 459: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 460: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 462: run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 463: run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 465: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan proxy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 466: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan norsc ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 467: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l2miss ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 468: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l3miss ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 469: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan external ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 470: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udpcsum ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 471: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumtx ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 472: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumrx ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 473: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumtx ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 474: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumrx ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 475: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gbp ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 476: run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gpe ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 477: run_cmd ip -netns "$testns" link del "$vxlan" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 479: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 480: end_test "FAIL: vxlan" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 481: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 483: end_test "PASS: vxlan" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 488: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 489: name="test-fou" ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 490: run_cmd_grep 'Usage: ip fou' ip fou help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 491: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 492: end_test "SKIP: fou: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 493: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 496: if ! /sbin/modprobe -q -n fou; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 497: end_test "SKIP: module fou is not found" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 498: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 500: /sbin/modprobe -q fou ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 502: run_cmd ip -netns "$testns" fou add port 7777 ipproto 47 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 503: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 504: end_test "FAIL: can't add fou port 7777, skipping test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 505: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 507: run_cmd ip -netns "$testns" fou add port 8888 ipproto 4 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 508: run_cmd_fail ip -netns "$testns" fou del port 9999 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 509: run_cmd ip -netns "$testns" fou del port 7777 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 510: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 511: end_test "FAIL: fou"s ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 512: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 515: end_test "PASS: fou" ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 521: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 522: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 523: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 524: end_test "SKIP encap tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 525: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 527: run_cmd ip -netns "$testns" link set lo up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 528: run_cmd ip -netns "$testns" link add name "$devdummy" type dummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 529: run_cmd ip -netns "$testns" link set "$devdummy" up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 530: run_cmd kci_test_encap_vxlan ^--------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 531: run_cmd kci_test_encap_fou ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 533: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 534: return $ret ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 539: msname="test_macsec0" ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 540: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 541: run_cmd_grep "^Usage: ip macsec" ip macsec help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 542: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 543: end_test "SKIP: macsec: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 544: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 546: run_cmd ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 547: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 548: end_test "FAIL: can't add macsec interface, skipping test" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 549: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 551: run_cmd ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 552: run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 553: run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 0123456789abcdef0123456789abcdef ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 554: run_cmd ip macsec show ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 555: run_cmd ip link del dev "$msname" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 557: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 558: end_test "FAIL: macsec" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 559: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 562: end_test "PASS: macsec" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 585: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 586: algo="aead rfc4106(gcm(aes)) 0x3132333435363738393031323334353664636261 128" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 587: srcip=192.168.123.1 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 588: dstip=192.168.123.2 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 589: spi=7 ^-^ SC2034 (warning): spi appears unused. Verify use (or export if used externally). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 591: ip addr add $srcip dev $devdummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr add "$srcip" dev "$devdummy" In rtnetlink.sh line 594: run_cmd ip x s flush ; ip x p flush ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 597: tmpfile=`mktemp /var/run/ipsectestXXX` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^--------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: tmpfile=$(mktemp /var/run/ipsectestXXX) In rtnetlink.sh line 598: mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: mpid=$((ip x m > "$tmpfile" & echo $!) 2>/dev/null) In rtnetlink.sh line 599: sleep 0.2 ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 601: ipsecid="proto esp src $srcip dst $dstip spi 0x07" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 602: run_cmd ip x s add $ipsecid \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s add "$ipsecid" \ In rtnetlink.sh line 604: $algo sel src $srcip/24 dst $dstip/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$algo" sel src "$srcip"/24 dst "$dstip"/24 In rtnetlink.sh line 607: lines=`ip x s list | grep $srcip | grep $dstip | wc -l` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(ip x s list | grep "$srcip" | grep "$dstip" | wc -l) In rtnetlink.sh line 608: run_cmd test $lines -eq 2 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 609: run_cmd_grep "SAD count 1" ip x s count ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 611: lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(ip x s get "$ipsecid" | grep "$srcip" | grep "$dstip" | wc -l) In rtnetlink.sh line 612: run_cmd test $lines -eq 2 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 613: run_cmd ip x s delete $ipsecid ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s delete "$ipsecid" In rtnetlink.sh line 615: lines=`ip x s list | wc -l` ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: lines=$(ip x s list | wc -l) In rtnetlink.sh line 616: run_cmd test $lines -eq 0 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 0 In rtnetlink.sh line 618: ipsecsel="dir out src $srcip/24 dst $dstip/24" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 619: run_cmd ip x p add $ipsecsel \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p add "$ipsecsel" \ In rtnetlink.sh line 620: tmpl proto esp src $srcip dst $dstip \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tmpl proto esp src "$srcip" dst "$dstip" \ In rtnetlink.sh line 624: lines=`ip x p list | grep $srcip | grep $dstip | wc -l` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(ip x p list | grep "$srcip" | grep "$dstip" | wc -l) In rtnetlink.sh line 625: run_cmd test $lines -eq 2 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 627: run_cmd_grep "SPD IN 0 OUT 1 FWD 0" ip x p count ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 629: lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(ip x p get "$ipsecsel" | grep "$srcip" | grep "$dstip" | wc -l) In rtnetlink.sh line 630: run_cmd test $lines -eq 2 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 632: run_cmd ip x p delete $ipsecsel ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p delete "$ipsecsel" In rtnetlink.sh line 634: lines=`ip x p list | wc -l` ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: lines=$(ip x p list | wc -l) In rtnetlink.sh line 635: run_cmd test $lines -eq 0 ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 0 In rtnetlink.sh line 638: kill $mpid ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: kill "$mpid" In rtnetlink.sh line 639: lines=`wc -l $tmpfile | cut "-d " -f1` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(wc -l "$tmpfile" | cut "-d " -f1) In rtnetlink.sh line 640: run_cmd test $lines -eq 20 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 20 In rtnetlink.sh line 641: rm -rf $tmpfile ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm -rf "$tmpfile" In rtnetlink.sh line 644: run_cmd ip x s flush ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 645: run_cmd ip x p flush ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 646: ip addr del $srcip/32 dev $devdummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr del "$srcip"/32 dev "$devdummy" In rtnetlink.sh line 648: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 649: end_test "FAIL: ipsec" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 650: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 652: end_test "PASS: ipsec" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 669: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 670: algo="aead rfc4106(gcm(aes)) 0x3132333435363738393031323334353664636261 128" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 671: srcip=192.168.123.3 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 672: dstip=192.168.123.4 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 673: sysfsd=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 674: sysfsf=$sysfsd/ipsec ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 675: sysfsnet=/sys/bus/netdevsim/devices/netdevsim0/net/ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 676: probed=false ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 678: if ! mount | grep -q debugfs; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 679: mount -t debugfs none /sys/kernel/debug/ &> /dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 683: if [ ! -w /sys/bus/netdevsim/new_device ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 684: run_cmd modprobe -q netdevsim ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 685: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 686: end_test "SKIP: ipsec_offload can't load netdevsim" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 687: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 689: probed=true ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 692: echo "0" > /sys/bus/netdevsim/new_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 693: while [ ! -d $sysfsnet ] ; do :; done ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: while [ ! -d "$sysfsnet" ] ; do :; done In rtnetlink.sh line 694: udevadm settle ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 695: dev=`ls $sysfsnet` ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev=$(ls "$sysfsnet") In rtnetlink.sh line 697: ip addr add $srcip dev $dev ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr add "$srcip" dev "$dev" In rtnetlink.sh line 698: ip link set $dev up ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$dev" up In rtnetlink.sh line 699: if [ ! -d $sysfsd ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ ! -d "$sysfsd" ] ; then In rtnetlink.sh line 700: end_test "FAIL: ipsec_offload can't create device $dev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 701: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 703: if [ ! -f $sysfsf ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ ! -f "$sysfsf" ] ; then In rtnetlink.sh line 704: end_test "FAIL: ipsec_offload netdevsim doesn't support IPsec offload" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 705: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 709: ip x s flush ; ip x p flush ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 712: run_cmd ip x p add dir out src $srcip/24 dst $dstip/24 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p add dir out src "$srcip"/24 dst "$dstip"/24 \ In rtnetlink.sh line 713: tmpl proto esp src $srcip dst $dstip spi 9 \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tmpl proto esp src "$srcip" dst "$dstip" spi 9 \ In rtnetlink.sh line 716: run_cmd ip x p add dir in src $dstip/24 dst $srcip/24 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p add dir in src "$dstip"/24 dst "$srcip"/24 \ In rtnetlink.sh line 717: tmpl proto esp src $dstip dst $srcip spi 9 \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tmpl proto esp src "$dstip" dst "$srcip" spi 9 \ In rtnetlink.sh line 720: run_cmd ip x s add proto esp src $srcip dst $dstip spi 9 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s add proto esp src "$srcip" dst "$dstip" spi 9 \ In rtnetlink.sh line 721: mode transport reqid 42 $algo sel src $srcip/24 dst $dstip/24 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mode transport reqid 42 "$algo" sel src "$srcip"/24 dst "$dstip"/24 \ In rtnetlink.sh line 722: offload dev $dev dir out ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: offload dev "$dev" dir out In rtnetlink.sh line 724: run_cmd ip x s add proto esp src $dstip dst $srcip spi 9 \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s add proto esp src "$dstip" dst "$srcip" spi 9 \ In rtnetlink.sh line 725: mode transport reqid 42 $algo sel src $dstip/24 dst $srcip/24 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mode transport reqid 42 "$algo" sel src "$dstip"/24 dst "$srcip"/24 \ In rtnetlink.sh line 726: offload dev $dev dir in ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: offload dev "$dev" dir in In rtnetlink.sh line 728: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 729: end_test "FAIL: ipsec_offload can't create SA" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 730: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 734: lines=`ip x s list | grep -c "crypto offload parameters: dev $dev dir"` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: lines=$(ip x s list | grep -c "crypto offload parameters: dev $dev dir") In rtnetlink.sh line 735: if [ $lines -ne 2 ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$lines" -ne 2 ] ; then In rtnetlink.sh line 736: check_err 1 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 737: end_test "FAIL: ipsec_offload SA offload missing from list output" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 741: ip neigh add $dstip dev $dev lladdr 00:11:22:33:44:55 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip neigh add "$dstip" dev "$dev" lladdr 00:11:22:33:44:55 In rtnetlink.sh line 743: ping -I $dev -c 3 -W 1 -i 0 $dstip >/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping -I "$dev" -c 3 -W 1 -i 0 "$dstip" >/dev/null In rtnetlink.sh line 746: run_cmd diff $sysfsf - << EOF ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd diff "$sysfsf" - << EOF In rtnetlink.sh line 755: if [ $? -ne 0 ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 756: end_test "FAIL: ipsec_offload incorrect driver data" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 757: check_err 1 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 761: ip x s flush ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 762: ip x p flush ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 763: lines=`grep -c "SA count=0" $sysfsf` ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^--------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(grep -c "SA count=0" "$sysfsf") In rtnetlink.sh line 764: if [ $lines -ne 1 ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$lines" -ne 1 ] ; then In rtnetlink.sh line 765: check_err 1 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 766: end_test "FAIL: ipsec_offload SA not removed from driver" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 770: echo 0 > /sys/bus/netdevsim/del_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 771: $probed && rmmod netdevsim ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 773: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 774: end_test "FAIL: ipsec_offload" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 775: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 777: end_test "PASS: ipsec_offload" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 782: DEV_NS=gretap00 ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 783: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 785: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 786: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 787: end_test "SKIP gretap tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 788: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 791: run_cmd_grep "^Usage:" ip link help gretap ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 792: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 793: end_test "SKIP: gretap: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 794: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 795: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 799: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 803: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 804: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 805: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 808: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap external ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 809: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 811: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 812: end_test "FAIL: gretap" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 813: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 814: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 816: end_test "PASS: gretap" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 818: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 823: DEV_NS=ip6gretap00 ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 824: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 826: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 827: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 828: end_test "SKIP ip6gretap tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 829: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 832: run_cmd_grep "^Usage:" ip link help ip6gretap ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 833: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 834: end_test "SKIP: ip6gretap: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 835: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 836: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 840: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 844: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" fc00:200::1/96 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 845: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 846: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 849: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap external ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 850: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 852: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 853: end_test "FAIL: ip6gretap" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 854: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 855: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 857: end_test "PASS: ip6gretap" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 859: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 864: DEV_NS=erspan00 ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 865: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 866: run_cmd_grep "^Usage:" ip link help erspan ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 867: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 868: end_test "SKIP: erspan: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 869: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 871: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 872: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 873: end_test "SKIP erspan tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 874: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 878: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 883: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 884: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 885: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 888: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 893: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 894: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 895: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 898: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan external ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 899: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 901: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 902: end_test "FAIL: erspan" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 903: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 904: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 906: end_test "PASS: erspan" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 908: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 913: DEV_NS=ip6erspan00 ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 914: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 915: run_cmd_grep "^Usage:" ip link help ip6erspan ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 916: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 917: end_test "SKIP: ip6erspan: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 918: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 920: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 921: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 922: end_test "SKIP ip6erspan tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 923: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 927: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 932: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 933: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 934: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 937: run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 942: run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 943: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$DEV_NS" up In rtnetlink.sh line 944: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 947: run_cmd ip -netns "$testns" link add dev "$DEV_NS" \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 950: run_cmd ip -netns "$testns" link del "$DEV_NS" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 952: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 953: end_test "FAIL: ip6erspan" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 954: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 955: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 957: end_test "PASS: ip6erspan" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 959: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 964: brdev="test-br0" ^--------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 965: vxlandev="vxlan10" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 966: test_mac=de:ad:be:ef:13:37 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 967: localip="10.0.2.2" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 968: dstip="10.0.2.3" ^--------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 969: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 971: run_cmd_grep 'bridge fdb get' bridge fdb help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 972: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 973: end_test "SKIP: fdb get tests: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 974: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 977: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 978: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 979: end_test "SKIP fdb get tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 980: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 982: IP="ip -netns $testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 983: BRIDGE="bridge -netns $testns" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 984: run_cmd $IP link add "$vxlandev" type vxlan id 10 local $localip \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link add "$vxlandev" type vxlan id 10 local "$localip" \ In rtnetlink.sh line 986: run_cmd $IP link add name "$brdev" type bridge ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link add name "$brdev" type bridge In rtnetlink.sh line 987: run_cmd $IP link set dev "$vxlandev" master "$brdev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link set dev "$vxlandev" master "$brdev" In rtnetlink.sh line 988: run_cmd $BRIDGE fdb add $test_mac dev "$vxlandev" master ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb add "$test_mac" dev "$vxlandev" master In rtnetlink.sh line 989: run_cmd $BRIDGE fdb add $test_mac dev "$vxlandev" dst $dstip self ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb add "$test_mac" dev "$vxlandev" dst "$dstip" self In rtnetlink.sh line 990: run_cmd_grep "dev $vxlandev master $brdev" $BRIDGE fdb get $test_mac brport "$vxlandev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "dev $vxlandev master $brdev" "$BRIDGE" fdb get "$test_mac" brport "$vxlandev" In rtnetlink.sh line 991: run_cmd_grep "dev $vxlandev master $brdev" $BRIDGE fdb get $test_mac br "$brdev" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "dev $vxlandev master $brdev" "$BRIDGE" fdb get "$test_mac" br "$brdev" In rtnetlink.sh line 992: run_cmd_grep "dev $vxlandev dst $dstip" $BRIDGE fdb get $test_mac dev "$vxlandev" self ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "dev $vxlandev dst $dstip" "$BRIDGE" fdb get "$test_mac" dev "$vxlandev" self In rtnetlink.sh line 994: ip netns del $testns &>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip netns del "$testns" &>/dev/null In rtnetlink.sh line 996: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 997: end_test "FAIL: bridge fdb get" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 998: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1001: end_test "PASS: bridge fdb get" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1006: local test_mac=de:ad:be:ef:13:37 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1007: local dummydev="dummy1" ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1008: local brdev="test-br0" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1009: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1011: run_cmd_grep 'bridge fdb get' bridge fdb help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1012: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1013: end_test "SKIP: fdb del tests: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1014: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1017: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1018: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1019: end_test "SKIP fdb del tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1020: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1022: IP="ip -netns $testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1023: BRIDGE="bridge -netns $testns" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1024: run_cmd $IP link add $dummydev type dummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link add "$dummydev" type dummy In rtnetlink.sh line 1025: run_cmd $IP link add name $brdev type bridge vlan_filtering 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link add name "$brdev" type bridge vlan_filtering 1 In rtnetlink.sh line 1026: run_cmd $IP link set dev $dummydev master $brdev ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$IP" link set dev "$dummydev" master "$brdev" In rtnetlink.sh line 1027: run_cmd $BRIDGE fdb add $test_mac dev $dummydev master static vlan 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb add "$test_mac" dev "$dummydev" master static vlan 1 In rtnetlink.sh line 1028: run_cmd $BRIDGE vlan del vid 1 dev $dummydev ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" vlan del vid 1 dev "$dummydev" In rtnetlink.sh line 1029: run_cmd $BRIDGE fdb get $test_mac br $brdev vlan 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb get "$test_mac" br "$brdev" vlan 1 In rtnetlink.sh line 1030: run_cmd $BRIDGE fdb del $test_mac dev $dummydev master vlan 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd "$BRIDGE" fdb del "$test_mac" dev "$dummydev" master vlan 1 In rtnetlink.sh line 1031: run_cmd_fail $BRIDGE fdb get $test_mac br $brdev vlan 1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_fail "$BRIDGE" fdb get "$test_mac" br "$brdev" vlan 1 In rtnetlink.sh line 1033: ip netns del $testns &>/dev/null ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip netns del "$testns" &>/dev/null In rtnetlink.sh line 1035: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1036: end_test "FAIL: bridge fdb del" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1037: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1040: end_test "PASS: bridge fdb del" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1045: dstmac=de:ad:be:ef:13:37 ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1046: dstip=10.0.2.4 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1047: dstip6=dead::2 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1048: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1050: run_cmd_grep 'ip neigh get' ip neigh help ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1051: if [ $? -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1052: end_test "SKIP: fdb get tests: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1053: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1057: run_cmd ip neigh add $dstip lladdr $dstmac dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh add "$dstip" lladdr "$dstmac" dev "$devdummy" In rtnetlink.sh line 1058: run_cmd_grep "$dstmac" ip neigh get $dstip dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "$dstmac" ip neigh get "$dstip" dev "$devdummy" In rtnetlink.sh line 1059: run_cmd ip neigh del $dstip lladdr $dstmac dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh del "$dstip" lladdr "$dstmac" dev "$devdummy" In rtnetlink.sh line 1062: run_cmd ip neigh add proxy $dstip dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh add proxy "$dstip" dev "$devdummy" In rtnetlink.sh line 1063: run_cmd_grep "$dstip" ip neigh get proxy $dstip dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "$dstip" ip neigh get proxy "$dstip" dev "$devdummy" In rtnetlink.sh line 1064: run_cmd ip neigh del proxy $dstip dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh del proxy "$dstip" dev "$devdummy" In rtnetlink.sh line 1067: run_cmd ip neigh add $dstip6 lladdr $dstmac dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh add "$dstip6" lladdr "$dstmac" dev "$devdummy" In rtnetlink.sh line 1068: run_cmd_grep "$dstmac" ip neigh get $dstip6 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "$dstmac" ip neigh get "$dstip6" dev "$devdummy" In rtnetlink.sh line 1069: run_cmd ip neigh del $dstip6 lladdr $dstmac dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh del "$dstip6" lladdr "$dstmac" dev "$devdummy" In rtnetlink.sh line 1072: run_cmd ip neigh add proxy $dstip6 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh add proxy "$dstip6" dev "$devdummy" In rtnetlink.sh line 1073: run_cmd_grep "$dstip6" ip neigh get proxy $dstip6 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd_grep "$dstip6" ip neigh get proxy "$dstip6" dev "$devdummy" In rtnetlink.sh line 1074: run_cmd ip neigh del proxy $dstip6 dev "$devdummy" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip neigh del proxy "$dstip6" dev "$devdummy" In rtnetlink.sh line 1076: if [ $ret -ne 0 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 1077: end_test "FAIL: neigh get" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1078: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1081: end_test "PASS: neigh get" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1086: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1087: sysfsnet=/sys/bus/netdevsim/devices/netdevsim ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1088: probed=false ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1090: if [ ! -w /sys/bus/netdevsim/new_device ] ; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1091: run_cmd modprobe -q netdevsim ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1092: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1093: end_test "SKIP: bridge_parent_id can't load netdevsim" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1094: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1096: probed=true ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1099: echo "10 1" > /sys/bus/netdevsim/new_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1100: while [ ! -d ${sysfsnet}10 ] ; do :; done ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: while [ ! -d "${sysfsnet}"10 ] ; do :; done In rtnetlink.sh line 1101: echo "20 1" > /sys/bus/netdevsim/new_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1102: while [ ! -d ${sysfsnet}20 ] ; do :; done ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Did you mean: while [ ! -d "${sysfsnet}"20 ] ; do :; done In rtnetlink.sh line 1103: udevadm settle ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1104: dev10=`ls ${sysfsnet}10/net/` ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev10=$(ls "${sysfsnet}"10/net/) In rtnetlink.sh line 1105: dev20=`ls ${sysfsnet}20/net/` ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev20=$(ls "${sysfsnet}"20/net/) In rtnetlink.sh line 1106: run_cmd ip link add name test-bond0 type bond mode 802.3ad ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1107: run_cmd ip link set dev $dev10 master test-bond0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip link set dev "$dev10" master test-bond0 In rtnetlink.sh line 1108: run_cmd ip link set dev $dev20 master test-bond0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip link set dev "$dev20" master test-bond0 In rtnetlink.sh line 1109: run_cmd ip link add name test-br0 type bridge ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1110: run_cmd ip link set dev test-bond0 master test-br0 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1113: ip link del dev test-br0 ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1114: ip link del dev test-bond0 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1115: echo 20 > /sys/bus/netdevsim/del_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1116: echo 10 > /sys/bus/netdevsim/del_device ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1117: $probed && rmmod netdevsim ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1119: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1120: end_test "FAIL: bridge_parent_id" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1121: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1123: end_test "PASS: bridge_parent_id" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1128: local addr=$1; shift ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1130: ip -N -j address show dev "$devdummy" | ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1137: ip -N -j address show dev "$devdummy" "$@" | ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1143: local what=$1; shift ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1144: local addr=$1; shift ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1145: local addr2=${addr%/*}2/${addr#*/} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1146: local addr3=${addr%/*}3/${addr#*/} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1147: local proto ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1148: local count ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1149: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1150: local err ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1152: ip address add dev "$devdummy" "$addr3" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1153: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1154: proto=$(address_get_proto "$addr3") ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1155: [[ "$proto" == null ]] ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1156: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1158: ip address add dev "$devdummy" "$addr2" proto 0x99 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1159: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1160: proto=$(address_get_proto "$addr2") ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1161: [[ "$proto" == 0x99 ]] ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1162: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1164: ip address add dev "$devdummy" "$addr" proto 0xab ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1165: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1166: proto=$(address_get_proto "$addr") ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1167: [[ "$proto" == 0xab ]] ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1168: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1170: ip address replace dev "$devdummy" "$addr" proto 0x11 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1171: proto=$(address_get_proto "$addr") ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1172: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1173: [[ "$proto" == 0x11 ]] ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1174: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1176: count=$(address_count) ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1177: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1178: (( count >= 3 )) # $addr, $addr2 and $addr3 plus any kernel addresses ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1179: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1181: count=$(address_count proto 0) ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1182: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1183: (( count == 1 )) # just $addr3 ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1184: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1186: count=$(address_count proto 0x11) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1187: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1188: (( count == 2 )) # $addr and $addr3 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1189: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1191: count=$(address_count proto 0xab) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1192: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1193: (( count == 1 )) # just $addr3 ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1194: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1196: ip address del dev "$devdummy" "$addr" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1197: ip address del dev "$devdummy" "$addr2" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1198: ip address del dev "$devdummy" "$addr3" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1200: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1201: end_test "FAIL: address proto $what" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1202: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1204: end_test "PASS: address proto $what" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1209: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1211: do_test_address_proto IPv4 192.0.2.1/28 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1212: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1214: do_test_address_proto IPv6 2001:db8:1::1/64 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1215: check_err $? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1217: return $ret ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 1222: local bond="bond123" ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1223: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1225: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1226: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1227: end_test "SKIP bonding tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1228: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1231: run_cmd ip -netns $testns link add dev $bond type bond mode balance-rr ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link add dev "$bond" type bond mode balance-rr In rtnetlink.sh line 1232: run_cmd ip -netns $testns link add dev $devdummy type dummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link add dev "$devdummy" type dummy In rtnetlink.sh line 1233: run_cmd ip -netns $testns link set dev $devdummy up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$devdummy" up In rtnetlink.sh line 1234: run_cmd ip -netns $testns link set dev $devdummy master $bond down ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -netns "$testns" link set dev "$devdummy" master "$bond" down In rtnetlink.sh line 1235: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1236: end_test "FAIL: initially up interface added to a bond and set down" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1237: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1238: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1241: end_test "PASS: enslave interface in a bond" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1242: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1253: local dev=$1 ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1254: local prefix="" ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1255: local addr_list=$(ip -j -n $testns addr show dev ${dev}) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local addr_list=$(ip -j -n "$testns" addr show dev "${dev}") In rtnetlink.sh line 1256: local temp_addrs=$(echo ${addr_list} | \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local temp_addrs=$(echo "${addr_list}" | \ In rtnetlink.sh line 1258: local mng_prefixes=$(echo ${addr_list} | \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local mng_prefixes=$(echo "${addr_list}" | \ In rtnetlink.sh line 1261: local undep_prefixes=$(echo ${addr_list} | \ ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local undep_prefixes=$(echo "${addr_list}" | \ In rtnetlink.sh line 1266: for address in ${temp_addrs}; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1267: prefix=$(echo ${address} | cut -d: -f1-4) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: prefix=$(echo "${address}" | cut -d: -f1-4) In rtnetlink.sh line 1268: if [[ ! " ${mng_prefixes} " =~ " $prefix " ]]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2076 (warning): Remove quotes from right-hand side of =~ to match as a regex rather than literally. In rtnetlink.sh line 1269: check_err 1 "FAIL: Temporary $address with no matching mngtmpaddr!"; ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1270: return 0 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1275: for prefix in ${mng_prefixes}; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1276: if [[ ! " ${undep_prefixes} " =~ " $prefix " ]]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2076 (warning): Remove quotes from right-hand side of =~ to match as a regex rather than literally. In rtnetlink.sh line 1277: check_err 1 "FAIL: No undeprecated temporary in $prefix!"; ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1278: return 0 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1282: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1287: local ret=0 ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1289: setup_ns testns ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1290: if [ $? -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1291: end_test "SKIP mngtmpaddr tests: cannot add net namespace $testns" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1292: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1296: run_cmd ip -n $testns link add ${devdummy} type dummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" link add "${devdummy}" type dummy In rtnetlink.sh line 1297: run_cmd ip -n $testns link set ${devdummy} up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" link set "${devdummy}" up In rtnetlink.sh line 1298: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.use_tempaddr=1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip netns exec "$testns" sysctl -w net.ipv6.conf."${devdummy}".use_tempaddr=1 In rtnetlink.sh line 1299: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_prefered_lft=10 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip netns exec "$testns" sysctl -w net.ipv6.conf."${devdummy}".temp_prefered_lft=10 In rtnetlink.sh line 1300: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_valid_lft=25 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip netns exec "$testns" sysctl -w net.ipv6.conf."${devdummy}".temp_valid_lft=25 In rtnetlink.sh line 1301: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.max_desync_factor=1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip netns exec "$testns" sysctl -w net.ipv6.conf."${devdummy}".max_desync_factor=1 In rtnetlink.sh line 1306: for i in $(seq 1 9); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1307: run_cmd ip -n $testns addr add 2001:db8:7e57:${i}::1/64 mngtmpaddr dev ${devdummy} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" addr add 2001:db8:7e57:"${i}"::1/64 mngtmpaddr dev "${devdummy}" In rtnetlink.sh line 1312: slowwait 30 validate_mngtmpaddr ${devdummy} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: slowwait 30 validate_mngtmpaddr "${devdummy}" In rtnetlink.sh line 1317: for i in $(seq 1 9); do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1318: (( $i % 4 == 0 )) && mng_flag="mngtmpaddr" || mng_flag="" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables. ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1319: if (( $i % 2 == 0 )); then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables. In rtnetlink.sh line 1320: run_cmd ip -n $testns addr del 2001:db8:7e57:${i}::1/64 $mng_flag dev ${devdummy} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" addr del 2001:db8:7e57:"${i}"::1/64 "$mng_flag" dev "${devdummy}" In rtnetlink.sh line 1322: run_cmd ip -n $testns addr change 2001:db8:7e57:${i}::1/64 dev ${devdummy} ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip -n "$testns" addr change 2001:db8:7e57:"${i}"::1/64 dev "${devdummy}" In rtnetlink.sh line 1325: validate_mngtmpaddr ${devdummy} ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: validate_mngtmpaddr "${devdummy}" In rtnetlink.sh line 1328: if [ $ret -ne 0 ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1329: end_test "FAIL: mngtmpaddr add/remove incorrect" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1331: end_test "PASS: mngtmpaddr add/remove correctly" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1334: ip netns del "$testns" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1335: return $ret ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 1340: local tmpfile ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1341: local monitor_pid ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1342: local match_result ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1344: tmpfile=$(mktemp) ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1346: ip monitor maddr > $tmpfile & ^--------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip monitor maddr > "$tmpfile" & In rtnetlink.sh line 1347: monitor_pid=$! ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1348: sleep 1 ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1349: if [ ! -e "/proc/$monitor_pid" ]; then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1350: end_test "SKIP: mcast addr notification: iproute2 too old" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1351: rm $tmpfile ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm "$tmpfile" In rtnetlink.sh line 1352: return $ksft_skip ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1355: run_cmd ip link add name test-dummy1 type dummy ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1356: run_cmd ip link set test-dummy1 up ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1357: run_cmd ip link del dev test-dummy1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1358: sleep 1 ^-----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1360: match_result=$(grep -cE "test-dummy1.*(224.0.0.1|ff02::1)" $tmpfile) ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: match_result=$(grep -cE "test-dummy1.*(224.0.0.1|ff02::1)" "$tmpfile") In rtnetlink.sh line 1362: kill $monitor_pid ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: kill "$monitor_pid" In rtnetlink.sh line 1363: rm $tmpfile ^---------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm "$tmpfile" In rtnetlink.sh line 1369: if [ $match_result -ne 4 ];then ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$match_result" -ne 4 ];then In rtnetlink.sh line 1370: end_test "FAIL: mcast addr notification" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1371: return 1 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1373: end_test "PASS: mcast addr notification" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In rtnetlink.sh line 1402: (options: $(echo $ALL_TESTS)) ^----------------^ SC2116 (style): Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: (options: $(echo "$ALL_TESTS")) In rtnetlink.sh line 1417: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. For more information: https://www.shellcheck.net/wiki/SC2034 -- spi appears unused. Verify use (o... https://www.shellcheck.net/wiki/SC2076 -- Remove quotes from right-hand sid... https://www.shellcheck.net/wiki/SC2154 -- testns is referenced but not assi...