[NETFILTER]: ctnetlink: dump connection mark
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Aug 2006 07:31:49 +0000 (00:31 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:55:25 +0000 (14:55 -0700)
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>
net/ipv4/netfilter/ip_conntrack_netlink.c
net/netfilter/nf_conntrack_netlink.c

index 0d4cc92..38708e6 100644 (file)
@@ -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;
index 6527d4e..aa0148f 100644 (file)
@@ -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;