]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - net/netfilter/nfnetlink_acct.c
netfilter: Add nfnl_msg_type() helper function
[mirror_ubuntu-jammy-kernel.git] / net / netfilter / nfnetlink_acct.c
index c86da174a5fced4e3c67307925332273b9f858fe..1b9a5d6099dcb1ad9dbc31a62bec2b82ffb74fef 100644 (file)
@@ -139,7 +139,7 @@ nfnl_acct_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type,
        u64 pkts, bytes;
        u32 old_flags;
 
-       event |= NFNL_SUBSYS_ACCT << 8;
+       event = nfnl_msg_type(NFNL_SUBSYS_ACCT, event);
        nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
        if (nlh == NULL)
                goto nlmsg_failure;