We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e4272d commit 781fe63Copy full SHA for 781fe63
tools/testing/selftests/net/forwarding/lib.sh
@@ -45,6 +45,21 @@ if [[ ! -v NUM_NETIFS ]]; then
45
exit 0
46
fi
47
48
+##############################################################################
49
+# Command line options handling
50
+
51
+count=0
52
53
+while [[ $# -gt 0 ]]; do
54
+ if [[ "$count" -eq "0" ]]; then
55
+ unset NETIFS
56
+ declare -A NETIFS
57
+ fi
58
+ count=$((count + 1))
59
+ NETIFS[p$count]="$1"
60
+ shift
61
+done
62
63
##############################################################################
64
# Network interfaces configuration
65
0 commit comments