selftests: add a test case for rp_filter
authorCong Wang <xiyou.wangcong@gmail.com>
Wed, 17 Jul 2019 21:41:59 +0000 (14:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jul 2019 22:23:39 +0000 (15:23 -0700)
commitadb701d6cfa432f5dbdf28839b5e64291a7ed30b
tree7896881e9e843ea31c31c9331af79de74d9b1ce7
parent66f8209547cc11d8e139d45cb7c937c1bbcce182
selftests: add a test case for rp_filter

Add a test case to simulate the loopback packet case fixed
in the previous patch.

This test gets passed after the fix:

IPv4 rp_filter tests
    TEST: rp_filter passes local packets                                [ OK ]
    TEST: rp_filter passes loopback packets                             [ OK ]

Cc: David Ahern <dsahern@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_tests.sh