Skip to contentSkip to conversation

include: fix NLA type comments for log attributes

PATCH New Rudolf Rödl 1 participant 1 message Mar 23 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include: fix NLA type comments for log attributes

The UAPI header comments for NFTA_LOG_GROUP and NFTA_LOG_QTHRESHOLD state NLA_U32, but the kernel implementation uses NLA_U16 since commit 09d27a8 ("netfilter: nft_log: group and qthreshold are 2^16").

The nft userspace also correctly uses nftnl_expr_set_u16() for both attributes (netlink_linearize.c).

Sync the comments to match the actual wire format.

---
 include/linux/netfilter/nf_tables.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/netfilter/nf_tables.h +2 -2
index 45d0b92b..11737fed 100644
@@ -1281,10 +1281,10 @@ enum nft_last_attributes {
 /**
  * enum nft_log_attributes - nf_tables log expression netlink attributes
  *
- * @NFTA_LOG_GROUP: netlink group to send messages to (NLA_U32)
+ * @NFTA_LOG_GROUP: netlink group to send messages to (NLA_U16)
  * @NFTA_LOG_PREFIX: prefix to prepend to log messages (NLA_STRING)
  * @NFTA_LOG_SNAPLEN: length of payload to include in netlink message (NLA_U32)
- * @NFTA_LOG_QTHRESHOLD: queue threshold (NLA_U32)
+ * @NFTA_LOG_QTHRESHOLD: queue threshold (NLA_U16)
  * @NFTA_LOG_LEVEL: log level (NLA_U32)
  * @NFTA_LOG_FLAGS: logging flags (NLA_U32)
  */
Signature · 1 line
2.43.0