aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2019-05-21 14:40:47 +0800
committerPaul Gortmaker <paul.gortmaker@windriver.com>2019-09-16 12:21:48 -0400
commit67eaa743e2c86384f173044a99f8ba4d040a094f (patch)
treee0d1365482f983e3891b081da3254d1e0243a8d9
parent86968937f41ff1ca93b5bb856c007185a4eba697 (diff)
downloadlinux-yocto-67eaa743e2c86384f173044a99f8ba4d040a094f.tar.gz
linux-yocto-67eaa743e2c86384f173044a99f8ba4d040a094f.tar.bz2
linux-yocto-67eaa743e2c86384f173044a99f8ba4d040a094f.zip
selftests: fib_rule_tests: use pre-defined DEV_ADDR
commit 34632975cafdd07ce80e85c2eda4e9c16b5f2faa upstream. DEV_ADDR is defined but not used. Use it in address setting. Do the same with IPv6 for consistency. Reported-by: David Ahern <dsahern@gmail.com> Fixes: fc82d93e57e3 ("selftests: fib_rule_tests: fix local IPv4 address typo") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rwxr-xr-xtools/testing/selftests/net/fib_rule_tests.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/fib_rule_tests.sh b/tools/testing/selftests/net/fib_rule_tests.sh
index dbd90ca73e44..f479d9ba8fd6 100755
--- a/tools/testing/selftests/net/fib_rule_tests.sh
+++ b/tools/testing/selftests/net/fib_rule_tests.sh
@@ -15,6 +15,7 @@ GW_IP6=2001:db8:1::2
SRC_IP6=2001:db8:1::3
DEV_ADDR=192.51.100.1
+DEV_ADDR6=2001:db8:1::1
DEV=dummy0
log_test()
@@ -55,8 +56,8 @@ setup()
$IP link add dummy0 type dummy
$IP link set dev dummy0 up
- $IP address add 192.51.100.1/24 dev dummy0
- $IP -6 address add 2001:db8:1::1/64 dev dummy0
+ $IP address add $DEV_ADDR/24 dev dummy0
+ $IP -6 address add $DEV_ADDR6/64 dev dummy0
set +e
}