netfilter: Add nfnl_msg_type() helper function
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Mar 2017 16:57:32 +0000 (22:27 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Apr 2017 14:31:36 +0000 (16:31 +0200)
commitdedb67c4b4e5fa2e6e149a2ce93e7848aaa9d762
tree3a250a737ad2c5de9293a2f7ec7609f824321c94
parent2c62e0bc685fcb400a0b5cffb39860290bc902a8
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>
include/linux/netfilter/nfnetlink.h
net/netfilter/ipset/ip_set_core.c
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_trace.c
net/netfilter/nfnetlink_acct.c
net/netfilter/nfnetlink_cthelper.c
net/netfilter/nfnetlink_cttimeout.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue.c
net/netfilter/nft_compat.c