12_contrack_nat_dependency.patch
Hi Rusty,
I have a question about the 12_contrack_nat_dependency.patch in p-o-m/pending...
The patch you sent Harald was for 2.5, will a similar patch work for 2.4? I've backported it and it compiles but I can't really test it.
It looks like it should work but I try to stay away from the module voodoo...
Signature · 1 line
/Martin
In message <[email protected]> you write:
Quoted 7 lines
Hi Rusty,
I have a question about the 12_contrack_nat_dependency.patch in p-o-m/pending...
The patch you sent Harald was for 2.5, will a similar patch work for 2.4? I've backported it and it compiles but I can't really test it.
Yep, should be fine. It has a flaw though for UP, in that relying on the lock is not sufficient.
Harald and I are arguing it now; I'll tell you the answer when we have it.
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
Quoted 11 lines · Rusty Russell
In message <[email protected]> you write:
Quoted 7 lines
Hi Rusty,
I have a question about the 12_contrack_nat_dependency.patch in p-o-m/pending...
The patch you sent Harald was for 2.5, will a similar patch work for 2.4? I've backported it and it compiles but I can't really test it.
Yep, should be fine. It has a flaw though for UP, in that relying on the lock is not sufficient.
I have removed the patch from patch-o-matic now.
Quoted 2 lines
Harald and I are arguing it now; I'll tell you the answer when we have it.
We should have argued on netfilter-devel.
Anyway, I'll attach the outcome of our little argument here :)
Quoted 1 line
Rusty.
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
From X-Sieve Thu Mar 27 05:15:01 2003
Return-Path:X-Sieve: cmu-sieve 2.0
Return-path: <[email protected]>
Received: from mail by coruscant.gnumonks.org with spam-scanned (Exim 3.34 #1)
id 18yOn7-0007Ku-00 for [email protected]; Thu, 27 Mar 2003 05:15:01 +0100 Received: from netfilter-sponsored-by.noris.net ([62.128.28.62] helo=kashyyyk.netfilter.org) by coruscant.gnumonks.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.34 #1) id 18yOn5-0007Kl-00 for [email protected]; Thu, 27 Mar 2003 05:15:00 +0100 Received: from kashyyyk ([127.0.0.1]) by kashyyyk.netfilter.org with esmtp (Exim 3.35 #1 (Debian)) id 18yOkG-00056u-00 for <[email protected]>; Thu, 27 Mar 2003 05:12:04 +0100 Received: from dp.samba.org ([66.70.73.150] helo=lists.samba.org) by kashyyyk.netfilter.org with esmtp (Exim 3.35 #1 (Debian)) id 18yOk5-00052G-00; Thu, 27 Mar 2003 05:11:53 +0100 Received: by lists.samba.org (Postfix, from userid 590) id 15D292C06E; Thu, 27 Mar 2003 04:11:48 +0000 (GMT)
From: Rusty Russell <[email protected]>
To: Harald Welte <[email protected]>
Cc: [email protected]
Subject: Re: [netfilter-core] Re: ip_nat_helper: Autoloading of protocol conntrack modules
In-reply-to: Your message of "Wed, 26 Mar 2003 08:56:31 BST."
<[email protected]>
Message-Id: <[email protected]>
Sender: [email protected]
Errors-To: [email protected]
X-BeenThere: [email protected]
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:[email protected]?subject=help>
List-Post: <mailto:[email protected]>
List-Subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter-core>,
<mailto:[email protected]?subject=subscribe>
List-Id: List for core team members of the netfilter project <netfilter-core.lists.netfilter.org>
List-Unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter-core>,
<mailto:[email protected]?subject=unsubscribe>
List-Archive: <https://lists.netfilter.org/cgi-bin/mailman/private/netfilter-core/>
Date: Thu, 27 Mar 2003 13:30:37 +1100
Status: RO
X-Status: A
Content-Length: 1042
In message <[email protected]> you write:
Quoted 4 lines
On the other hand, adding the dummy function is just a hack, and I think it's way easier to do this wrong [from a module author's perspective], than specifying a flag in some structure while registering with the core.
I think that it's more explicit than the flag, myself.
Quoted 3 lines
As stated before, is there a way we can 'magically hide' the dummy symbol, e.g. create it from some macro? The only question is, how do we automagically create the name of a symbol derived from the filename...
How about:
/* eg. PROVIDES_CONNTRACK(ftp); */
#define PROVIDES_CONNTRACK(name) \ int needs_ip_conntrack_##name; \ EXPORT_SYMBOL(needs_ip_conntrack_##name)
/*. eg. NEEDS_CONNTRACK(ftp); */
#define NEEDS_CONNTRACK(name) \ extern int needs_ip_conntrack_##name; \ static int *need_ip_conntrack_##name = &needs_ip_conntrack_##name
These would be used at file scope...
Cheers,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.