HomeFreeBSD

libpfctl: fix creatorid endianness

Description

libpfctl: fix creatorid endianness

We provide the hostid (which is the state creatorid) to the kernel as a
big endian number (see pfctl/pfctl.c pfctl_set_hostid()), so convert it
back to system endianness when we get it from the kernel.

This avoids a confusing mismatch between the value the user configures
and the value displayed in the state.

MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33989

(cherry picked from commit 735748f30aad80593e2b7f5f5f175d64484c5eeb)

Details

Provenance
kpAuthored on Jan 21 2022, 4:50 PM
Differential Revision
D33989: libpfctl: fix creatorid endianness
Parents
rGb5f6f687a2ee: pfctl: improve error reporting for routehost
Branches
Unknown
Tags
Unknown