opnsense-src/tests/sys/netinet
Zhenlei Huang d8d8b9c9ca tests: carp: Update test case unicast_v4 to catch PR 284872
In the current test case unicast_v4, host one acts as a router, but it
uses if_bridge(4) to verify the reachability to CARP master.
Unfortunately, if_bridge(4) brings the two CARP hosts into the same
broadcast domain, thus with an unusual (undocumented) setup, one host
is in unicast mode but another one in multicast, or two hosts are both
in multicast mode, the test case can falsely report success.

Fix that by propagating route via routed(8).

PR 284872 shows that CARP(4) happens to send packets with multicast
destination when the unicast peer address is in the range x.x.x.224 ~
x.x.x.239. Update the peer address in test case to catch that bug.

PR:		284872
Reviewed by:	kp
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D49076

(cherry picked from commit 93fbdef51a13b8facac3633f55804a59ca27f635)
2025-02-25 12:01:22 +08:00
..
libalias Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
arp.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
carp.py netinet tests: test carp source MAC address 2023-04-07 17:56:45 +02:00
carp.sh tests: carp: Update test case unicast_v4 to catch PR 284872 2025-02-25 12:01:22 +08:00
divert.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fibs.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fibs_multibind_test.c fibs_multibind_test: Explicitly cast the checksum value 2025-02-21 01:04:50 +00:00
fibs_test.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
forward.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ip6_v4mapped_test.c netinet tests: Add error handling tests for UDP with v4-mapped sockets 2023-10-24 09:19:46 -04:00
ip_reass_test.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
lpm.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile tests: Add some FIB multibind test cases 2025-02-21 01:04:50 +00:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
output.sh netinet tests: Make test jail names unique 2024-02-03 14:11:09 -05:00
redirect.py Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
redirect.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
so_reuseport_lb_test.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
socket_afinet.c inpcb: Further restrict binding to a port owned by a different UID 2025-01-23 13:58:07 +00:00
tcp_connect_port_test.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
tcp_md5_getsockopt.c Add tests for TCP_MD5 getsockopt 2022-06-23 15:57:56 +01:00
tcp_user_cookie.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
udp_dontroute.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00