diff options
| author | R. Christian McDonald <rcm@FreeBSD.org> | 2026-09-29 01:21:56 +0000 |
|---|---|---|
| committer | R. Christian McDonald <rcm@FreeBSD.org> | 2026-09-29 11:00:50 +0000 |
| commit | 806adba81f3d808994b0cec955c38ef1a089e739 (patch) | |
| tree | f82834dd010304527b9fcef80782bc62571594b7 /sys/dev/neta/if_mvneta.c | |
| parent | 0dac2c53270193d99b1bd648966132b1f6d523ac (diff) | |
The kernel sends PFR_A_AF as a u32, although it is documented and
parsed as a u8, and libpfctl decoded it with snl_attr_get_uint32()
straight into the u8 pfra_af. That overwrote pfra_net, pfra_not and
pfra_fback, and left pfra_af zero on big-endian hosts.
Decode it via a temporary, and accept a u8 as well, so that the
kernel can be corrected later without breaking libpfctl.
Reviewed by: kp
Approved by: kp (mentor)
Fixes: f27e44e2e3b5 ("pf: convert DIOCRGETADDRS to netlink")
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D60110
Diffstat (limited to 'sys/dev/neta/if_mvneta.c')
0 files changed, 0 insertions, 0 deletions
