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>
This commit is contained in:
parent
1a42624aec
commit
ef4b65e53c
7 changed files with 42 additions and 70 deletions
|
|
@ -11,6 +11,7 @@ struct nfnl_info {
|
|||
struct net *net;
|
||||
struct sock *sk;
|
||||
const struct nlmsghdr *nlh;
|
||||
const struct nfgenmsg *nfmsg;
|
||||
struct netlink_ext_ack *extack;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue