* [PATCH 3/8][CTNETLINK] send expectation events iif there listeners
@ 2006-07-25 13:18 Pablo Neira Ayuso
2006-08-08 10:18 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Pablo Neira Ayuso @ 2006-07-25 13:18 UTC (permalink / raw)
To: Netfilter Development Mailinglist; +Cc: Harald Welte, Patrick McHardy
[-- Attachment #1: Type: text/plain, Size: 280 bytes --]
This patch uses nfnetlink_has_listeners to check for listeners in userspace.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
--
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
[-- Attachment #2: 03exp.patch --]
[-- Type: text/plain, Size: 1326 bytes --]
[CTNETLINK] send expectation events iif there are listeners
This patch uses nfnetlink_has_listeners to check for listeners in userspace.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Index: net-2.6/net/ipv4/netfilter/ip_conntrack_netlink.c
===================================================================
--- net-2.6.orig/net/ipv4/netfilter/ip_conntrack_netlink.c 2006-07-14 16:38:57.000000000 +0200
+++ net-2.6/net/ipv4/netfilter/ip_conntrack_netlink.c 2006-07-20 21:25:36.000000000 +0200
@@ -1260,6 +1260,9 @@ static int ctnetlink_expect_event(struct
} else
return NOTIFY_DONE;
+ if (!nfnetlink_has_listeners(NFNLGRP_CONNTRACK_EXP_NEW))
+ return NOTIFY_DONE;
+
skb = alloc_skb(NLMSG_GOODSIZE, GFP_ATOMIC);
if (!skb)
return NOTIFY_DONE;
Index: net-2.6/net/netfilter/nf_conntrack_netlink.c
===================================================================
--- net-2.6.orig/net/netfilter/nf_conntrack_netlink.c 2006-07-14 16:38:57.000000000 +0200
+++ net-2.6/net/netfilter/nf_conntrack_netlink.c 2006-07-20 21:25:36.000000000 +0200
@@ -1281,6 +1281,9 @@ static int ctnetlink_expect_event(struct
} else
return NOTIFY_DONE;
+ if (!nfnetlink_has_listeners(NFNLGRP_CONNTRACK_EXP_NEW))
+ return NOTIFY_DONE;
+
skb = alloc_skb(NLMSG_GOODSIZE, GFP_ATOMIC);
if (!skb)
return NOTIFY_DONE;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 3/8][CTNETLINK] send expectation events iif there listeners
2006-07-25 13:18 [PATCH 3/8][CTNETLINK] send expectation events iif there listeners Pablo Neira Ayuso
@ 2006-08-08 10:18 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2006-08-08 10:18 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: Harald Welte, Netfilter Development Mailinglist
Pablo Neira Ayuso wrote:
> This patch uses nfnetlink_has_listeners to check for listeners in
> userspace.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-08 10:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-25 13:18 [PATCH 3/8][CTNETLINK] send expectation events iif there listeners Pablo Neira Ayuso
2006-08-08 10:18 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.