Commit 8af2ba9a authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller

selftests: fib rule: Make 'getmatch' and 'match' local variables

Let's restrict the scope of these variables to avoid possible
interferences.
Signed-off-by: default avatarGuillaume Nault <gnault@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1d02c039
...@@ -115,6 +115,9 @@ fib_rule6_test_match_n_redirect() ...@@ -115,6 +115,9 @@ fib_rule6_test_match_n_redirect()
fib_rule6_test() fib_rule6_test()
{ {
local getmatch
local match
# setup the fib rule redirect route # setup the fib rule redirect route
$IP -6 route add table $RTABLE default via $GW_IP6 dev $DEV onlink $IP -6 route add table $RTABLE default via $GW_IP6 dev $DEV onlink
...@@ -184,6 +187,9 @@ fib_rule4_test_match_n_redirect() ...@@ -184,6 +187,9 @@ fib_rule4_test_match_n_redirect()
fib_rule4_test() fib_rule4_test()
{ {
local getmatch
local match
# setup the fib rule redirect route # setup the fib rule redirect route
$IP route add table $RTABLE default via $GW_IP4 dev $DEV onlink $IP route add table $RTABLE default via $GW_IP4 dev $DEV onlink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment