From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Guiton Subject: Re: How do I use ip_conntrack_destroyed? Date: Fri, 05 Dec 2003 16:57:59 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <3FD09CF7.1090402@netlab.hut.fi> References: <3FCEE93C.5040104@balabit.hu> <3FCF413D.1060405@netlab.hut.fi> <3FCF4E6A.8070202@balabit.hu> Reply-To: emmanuel@netlab.hut.fi Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org KOVACS Krisztian wrote: > This was the case for an older version of nfnetlink. With > nfnetlink-ctnetlink 0.13 you should use > > static struct notifier_block my_notifier = { > my_notifier_function, > NULL, > 0 > }; > > For more info see that patch, it actually _uses_ notifiers to be > able to catch conntrack entry related events. Note that this interface > is much more universal, for example you can catch events when a > conntrack entry is modified, etc. Good luck :) > About this patch, I cannot install it. I started over from a clean linux 2.4.22 kernel and applied the patches. First I used ./runme base and applied everything I could. then I used ./runme extra and in the extra patches I only tried to apply the nfnetlinc patch (thus I did not install the two conflicting patches - ctstat and netfilter-docbook). Still, it does not work. Is there any other required/conflicted patch that I am not aware of? Emmanuel PS: for information, the output of pom: Testing... nfnetlink-ctnetlink-0.13.patch NOT APPLIED (4 missing files) The extra/nfnetlink-ctnetlink-0.13 patch: Author: Harald Welte , Jay Schulist , Patrick McHardy Status: Under development, but stabilizing now. Add recent work by patrick (notifiers, event messages to userspace. ----------------------------------------------------------------- Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y Patch extra/nfnetlink-ctnetlink-0.13.patch conflicts with extra/netfilter-docbook.patch... netfilter-docbook.patch NOT APPLIED (33 rejects out of 33 hunks) Patch extra/nfnetlink-ctnetlink-0.13.patch conflicts with extra/ctstat.patch... ctstat.patch NOT APPLIED (15 rejects out of 15 hunks) Testing patch extra/nfnetlink-ctnetlink-0.13.patch... Placed new Config.in line Placed new Config.in line Placed new Makefile line Placed new ip_conntrack.h line Placed new ip_conntrack.h line Placed new ip_conntrack.h line Placed new ip_conntrack.h line Placed new ip_conntrack.h line Placed new ip_conntrack.h line Placed new ip_conntrack.h line Placed new ip_conntrack.h line Failed to patch copy of /usr/src/linux-2.4.22 TEST FAILED: patch NOT applied.