OSDN Git Service

netfilter: ctnetlink: add and use a helper for mark parsing
authorFlorian Westphal <fw@strlen.de>
Fri, 30 Jul 2021 13:14:21 +0000 (15:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 Aug 2021 11:36:39 +0000 (13:36 +0200)
commitff1199db8c3b7cdc3ac4430badfd254023c5142e
tree038c076e2002dc73d5773204a036b066c8e9e154
parent87663c39f898b18905499126548da61450628682
netfilter: ctnetlink: add and use a helper for mark parsing

ctnetlink dumps can be filtered based on the connmark.

Prepare for status bit filtering by using a named structure and by
moving the mark parsing code to a helper.

Else ctnetlink_alloc_filter size grows a bit too big for my taste
when status handling is added.

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