opnsense-src/tests/sys
Kajetan Staszkiewicz d2761422eb pf: Use different address family for source and redirection address
The function pf_map_addr() and source tracking operate on a single
address family. This made sense before introducing address family
translation. When combining af-to with route-to or with sticky-address,
the next-hop or the NAT address are of different address family than
the source address. For example in NAT64 scenaro an IPv6 source address
is translated to an IPv4 address and routed over IPv4 gateway.

Make source nodes dual-AF, that is have a separate source AF and
redirection AF. Store route AF in struct pf_kstate, export it to pfctl.
When loading rules with redirection pools with pfctl store address
family of each address. When printing states don't deduce next-hop's
address family from af-to, use the one stored in state.

Reviewed by:	kp
Approved by:	kp
Sponsored by:	InnoGames GmbH
Differential Revision:	https://reviews.freebsd.org/D51659
2025-08-01 12:11:30 +02:00
..
acl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
aio aio_kqueue_test: Fix CID 1558429 2025-01-09 08:42:36 -06:00
audit Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
auditpipe Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
cam ctl: delete dead code in the tests 2025-07-22 16:55:40 -06:00
capsicum capsicum tests: Serialize functional tests 2024-09-04 14:28:28 +00:00
cddl Fix the zfsd_fault_001_pos test 2025-05-02 08:48:58 -06:00
common vnet tests: verify that we can load if_epair and if_bridge 2024-07-23 15:57:25 +02:00
compat32 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
devrandom Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
fifo Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
file tests: Adapt existing tests for O_CLOEXEC to O_CLOFORK 2025-07-06 23:08:46 +00:00
fs fusefs: report that all tests require the fusefs kernel module 2025-07-22 16:32:39 -06:00
geom ggate tests: Use unique ports among tests 2024-09-04 14:28:28 +00:00
kern uexterr_gettext: add tests 2025-07-15 14:43:52 -06:00
kqueue tests/kqueue: repair flaky test 2025-06-24 15:29:03 -07:00
mac tests/mac_portacl: enable is_exclusive for now 2025-07-26 04:55:01 +08:00
mqueue Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
net bridge: do not allow a bridge SVI in a bridge 2025-07-28 18:38:02 +01:00
netgraph ng_ksocket: Add tests for IPv6 2025-06-25 12:12:11 +02:00
netinet fibs_test: Mark same_ip_multiple_ifaces_fib0 as expected to fail 2025-06-26 21:27:57 +00:00
netinet6 netinet6: allow binding a raw socket to an anycast address 2025-07-15 06:12:45 +01:00
netipsec tests: fix test for NULL encription 2025-03-25 10:23:40 +03:00
netlink netlink: Move static arrays of parsers into tests that use them 2025-04-11 09:52:39 -04:00
netmap netmap: Disable a buggy and unsafe test (sync_kloop_conflict) 2025-03-06 13:22:25 -05:00
netpfil pf: Use different address family for source and redirection address 2025-08-01 12:11:30 +02:00
opencrypto Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pjdfstest Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
posixshm shm: Respect PROT_MAX when creating private mappings 2024-10-04 15:56:34 +00:00
ses Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
sound sound tests: Fetch HWBUF_RATE and SWBUF_RATE in sndstat_nv 2025-04-26 12:06:52 +02:00
sys queue(3): Add a test for STAILQ_REVERSE() 2025-05-07 14:34:39 +02:00
vfs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
vm tests: move some files to the tests package 2025-05-05 16:39:25 +01:00
vmm vmm tests: Check for /dev/vmmctl to decide if vmm is initialized 2025-02-08 16:05:37 +00:00
Makefile ctl: add some ATF tests for READ BUFFER 2024-09-04 14:38:12 +00:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00