dump conntrack mark
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 2/8 dump conntrack mark
ctnetlink dumps the mark iif the event mark happened
Signed-off-by Pablo Neira Ayuso <[email protected]>
Signature · 1 line
The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
[CTNETLINK] Dump conntrack mark
ctnetlink dumps the mark iif the event mark happened
Signed-off-by Pablo Neira Ayuso <[email protected]>
net/ipv4/netfilter/ip_conntrack_netlink.c +4 -0
@@ -385,6 +385,10 @@ static int ctnetlink_conntrack_event(str 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 ;
net/netfilter/nf_conntrack_netlink.c +4 -0
@@ -395,6 +395,10 @@ static int ctnetlink_conntrack_event(str 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 ;
Quoted 1 line · Pablo Neira Ayuso
ctnetlink dumps the mark iif the event mark happened
Also applied. And thanks for your patience btw :)