diff options
author | 2017-03-28 22:27:32 +0530 | |
---|---|---|
committer | 2017-04-07 16:31:36 +0200 | |
commit | dedb67c4b4e5fa2e6e149a2ce93e7848aaa9d762 (patch) | |
tree | 3a250a737ad2c5de9293a2f7ec7609f824321c94 /net/netfilter/ipset/ip_set_core.c | |
parent | netfilter: ctnetlink: Expectations must have a conntrack helper area (diff) | |
download | linux-dedb67c4b4e5fa2e6e149a2ce93e7848aaa9d762.tar.gz linux-dedb67c4b4e5fa2e6e149a2ce93e7848aaa9d762.tar.bz2 linux-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/ipset/ip_set_core.c')
-rw-r--r-- | net/netfilter/ipset/ip_set_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c index c296f9b606d4..731ba9c0cf9b 100644 --- a/net/netfilter/ipset/ip_set_core.c +++ b/net/netfilter/ipset/ip_set_core.c @@ -769,7 +769,7 @@ start_msg(struct sk_buff *skb, u32 portid, u32 seq, unsigned int flags, struct nlmsghdr *nlh; struct nfgenmsg *nfmsg; - nlh = nlmsg_put(skb, portid, seq, cmd | (NFNL_SUBSYS_IPSET << 8), + nlh = nlmsg_put(skb, portid, seq, nfnl_msg_type(NFNL_SUBSYS_IPSET, cmd), sizeof(*nfmsg), flags); if (!nlh) return NULL; |