netfilter: nfnetlink: add struct nfgenmsg to struct nfnl_info and use it
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 30 May 2021 22:08:09 +0000 (00:08 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 7 Jun 2021 10:23:36 +0000 (12:23 +0200)
commitef4b65e53cc77e2b3ca4667b461047ad04fb45fa
treed1db826d0a251adf70d84422bad19d6addc2a30a
parent1a42624aecba438f1d114430a14b640cdfa51c87
netfilter: nfnetlink: add struct nfgenmsg to struct nfnl_info and use it

Update the nfnl_info structure to add a pointer to the nfnetlink header.
This simplifies the existing codebase since this header is usually
accessed. Update existing clients to use this new field.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/nfnetlink.h
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nf_tables_api.c
net/netfilter/nfnetlink.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue.c
net/netfilter/nft_compat.c