linux/tools/testing/selftests/net
David Ahern 4ed591c8ab net/ipv6: Allow onlink routes to have a device mismatch if it is the default route
The intent of ip6_route_check_nh_onlink is to make sure the gateway
given for an onlink route is not actually on a connected route for
a different interface (e.g., 2001:db8:1::/64 is on dev eth1 and then
an onlink route has a via 2001:db8:1::1 dev eth2). If the gateway
lookup hits the default route then it most likely will be a different
interface than the onlink route which is ok.

Update ip6_route_check_nh_onlink to disregard the device mismatch
if the gateway lookup hits the default route. Turns out the existing
onlink tests are passing because there is no default route or it is
an unreachable default, so update the onlink tests to have a default
route other than unreachable.

Fixes: fc1e64e109 ("net/ipv6: Add support for onlink flag")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-24 14:36:38 -07:00
..
forwarding selftests: forwarding: Have lldpad_app_wait_set() wait for unknown, too 2018-10-10 22:22:07 -07:00
.gitignore selftests/net: add ip_defrag selftest 2018-08-29 19:49:36 -07:00
Makefile Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-09-18 09:33:27 -07:00
config selftests: net: add config fragments 2018-06-21 09:47:25 +09:00
fib-onlink-tests.sh net/ipv6: Allow onlink routes to have a device mismatch if it is the default route 2018-10-24 14:36:38 -07:00
fib_rule_tests.sh selftests: net: initial fib rule tests 2018-05-23 15:14:12 -04:00
fib_tests.sh fib_tests: Add tests for invalid metric on route 2018-10-05 11:58:50 -07:00
in_netns.sh selftests/net: fix in_netns.sh script 2018-03-07 12:26:05 -05:00
ip6_gre_headroom.sh selftests: net: Test headroom handling of ip6_gre devices 2018-06-26 23:03:01 +09:00
ip_defrag.c selftests: net: Clean up an unused variable 2018-10-05 14:53:44 -07:00
ip_defrag.sh selftests: use posix-style redirection in ip_defrag.sh 2018-10-11 10:22:07 -07:00
msg_zerocopy.c selftests/net: reap zerocopy completions passed up as ancillary data. 2018-02-27 14:19:11 -05:00
msg_zerocopy.sh selftests/net: enable msg_zerocopy test 2018-06-04 09:49:39 -04:00
netdevice.sh selftests: net: return Kselftest Skip code for skipped tests 2018-05-30 15:29:06 -06:00
pmtu.sh selftests: pmtu: Add optional traffic captures for single tests 2018-10-15 22:37:28 -07:00
psock_fanout.c selftests/net: ignore background traffic in psock_fanout 2018-02-23 12:47:05 -05:00
psock_lib.h
psock_snd.c selftests/net: add packet socket packet_snd test 2018-06-04 09:50:01 -04:00
psock_snd.sh selftests/net: add packet socket packet_snd test 2018-06-04 09:50:01 -04:00
psock_tpacket.c selftests: net: return Kselftest Skip code for skipped tests 2018-05-30 15:29:06 -06:00
reuseaddr_conflict.c
reuseport_bpf.c bpf: do not blindly change rlimit in reuseport net selftest 2018-10-08 10:30:55 +02:00
reuseport_bpf_cpu.c
reuseport_bpf_numa.c selftests: net: reuseport_bpf_numa: don't fail if no numa support 2018-05-23 12:21:02 +02:00
reuseport_dualstack.c
rtnetlink.sh selftests: rtnetlink.sh explicitly requires bash. 2018-10-11 10:19:46 -07:00
run_afpackettests selftests/net: ignore background traffic in psock_fanout 2018-02-23 12:47:05 -05:00
run_netsocktests
socket.c
tcp_inq.c selftest: add test for TCP_INQ 2018-05-01 18:56:29 -04:00
tcp_mmap.c selftest/net: fix protocol family to work for IPv4. 2018-08-02 10:30:12 -07:00
test_bpf.sh
tls.c selftests/tls: Fix recv(MSG_PEEK) & splice() test cases 2018-10-01 23:18:15 -07:00
udpgso.c selftests/net: udpgso: test small gso_size boundary conditions 2018-06-04 09:49:39 -04:00
udpgso.sh selftests: udp gso with corking 2018-04-26 15:09:52 -04:00
udpgso_bench.sh selftests: udpgso_bench.sh explicitly requires bash 2018-10-11 10:19:46 -07:00
udpgso_bench_rx.c selftests: udp gso benchmark 2018-04-26 15:09:52 -04:00
udpgso_bench_tx.c selftests: udp gso benchmark 2018-04-26 15:09:52 -04:00