freebsd-dev/lib/libpfctl
Kristof Provost 735748f30a 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
2022-01-27 09:07:27 +01:00
..
libpfctl.c libpfctl: fix creatorid endianness 2022-01-27 09:07:27 +01:00
libpfctl.h libpfct: be consistent with u_int vs. uint 2021-11-05 09:39:56 +01:00
Makefile libpfct: Fix PIC flag 2021-04-17 22:10:13 +02:00