aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/fib_rule_tests.sh
diff options
context:
space:
mode:
authorGuillaume Nault <gnault@redhat.com>2022-01-31 16:42:01 +0100
committerDavid S. Miller <davem@davemloft.net>2022-02-01 14:14:47 +0000
commit8af2ba9a78115cb1189504f9690483969a35c07c (patch)
tree2bb8c9c8b2052881628d1446632e395f8e184c72 /tools/testing/selftests/net/fib_rule_tests.sh
parentMerge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next (diff)
downloadlinux-dev-8af2ba9a78115cb1189504f9690483969a35c07c.tar.xz
linux-dev-8af2ba9a78115cb1189504f9690483969a35c07c.zip
selftests: fib rule: Make 'getmatch' and 'match' local variables
Let's restrict the scope of these variables to avoid possible interferences. Signed-off-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/fib_rule_tests.sh')
-rwxr-xr-xtools/testing/selftests/net/fib_rule_tests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/fib_rule_tests.sh b/tools/testing/selftests/net/fib_rule_tests.sh
index 43ea8407a82e..f04f337dd7c6 100755
--- a/tools/testing/selftests/net/fib_rule_tests.sh
+++ b/tools/testing/selftests/net/fib_rule_tests.sh
@@ -115,6 +115,9 @@ fib_rule6_test_match_n_redirect()
fib_rule6_test()
{
+ local getmatch
+ local match
+
# setup the fib rule redirect route
$IP -6 route add table $RTABLE default via $GW_IP6 dev $DEV onlink
@@ -184,6 +187,9 @@ fib_rule4_test_match_n_redirect()
fib_rule4_test()
{
+ local getmatch
+ local match
+
# setup the fib rule redirect route
$IP route add table $RTABLE default via $GW_IP4 dev $DEV onlink