netfilter: ctnetlink: use dump structure instead of raw args
authorFlorian Westphal <fw@strlen.de>
Fri, 4 Feb 2022 12:11:45 +0000 (13:11 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 Feb 2022 11:07:16 +0000 (12:07 +0100)
commit5948ed297eefe927628e43b5142ccde691a130fd
tree8146620fb4407aa8cc4c0dc4eca6628695e671d5
parent98eee88b8decb47ed9bacd0bbd698a36c1983a8a
netfilter: ctnetlink: use dump structure instead of raw args

netlink_dump structure has a union of 'long args[6]' and a context
buffer as scratch space.

Convert ctnetlink to use a structure, its easier to read than the
raw 'args' usage which comes with no type checks and no readable names.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c