]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
Use `NFPROTO_*` constants for protocol families
authorJeremy Sowden <jeremy@azazel.net>
Mon, 26 May 2025 17:19:03 +0000 (18:19 +0100)
committerFlorian Westphal <fw@strlen.de>
Sun, 1 Jun 2025 12:12:47 +0000 (14:12 +0200)
commitf699ba550c9f009924d8f5f59a190254938f9bec
tree76fe196beb718881d6b7d16c64d86f47189a5260
parentc0f9d1950e0968688558c2abbaa41cffd03f19de
Use `NFPROTO_*` constants for protocol families

Netfilter has a set of `NFPROTO_*` constants for the protocol families that it
supports, in part because it supports protocols and pseudo-protocols that do not
have `PF_*` (and `AF_*`) constants.  Currently, ulogd uses `AF_*` constants for
protocol families, because it does not support any families which do not have
`AF_*` constants.  Switch to `NFPROTO_*` constants instead, so we can add ARP
support later.

In the IP2* filters, retain `AF_*` for address family variables.

Remove a stray semicolon.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
filter/raw2packet/ulogd_raw2packet_BASE.c
filter/ulogd_filter_IP2BIN.c
filter/ulogd_filter_IP2HBIN.c
filter/ulogd_filter_IP2STR.c
input/flow/ulogd_inpflow_NFCT.c
input/packet/ulogd_inppkt_UNIXSOCK.c
util/printpkt.c