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.MRmwXzcvxh and /tmp/tmp.xKizWEVXS6 Tree base: dd831ac8221e ("net/sched: sch_qfq: Fix null-deref in agg_dequeue") Now at: cbeeca87ed28 ("selftests: rtnetlink: try double sleep to give WQ a chance") ====== Checking before the patch ====== Checking tools/testing/selftests/net/rtnetlink.sh - 92b39af047694c9000fd5d4b91e04b1c583b35a20f0c57eecd990e1ab7a38e29 In rtnetlink.sh line 54: if [ $1 -eq 0 ]; then ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$1" -eq 0 ]; then 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 84: check_fail $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_fail "$rc" In rtnetlink.sh line 85: return $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 103: check_err $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_err "$rc" In rtnetlink.sh line 104: return $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 111: check_fail $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_fail "$rc" In rtnetlink.sh line 112: return $rc ^-^ 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 150: run_cmd ip -$f netconf show dev "$dev" ^-- 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ] ;then In rtnetlink.sh line 155: test $r -eq 0 && ret=0 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: test "$r" -eq 0 && ret=0 In rtnetlink.sh line 183: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 198: run_cmd ip tunnel add $gredev mode gre remote $rem local $loc ttl 1 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 208: run_cmd ip link del $gredev ^-----^ 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 236: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 253: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 262: local hash_policy=$(sysctl -n net.ipv4.fib_multipath_hash_policy) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In rtnetlink.sh line 286: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 298: run_cmd ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1)) ^-- 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 303: if [ $? -eq 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. In rtnetlink.sh line 314: promote=$(sysctl -n net.ipv4.conf.$devdummy.promote_secondaries) ^-------^ 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 ^-------^ 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 320: ip -f inet addr add $IP/16 brd + dev "$devdummy" ^-^ 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 ^-^ 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 326: [ $promote -eq 0 ] && sysctl -q net.ipv4.conf.$devdummy.promote_secondaries=0 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ 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 353: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 368: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 375: read namehave < "$syspathname" ^--^ SC2162 (info): read without -r will mangle backslashes. In rtnetlink.sh line 400: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 413: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 415: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 418: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 423: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 432: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 445: run_cmd ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \ ^-----^ SC2154 (warning): testns is referenced but not assigned. In rtnetlink.sh line 447: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 478: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 490: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 492: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 497: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 502: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 509: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 522: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 524: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 533: return $ret ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 541: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 543: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 546: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 556: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 588: spi=7 ^-^ SC2034 (warning): spi appears unused. Verify use (or export if used externally). In rtnetlink.sh line 590: ip addr add $srcip dev $devdummy ^----^ 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 596: tmpfile=`mktemp /var/run/ipsectestXXX` ^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: tmpfile=$(mktemp /var/run/ipsectestXXX) In rtnetlink.sh line 597: mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mpid=$((ip x m > "$tmpfile" & echo $!) 2>/dev/null) In rtnetlink.sh line 601: run_cmd ip x s add $ipsecid \ ^------^ 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` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----^ 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 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 610: lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------^ 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 ^----^ 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 ^------^ 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` ^-------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: lines=$(ip x s list | wc -l) In rtnetlink.sh line 615: run_cmd test $lines -eq 0 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 0 In rtnetlink.sh line 618: run_cmd ip x p add $ipsecsel \ ^-------^ 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` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----^ 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 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 628: lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-------^ 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 ^----^ 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 ^-------^ 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` ^-------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: lines=$(ip x p list | wc -l) In rtnetlink.sh line 634: run_cmd test $lines -eq 0 ^----^ 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 ^---^ 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` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------^ 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 ^----^ 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 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm -rf "$tmpfile" In rtnetlink.sh line 645: ip addr del $srcip/32 dev $devdummy ^----^ 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 684: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 686: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 692: while [ ! -d $sysfsnet ] ; do :; done ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: while [ ! -d "$sysfsnet" ] ; do :; done In rtnetlink.sh line 694: dev=`ls $sysfsnet` ^------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-------^ 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 ^----^ 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 ^--^ 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 ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ ! -d "$sysfsd" ] ; then In rtnetlink.sh line 702: if [ ! -f $sysfsf ] ; then ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ ! -f "$sysfsf" ] ; then In rtnetlink.sh line 711: run_cmd ip x p add dir out 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. 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 \ ^----^ 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 \ ^----^ 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 \ ^----^ 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 733: lines=`ip x s list | grep -c "crypto offload parameters: dev $dev dir"` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. 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 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$lines" -ne 2 ] ; then In rtnetlink.sh line 740: ip neigh add $dstip dev $dev lladdr 00:11:22:33:44:55 ^----^ 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 ^--^ 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 ^-----^ 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 ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 762: lines=`grep -c "SA count=0" $sysfsf` ^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----^ 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 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$lines" -ne 1 ] ; then In rtnetlink.sh line 772: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 785: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 787: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 791: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 794: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 803: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 810: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 826: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 828: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 832: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 835: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 844: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 851: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 866: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 868: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 871: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 873: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 883: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 893: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 900: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 915: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 917: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 920: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 922: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 932: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 942: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 951: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 971: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 973: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 977: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 979: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 983: run_cmd $IP link add "$vxlandev" type vxlan id 10 local $localip \ ^-^ 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 ^-^ 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" ^-^ 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 ^-----^ 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 ^-----^ 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" ^-----^ 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" ^-----^ 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 ^-----^ 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 ^-----^ 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1011: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1013: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1017: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1019: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1023: run_cmd $IP link add $dummydev type dummy ^-^ 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 ^-^ 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 ^-^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1050: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1052: return $ksft_skip ^--------^ 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" ^----^ 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" ^----^ 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" ^----^ 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" ^----^ 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" ^----^ 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" ^----^ 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" ^-----^ 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" ^-----^ 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" ^-----^ 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" ^-----^ 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" ^-----^ 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" ^-----^ 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 1091: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1093: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1099: while [ ! -d ${sysfsnet}10 ] ; do :; done ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: while [ ! -d "${sysfsnet}"10 ] ; do :; done In rtnetlink.sh line 1101: while [ ! -d ${sysfsnet}20 ] ; do :; done ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: while [ ! -d "${sysfsnet}"20 ] ; do :; done In rtnetlink.sh line 1103: dev10=`ls ${sysfsnet}10/net/` ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^---------^ 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/` ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^---------^ 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 set dev $dev10 master test-bond0 ^----^ 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 ^----^ 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 1118: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1199: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1216: return $ret ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 1225: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1227: return $ksft_skip ^--------^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1254: local addr_list=$(ip -j -n $testns addr show dev ${dev}) ^-------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-----^ 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} | \ ^--------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----------^ 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} | \ ^----------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----------^ 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} | \ ^------------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local undep_prefixes=$(echo "${addr_list}" | \ In rtnetlink.sh line 1266: prefix=$(echo ${address} | cut -d: -f1-4) ^--------^ 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 ^---------^ SC2076 (warning): Remove quotes from right-hand side of =~ to match as a regex rather than literally. In rtnetlink.sh line 1275: if [[ ! " ${undep_prefixes} " =~ " $prefix " ]]; then ^---------^ SC2076 (warning): Remove quotes from right-hand side of =~ to match as a regex rather than literally. In rtnetlink.sh line 1289: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1291: return $ksft_skip ^--------^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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: run_cmd ip -n $testns addr add 2001:db8:7e57:${i}::1/64 mngtmpaddr dev ${devdummy} ^-----^ 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} ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: slowwait 30 validate_mngtmpaddr "${devdummy}" In rtnetlink.sh line 1317: (( $i % 4 == 0 )) && mng_flag="mngtmpaddr" || mng_flag="" ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables. In rtnetlink.sh line 1318: if (( $i % 2 == 0 )); then ^-- 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} ^-----^ 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} ^-----^ 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} ^---------^ 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1334: return $ret ^--^ 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 54: if [ $1 -eq 0 ]; then ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$1" -eq 0 ]; then 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 84: check_fail $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_fail "$rc" In rtnetlink.sh line 85: return $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 103: check_err $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_err "$rc" In rtnetlink.sh line 104: return $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$rc" In rtnetlink.sh line 111: check_fail $rc ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: check_fail "$rc" In rtnetlink.sh line 112: return $rc ^-^ 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 150: run_cmd ip -$f netconf show dev "$dev" ^-- 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ] ;then In rtnetlink.sh line 155: test $r -eq 0 && ret=0 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: test "$r" -eq 0 && ret=0 In rtnetlink.sh line 183: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 198: run_cmd ip tunnel add $gredev mode gre remote $rem local $loc ttl 1 ^-----^ 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 ^-----^ 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 ^-----^ 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 ^-----^ 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 208: run_cmd ip link del $gredev ^-----^ 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 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 236: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 253: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 262: local hash_policy=$(sysctl -n net.ipv4.fib_multipath_hash_policy) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In rtnetlink.sh line 286: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 298: run_cmd ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1)) ^-- 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 308: if [ $? -eq 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. In rtnetlink.sh line 319: promote=$(sysctl -n net.ipv4.conf.$devdummy.promote_secondaries) ^-------^ 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 321: sysctl -q net.ipv4.conf.$devdummy.promote_secondaries=1 ^-------^ 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 325: ip -f inet addr add $IP/16 brd + dev "$devdummy" ^-^ 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 326: ifconfig "$devdummy" $IP netmask 255.255.0.0 ^-^ 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 331: [ $promote -eq 0 ] && sysctl -q net.ipv4.conf.$devdummy.promote_secondaries=0 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ 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 358: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 373: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 380: read namehave < "$syspathname" ^--^ SC2162 (info): read without -r will mangle backslashes. In rtnetlink.sh line 405: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 418: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 420: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 423: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 428: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 437: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 450: run_cmd ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \ ^-----^ SC2154 (warning): testns is referenced but not assigned. In rtnetlink.sh line 452: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 483: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 495: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 497: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 502: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 507: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 514: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 527: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 529: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 538: return $ret ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 546: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 548: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 551: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 561: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 593: spi=7 ^-^ SC2034 (warning): spi appears unused. Verify use (or export if used externally). In rtnetlink.sh line 595: ip addr add $srcip dev $devdummy ^----^ 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 601: tmpfile=`mktemp /var/run/ipsectestXXX` ^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: tmpfile=$(mktemp /var/run/ipsectestXXX) In rtnetlink.sh line 602: mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mpid=$((ip x m > "$tmpfile" & echo $!) 2>/dev/null) In rtnetlink.sh line 606: run_cmd ip x s add $ipsecid \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s add "$ipsecid" \ In rtnetlink.sh line 608: $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 611: lines=`ip x s list | grep $srcip | grep $dstip | wc -l` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----^ 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 612: run_cmd test $lines -eq 2 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 615: lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------^ 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 616: run_cmd test $lines -eq 2 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 617: run_cmd ip x s delete $ipsecid ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x s delete "$ipsecid" In rtnetlink.sh line 619: lines=`ip x s list | wc -l` ^-------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: lines=$(ip x s list | wc -l) In rtnetlink.sh line 620: run_cmd test $lines -eq 0 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 0 In rtnetlink.sh line 623: run_cmd ip x p add $ipsecsel \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p add "$ipsecsel" \ In rtnetlink.sh line 624: 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 628: lines=`ip x p list | grep $srcip | grep $dstip | wc -l` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----^ 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 629: run_cmd test $lines -eq 2 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 633: lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-------^ 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 634: run_cmd test $lines -eq 2 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 2 In rtnetlink.sh line 636: run_cmd ip x p delete $ipsecsel ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd ip x p delete "$ipsecsel" In rtnetlink.sh line 638: lines=`ip x p list | wc -l` ^-------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: lines=$(ip x p list | wc -l) In rtnetlink.sh line 639: run_cmd test $lines -eq 0 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 0 In rtnetlink.sh line 642: kill $mpid ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: kill "$mpid" In rtnetlink.sh line 643: lines=`wc -l $tmpfile | cut "-d " -f1` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(wc -l "$tmpfile" | cut "-d " -f1) In rtnetlink.sh line 644: run_cmd test $lines -eq 20 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd test "$lines" -eq 20 In rtnetlink.sh line 645: rm -rf $tmpfile ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm -rf "$tmpfile" In rtnetlink.sh line 650: ip addr del $srcip/32 dev $devdummy ^----^ 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 652: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 689: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 691: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 697: while [ ! -d $sysfsnet ] ; do :; done ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: while [ ! -d "$sysfsnet" ] ; do :; done In rtnetlink.sh line 699: dev=`ls $sysfsnet` ^------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev=$(ls "$sysfsnet") In rtnetlink.sh line 701: ip addr add $srcip dev $dev ^----^ 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 702: ip link set $dev up ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$dev" up In rtnetlink.sh line 703: if [ ! -d $sysfsd ] ; then ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ ! -d "$sysfsd" ] ; then In rtnetlink.sh line 707: if [ ! -f $sysfsf ] ; then ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ ! -f "$sysfsf" ] ; then In rtnetlink.sh line 716: run_cmd ip x p add dir out 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. Did you mean: run_cmd ip x p add dir out src "$srcip"/24 dst "$dstip"/24 \ In rtnetlink.sh line 717: 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 720: run_cmd ip x p add dir in 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. Did you mean: run_cmd ip x p add dir in src "$dstip"/24 dst "$srcip"/24 \ In rtnetlink.sh line 721: 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 724: run_cmd ip x s add 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: run_cmd ip x s add proto esp src "$srcip" dst "$dstip" spi 9 \ In rtnetlink.sh line 725: 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 726: 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 728: run_cmd ip x s add 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: run_cmd ip x s add proto esp src "$dstip" dst "$srcip" spi 9 \ In rtnetlink.sh line 729: 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 730: 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 732: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 738: lines=`ip x s list | grep -c "crypto offload parameters: dev $dev dir"` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: lines=$(ip x s list | grep -c "crypto offload parameters: dev $dev dir") In rtnetlink.sh line 739: if [ $lines -ne 2 ] ; then ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$lines" -ne 2 ] ; then In rtnetlink.sh line 745: ip neigh add $dstip dev $dev lladdr 00:11:22:33:44:55 ^----^ 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 747: ping -I $dev -c 3 -W 1 -i 0 $dstip >/dev/null ^--^ 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 750: run_cmd diff $sysfsf - << EOF ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: run_cmd diff "$sysfsf" - << EOF In rtnetlink.sh line 759: if [ $? -ne 0 ] ; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 767: lines=`grep -c "SA count=0" $sysfsf` ^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lines=$(grep -c "SA count=0" "$sysfsf") In rtnetlink.sh line 768: if [ $lines -ne 1 ] ; then ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$lines" -ne 1 ] ; then In rtnetlink.sh line 777: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 790: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 792: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 796: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 799: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 808: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 815: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 831: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 833: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 837: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 840: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 849: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 856: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 871: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 873: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 876: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 878: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 888: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 898: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 905: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 920: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 922: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 925: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 927: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 937: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 947: run_cmd ip -netns "$testns" link set dev $DEV_NS up ^-----^ 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 956: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 976: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 978: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 982: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 984: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 988: run_cmd $IP link add "$vxlandev" type vxlan id 10 local $localip \ ^-^ 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 990: run_cmd $IP link add name "$brdev" type bridge ^-^ 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 991: run_cmd $IP link set dev "$vxlandev" master "$brdev" ^-^ 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 992: run_cmd $BRIDGE fdb add $test_mac dev "$vxlandev" master ^-----^ 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 993: run_cmd $BRIDGE fdb add $test_mac dev "$vxlandev" dst $dstip self ^-----^ 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 994: run_cmd_grep "dev $vxlandev master $brdev" $BRIDGE fdb get $test_mac brport "$vxlandev" ^-----^ 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 995: run_cmd_grep "dev $vxlandev master $brdev" $BRIDGE fdb get $test_mac br "$brdev" ^-----^ 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 996: run_cmd_grep "dev $vxlandev dst $dstip" $BRIDGE fdb get $test_mac dev "$vxlandev" self ^-----^ 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 998: ip netns del $testns &>/dev/null ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip netns del "$testns" &>/dev/null In rtnetlink.sh line 1000: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1016: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1018: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1022: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1024: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1028: run_cmd $IP link add $dummydev type dummy ^-^ 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 1029: run_cmd $IP link add name $brdev type bridge vlan_filtering 1 ^-^ 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 1030: run_cmd $IP link set dev $dummydev master $brdev ^-^ 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 1031: run_cmd $BRIDGE fdb add $test_mac dev $dummydev master static vlan 1 ^-----^ 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 1032: run_cmd $BRIDGE vlan del vid 1 dev $dummydev ^-----^ 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 1033: run_cmd $BRIDGE fdb get $test_mac br $brdev vlan 1 ^-----^ 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 1034: run_cmd $BRIDGE fdb del $test_mac dev $dummydev master vlan 1 ^-----^ 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 1035: run_cmd_fail $BRIDGE fdb get $test_mac br $brdev vlan 1 ^-----^ 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 1037: ip netns del $testns &>/dev/null ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip netns del "$testns" &>/dev/null In rtnetlink.sh line 1039: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1055: if [ $? -ne 0 ];then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1057: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1061: run_cmd ip neigh add $dstip lladdr $dstmac dev "$devdummy" ^----^ 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 1062: run_cmd_grep "$dstmac" ip neigh get $dstip dev "$devdummy" ^----^ 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 1063: run_cmd ip neigh del $dstip lladdr $dstmac dev "$devdummy" ^----^ 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 1066: run_cmd ip neigh add proxy $dstip dev "$devdummy" ^----^ 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 1067: run_cmd_grep "$dstip" ip neigh get proxy $dstip dev "$devdummy" ^----^ 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 1068: run_cmd ip neigh del proxy $dstip dev "$devdummy" ^----^ 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 1071: run_cmd ip neigh add $dstip6 lladdr $dstmac dev "$devdummy" ^-----^ 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 1072: run_cmd_grep "$dstmac" ip neigh get $dstip6 dev "$devdummy" ^-----^ 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 1073: run_cmd ip neigh del $dstip6 lladdr $dstmac dev "$devdummy" ^-----^ 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 1076: run_cmd ip neigh add proxy $dstip6 dev "$devdummy" ^-----^ 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 1077: run_cmd_grep "$dstip6" ip neigh get proxy $dstip6 dev "$devdummy" ^-----^ 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 1078: run_cmd ip neigh del proxy $dstip6 dev "$devdummy" ^-----^ 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 1080: if [ $ret -ne 0 ];then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ];then In rtnetlink.sh line 1096: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1098: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1104: while [ ! -d ${sysfsnet}10 ] ; do :; done ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: while [ ! -d "${sysfsnet}"10 ] ; do :; done In rtnetlink.sh line 1106: while [ ! -d ${sysfsnet}20 ] ; do :; done ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: while [ ! -d "${sysfsnet}"20 ] ; do :; done In rtnetlink.sh line 1108: dev10=`ls ${sysfsnet}10/net/` ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev10=$(ls "${sysfsnet}"10/net/) In rtnetlink.sh line 1109: dev20=`ls ${sysfsnet}20/net/` ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev20=$(ls "${sysfsnet}"20/net/) In rtnetlink.sh line 1111: run_cmd ip link set dev $dev10 master test-bond0 ^----^ 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 1112: run_cmd ip link set dev $dev20 master test-bond0 ^----^ 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 1123: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1204: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1221: return $ret ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 1230: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1232: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1235: run_cmd ip -netns $testns link add dev $bond type bond mode balance-rr ^-----^ 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 1236: run_cmd ip -netns $testns link add dev $devdummy type dummy ^-----^ 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 1237: run_cmd ip -netns $testns link set dev $devdummy up ^-----^ 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 1238: run_cmd ip -netns $testns link set dev $devdummy master $bond down ^-----^ 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 1239: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1259: local addr_list=$(ip -j -n $testns addr show dev ${dev}) ^-------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-----^ 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 1260: local temp_addrs=$(echo ${addr_list} | \ ^--------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local temp_addrs=$(echo "${addr_list}" | \ In rtnetlink.sh line 1262: local mng_prefixes=$(echo ${addr_list} | \ ^----------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local mng_prefixes=$(echo "${addr_list}" | \ In rtnetlink.sh line 1265: local undep_prefixes=$(echo ${addr_list} | \ ^------------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local undep_prefixes=$(echo "${addr_list}" | \ In rtnetlink.sh line 1271: prefix=$(echo ${address} | cut -d: -f1-4) ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: prefix=$(echo "${address}" | cut -d: -f1-4) In rtnetlink.sh line 1272: if [[ ! " ${mng_prefixes} " =~ " $prefix " ]]; then ^---------^ SC2076 (warning): Remove quotes from right-hand side of =~ to match as a regex rather than literally. In rtnetlink.sh line 1280: if [[ ! " ${undep_prefixes} " =~ " $prefix " ]]; then ^---------^ SC2076 (warning): Remove quotes from right-hand side of =~ to match as a regex rather than literally. In rtnetlink.sh line 1294: if [ $? -ne 0 ]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In rtnetlink.sh line 1296: return $ksft_skip ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ksft_skip" In rtnetlink.sh line 1300: run_cmd ip -n $testns link add ${devdummy} type dummy ^-----^ 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 1301: run_cmd ip -n $testns link set ${devdummy} up ^-----^ 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 1302: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.use_tempaddr=1 ^-----^ 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 1303: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_prefered_lft=10 ^-----^ 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 1304: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_valid_lft=25 ^-----^ 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 1305: run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.max_desync_factor=1 ^-----^ 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 1311: run_cmd ip -n $testns addr add 2001:db8:7e57:${i}::1/64 mngtmpaddr dev ${devdummy} ^-----^ 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 1316: slowwait 30 validate_mngtmpaddr ${devdummy} ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: slowwait 30 validate_mngtmpaddr "${devdummy}" In rtnetlink.sh line 1322: (( $i % 4 == 0 )) && mng_flag="mngtmpaddr" || mng_flag="" ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables. In rtnetlink.sh line 1323: if (( $i % 2 == 0 )); then ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables. In rtnetlink.sh line 1324: run_cmd ip -n $testns addr del 2001:db8:7e57:${i}::1/64 $mng_flag dev ${devdummy} ^-----^ 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 1326: run_cmd ip -n $testns addr change 2001:db8:7e57:${i}::1/64 dev ${devdummy} ^-----^ 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 1329: validate_mngtmpaddr ${devdummy} ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: validate_mngtmpaddr "${devdummy}" In rtnetlink.sh line 1332: if [ $ret -ne 0 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$ret" -ne 0 ]; then In rtnetlink.sh line 1339: return $ret ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "$ret" In rtnetlink.sh line 1368: (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 1383: 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...