diff options
| author | R. Christian McDonald <rcm@FreeBSD.org> | 2026-10-01 10:39:01 +0000 |
|---|---|---|
| committer | R. Christian McDonald <rcm@FreeBSD.org> | 2026-10-01 10:39:01 +0000 |
| commit | f05af59fba6912bdde8c911b0820871224ed16db (patch) | |
| tree | 6f3bd2a4f109f2f1c9da7387fb65402597479f99 /sys/dev/dpaa/fman_port_rx.c | |
| parent | 5c13a82de8be51c8472e922a667519d575dcb59e (diff) | |
The PFNL_CMD_TABLE_TEST_ADDRS reply carries only the match count, so
the per-address feedback from pfr_tst_addrs() is lost:
"pfctl -v -T test" lists nothing and "pfctl -vv -T test" reports
every address as "nomatch".
Return each address, as updated by pfr_tst_addrs(), in a nested
PF_TAS_ADDR attribute, and decode them into the caller's array in
libpfctl. PF_TA_ADDR is not reused: it shares its value with
PF_TAS_ASTATS, which older libpfctl would decode into an
uninitialised target. That target was also read when no reply was
parsed, so the match count could be garbage; initialise it.
Add a regression test.
Reviewed by: kp
Approved by: kp (mentor)
Fixes: 281282e9357b ("pf: convert DIOCRTSTADDRS to netlink")
See also: https://redmine.pfsense.org/issues/17135
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D60146
Diffstat (limited to 'sys/dev/dpaa/fman_port_rx.c')
0 files changed, 0 insertions, 0 deletions
