forked from Minki/linux
[NETFILTER]: ctnetlink: dump connection mark
ctnetlink dumps the mark iif the event mark happened Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2521c12cf1
commit
b9a37e0c81
@ -385,6 +385,10 @@ static int ctnetlink_conntrack_event(struct notifier_block *this,
|
||||
ctnetlink_dump_counters(skb, ct, IP_CT_DIR_REPLY) < 0)
|
||||
goto nfattr_failure;
|
||||
|
||||
if (events & IPCT_MARK
|
||||
&& ctnetlink_dump_mark(skb, ct) < 0)
|
||||
goto nfattr_failure;
|
||||
|
||||
nlh->nlmsg_len = skb->tail - b;
|
||||
nfnetlink_send(skb, 0, group, 0);
|
||||
return NOTIFY_DONE;
|
||||
|
@ -395,6 +395,10 @@ static int ctnetlink_conntrack_event(struct notifier_block *this,
|
||||
ctnetlink_dump_counters(skb, ct, IP_CT_DIR_REPLY) < 0)
|
||||
goto nfattr_failure;
|
||||
|
||||
if (events & IPCT_MARK
|
||||
&& ctnetlink_dump_mark(skb, ct) < 0)
|
||||
goto nfattr_failure;
|
||||
|
||||
nlh->nlmsg_len = skb->tail - b;
|
||||
nfnetlink_send(skb, 0, group, 0);
|
||||
return NOTIFY_DONE;
|
||||
|
Loading…
Reference in New Issue
Block a user