aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nfnetlink_log.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2017-03-28 22:27:32 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2017-04-07 16:31:36 +0200
commitdedb67c4b4e5fa2e6e149a2ce93e7848aaa9d762 (patch)
tree3a250a737ad2c5de9293a2f7ec7609f824321c94 /net/netfilter/nfnetlink_log.c
parentnetfilter: ctnetlink: Expectations must have a conntrack helper area (diff)
downloadlinux-dev-dedb67c4b4e5fa2e6e149a2ce93e7848aaa9d762.tar.xz
linux-dev-dedb67c4b4e5fa2e6e149a2ce93e7848aaa9d762.zip
netfilter: Add nfnl_msg_type() helper function
Add and use nfnl_msg_type() function to replace opencoded nfnetlink message type. I suggested this change, Arushi Singhal made an initial patch to address this but was missing several spots. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nfnetlink_log.c')
-rw-r--r--net/netfilter/nfnetlink_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index ecd857b75ffe..e7648e90d162 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -411,7 +411,7 @@ __build_packet_message(struct nfnl_log_net *log,
const unsigned char *hwhdrp;
nlh = nlmsg_put(inst->skb, 0, 0,
- NFNL_SUBSYS_ULOG << 8 | NFULNL_MSG_PACKET,
+ nfnl_msg_type(NFNL_SUBSYS_ULOG, NFULNL_MSG_PACKET),
sizeof(struct nfgenmsg), 0);
if (!nlh)
return -1;