public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Marc Ballarin <Ballarin.Marc@gmx.de>
Cc: "David S. Miller" <davem@davemloft.net>,
	rusty@rustcorp.com.au, torvalds@osdl.org,
	netfilter-devel@lists.netfilter.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Warn people that ipchains and ipfwadm are going away.
Date: Wed, 22 Sep 2004 02:16:08 +0200	[thread overview]
Message-ID: <4150C448.5040604@trash.net> (raw)
In-Reply-To: <20040922013516.753044db.Ballarin.Marc@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

Marc Ballarin wrote:

>On Tue, 21 Sep 2004 15:36:00 -0700
>"David S. Miller" <davem@davemloft.net> wrote:
>
>  
>
>>You can't have ipchains and iptables loaded at the same time.
>>You must first manually unload iptables, then you can
>>successfully load the ipchains module.
>>    
>>
>
>Yes, I know, something seems strange here.
>  
>

Fixed by this patch. The conntrack protocols need ip_ct_log_invalid
which is defined in ip_conntrack_standalone, so ip_conntrack is
loaded automatically before ipchains. This patch moves it over to
ip_conntrack_core.

Dave, please apply on top of the other netfilter patches.

Regards
Patrick


[-- Attachment #2: x --]
[-- Type: text/plain, Size: 1733 bytes --]

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/09/22 02:04:02+02:00 kaber@coreworks.de 
#   {NETFILTER]: Move ip_ct_log_invalid to ip_conntrack_core.c
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
# net/ipv4/netfilter/ip_conntrack_standalone.c
#   2004/09/22 02:03:37+02:00 kaber@coreworks.de +0 -2
#   {NETFILTER]: Move ip_ct_log_invalid to ip_conntrack_core.c
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
# net/ipv4/netfilter/ip_conntrack_core.c
#   2004/09/22 02:03:37+02:00 kaber@coreworks.de +1 -0
#   {NETFILTER]: Move ip_ct_log_invalid to ip_conntrack_core.c
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
diff -Nru a/net/ipv4/netfilter/ip_conntrack_core.c b/net/ipv4/netfilter/ip_conntrack_core.c
--- a/net/ipv4/netfilter/ip_conntrack_core.c	2004-09-22 02:10:28 +02:00
+++ b/net/ipv4/netfilter/ip_conntrack_core.c	2004-09-22 02:10:28 +02:00
@@ -74,6 +74,7 @@
 static kmem_cache_t *ip_conntrack_cachep;
 static kmem_cache_t *ip_conntrack_expect_cachep;
 struct ip_conntrack ip_conntrack_untracked;
+unsigned int ip_ct_log_invalid;
 
 DEFINE_PER_CPU(struct ip_conntrack_stat, ip_conntrack_stat);
 
diff -Nru a/net/ipv4/netfilter/ip_conntrack_standalone.c b/net/ipv4/netfilter/ip_conntrack_standalone.c
--- a/net/ipv4/netfilter/ip_conntrack_standalone.c	2004-09-22 02:10:28 +02:00
+++ b/net/ipv4/netfilter/ip_conntrack_standalone.c	2004-09-22 02:10:28 +02:00
@@ -48,8 +48,6 @@
 extern atomic_t ip_conntrack_count;
 DECLARE_PER_CPU(struct ip_conntrack_stat, ip_conntrack_stat);
 
-unsigned int ip_ct_log_invalid = 0;
-
 static int kill_proto(const struct ip_conntrack *i, void *data)
 {
 	return (i->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum == 

  reply	other threads:[~2004-09-22  0:17 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-20 23:09 [PATCH] Warn people that ipchains and ipfwadm are going away Rusty Russell (IBM)
2004-09-21 12:36 ` Marc Ballarin
2004-09-21 21:58   ` Rusty Russell
2004-09-21 22:36     ` Marc Ballarin
2004-09-21 22:36       ` David S. Miller
2004-09-21 23:35         ` Marc Ballarin
2004-09-22  0:16           ` Patrick McHardy [this message]
2004-09-22 13:37             ` Marc Ballarin
2004-09-22 13:58               ` Jesper Juhl
2004-09-22 14:13                 ` Richard B. Johnson
2004-09-22 11:36     ` Richard B. Johnson
2004-09-22 11:47       ` Martin Josefsson
2004-09-22 12:05         ` Richard B. Johnson
2004-09-22 12:41           ` Gene Heskett
2004-09-22 14:19           ` Fao, Sean
2004-09-22 15:31           ` William Stearns
2004-09-22 11:52       ` James Courtier-Dutton
2004-09-22 11:55       ` Marc Ballarin
2004-09-21 17:57 ` Bill Davidsen
     [not found] <2GFBZ-61e-11@gated-at.bofh.it>
     [not found] ` <2GSfS-6eW-5@gated-at.bofh.it>
     [not found]   ` <2H0ZO-49v-13@gated-at.bofh.it>
     [not found]     ` <2HdDL-48z-53@gated-at.bofh.it>
     [not found]       ` <2HdNp-4eJ-27@gated-at.bofh.it>
2004-09-22 12:15         ` Andi Kleen
2004-09-22 14:04           ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2004-09-23 18:07 Albert Cahalan
2004-09-23 19:33 ` Chris Friesen
2004-09-23 19:36   ` Albert Cahalan
2004-09-23 19:57     ` Andy Lutomirski
2004-09-23 19:57     ` David S. Miller
2004-09-23 23:08 ` Matthew Garrett
2004-09-23 23:25   ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4150C448.5040604@trash.net \
    --to=kaber@trash.net \
    --cc=Ballarin.Marc@gmx.de \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox