diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2006-08-22 00:31:49 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 14:55:25 -0700 |
commit | b9a37e0c81c498be2db9f52063c53e55d76c815e (patch) | |
tree | 9ffb59b51a083c12db5616aeba15f77efbc86508 /net/ipv4/netfilter/ip_conntrack_netlink.c | |
parent | 2521c12cf1a29f6c380b13ca32a38175f6beed08 (diff) | |
download | op-kernel-dev-b9a37e0c81c498be2db9f52063c53e55d76c815e.zip op-kernel-dev-b9a37e0c81c498be2db9f52063c53e55d76c815e.tar.gz |
[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>
Diffstat (limited to 'net/ipv4/netfilter/ip_conntrack_netlink.c')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_netlink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_netlink.c b/net/ipv4/netfilter/ip_conntrack_netlink.c index 0d4cc92..38708e6 100644 --- a/net/ipv4/netfilter/ip_conntrack_netlink.c +++ b/net/ipv4/netfilter/ip_conntrack_netlink.c @@ -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; |