selftests: rtnetlink: use a local IP address for IPsec tests
authorShannon Nelson <shannon.nelson@oracle.com>
Wed, 20 Jun 2018 05:42:43 +0000 (22:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jun 2018 04:47:55 +0000 (13:47 +0900)
commit7000d53b865ab46e0c557e2bf7ccf05d33d0624c
tree581ebeb02c34b67a93c634888701afe9824438a3
parent1599b218d511afad570be6048108d0746f78bfe9
selftests: rtnetlink: use a local IP address for IPsec tests

Find an IP address on this machine to use as a source IP, and
make up a destination IP address based on the source IP.  No
actual messages will be sent, just a couple of IPsec rules are
created and deleted.

Fixes: 5e596ee171ba ("selftests: add xfrm state-policy-monitor to rtnetlink.sh")
Reported-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/rtnetlink.sh