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. Signed-off-by: Rudolf Rödl --- include/linux/netfilter/nf_tables.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h index 45d0b92b..11737fed 100644 --- a/include/linux/netfilter/nf_tables.h +++ b/include/linux/netfilter/nf_tables.h @@ -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) */ -- 2.43.0