All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: Roberto Nibali <ratz@tac.ch>
Cc: Netfilter Developers <netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH] update raw patch in POM
Date: Wed, 08 Jun 2005 14:37:25 +0200	[thread overview]
Message-ID: <42A6E685.3060408@eurodev.net> (raw)
In-Reply-To: <42A6AB19.2040106@tac.ch>

Roberto Nibali wrote:
>>You've killed the new version of ip_ct_gather_frags available in 2.4.31:
> 
> 
> http://svn.netfilter.org/cgi-bin/viewcvs.cgi/trunk/patch-o-matic-ng/raw/linux-2.4.patch?rev=3692&view=markup
> 
> 
>>-    /* Gather fragments. */
>>-    if ((*pskb)->nh.iph->frag_off & htons(IP_MF|IP_OFFSET)) {
>>-        *pskb = ip_ct_gather_frags(*pskb,
>>-                                   hooknum == NF_IP_PRE_ROUTING ?
>>-                                   IP_DEFRAG_CONNTRACK_IN :
>>-                                   IP_DEFRAG_CONNTRACK_OUT);
>>-        if (!*pskb)
>>-            return NF_STOLEN;
>>-    }
>>
>>but you've replaced it with the old one, that goes in ip_conntrack_defrag:
>>
>>+    /* Gather fragments. */
>>+    if ((*pskb)->nh.iph->frag_off & htons(IP_MF|IP_OFFSET)) {
>>+        *pskb = ip_ct_gather_frags(*pskb);
>>+        if (!*pskb)
>>+            return NF_STOLEN;
>>+    }
> 
> 
> The patch in POM then is kind of misleading.

Instead I would say it's too old. It isn't misleading for a kernel 
2.4.22 but it's simply too old to apply against a 2.4.31 ;).

>>-------- missing hunk ----------------
>>diff -urN --exclude-from=/usr/src/diff.exclude
>>linux-2.4.22-log/include/linux/netfilter_ipv4/ip_conntrack.h
>>linux-2.4.22-raw/include/linux/netfilter_ipv4/ip_conntrack.h
>>--- linux-2.4.22-log/include/linux/netfilter_ipv4/ip_conntrack.h
>>2003-09-17 17:14:54.000000000 +0200
>>+++ linux-2.4.22-raw/include/linux/netfilter_ipv4/ip_conntrack.h
>>2003-09-28 14:22:09.000000000 +0200
>>@@ -250,6 +250,9 @@
>> /* Call me when a conntrack is destroyed. */
>> extern void (*ip_conntrack_destroyed)(struct ip_conntrack *conntrack);
>>
>>+/* Fake conntrack entry for untracked connections */
>>+extern struct ip_conntrack ip_conntrack_untracked;
>>+
>> extern int ip_ct_no_defrag;
>> /* Returns new sk_buff, or NULL */
>> struct sk_buff *
>> ip_ct_gather_frags(struct sk_buff *skb);
>>------- end of missing hunk ---------------
> 
> 
> Thanks, I'll try that.
> 
> 
>>Those will fix compilation. No big changes has gone into 2.4/netfilter
>>since quite some time, anyway I would need to check this more in deep to
>>make sure that everything works like a charm. Re-post a new patch and
>>I'll have a look at it again.
> 
> 
> I'll see if I can give it a spin. Unfortunately the POM mechanism (mainly the
> malfunctioning runme tool) makes it very hard for us here to extract patches.

I think that has been discussed several times. Well, POM is a repository 
of testing, unstable, unfinished stuff and sometimes (like Jozsef's raw 
table) already submitted, all those contributed by people. Every patch 
applies cleanly to a _specific_ kernel version, if not-so-many changes 
went into that part of code, it will surely apply to further versions, 
else it won't apply cleanly as it's your case. In any case, keeping the 
whole POM patch tree up to date implies a lot of work.

> I need to know how it should be done correctly though. I'm a bit opposed to
> ripping out the fragment below from the kernel:
> 
> 
>>-    if ((*pskb)->nh.iph->frag_off & htons(IP_MF|IP_OFFSET)) {
>>-        *pskb = ip_ct_gather_frags(*pskb,
>>-                                   hooknum == NF_IP_PRE_ROUTING ?
>>-                                   IP_DEFRAG_CONNTRACK_IN :
>>-                                   IP_DEFRAG_CONNTRACK_OUT);
>>-        if (!*pskb)
>>-            return NF_STOLEN;
>>-    }
> 
> 
> I my opinion the part above should stay and the POM patch adapted.

yes, you have to replace the old call to ip_ct_gather_frags, which has 
just one parameter, with the new one here above.

> Thank you very much for your help. BTW, I haven't forgotten about the nfnetlink
> backport thing, it's just stalled here internally due to different priorities.

fine, let me know whenever you need it.

--
Pablo

  reply	other threads:[~2005-06-08 12:37 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-07 11:06 [PATCH] update raw patch in POM Roberto Nibali
2005-06-07 14:37 ` Roberto Nibali
2005-06-07 22:55   ` Pablo Neira
2005-06-08  8:23     ` Roberto Nibali
2005-06-08 12:37       ` Pablo Neira [this message]
2005-06-14 15:27         ` Roberto Nibali
2005-06-20  8:18           ` Roberto Nibali
2005-06-20  9:07             ` Roberto Nibali
2005-06-20 10:41             ` SOLVED (was: Re: [PATCH] update raw patch in POM) Roberto Nibali
2005-06-20 11:01               ` Jozsef Kadlecsik
2005-06-20 11:03                 ` SOLVED Roberto Nibali
2005-06-20 11:04                   ` SOLVED Jozsef Kadlecsik
2005-06-20 10:49             ` [PATCH] update raw patch in POM Jan Engelhardt
2005-06-20 11:03               ` Roberto Nibali
2005-06-21  0:34             ` Thomas Graf
2005-06-21  0:39               ` Thomas Graf
2005-06-21  6:46                 ` Roberto Nibali
2005-06-21  8:59                   ` Pablo Neira
2005-06-21  9:08                     ` Jozsef Kadlecsik
2005-06-21 11:18                   ` Thomas Graf
2005-06-21  0:51               ` Pablo Neira
2005-06-21 11:13                 ` Thomas Graf
2005-06-21 14:00                   ` Patrick McHardy
2005-06-21 14:17                     ` [PATCH] update raw patch in POM [2.4.x] Roberto Nibali
2005-06-21 14:47                       ` Patrick McHardy
2005-06-21 15:15                         ` Roberto Nibali
2005-06-21 15:32                           ` Patrick McHardy
2005-06-22  9:26                             ` Roberto Nibali
2005-06-22  7:04                           ` Jozsef Kadlecsik
2005-06-22  9:10                             ` Roberto Nibali
2005-06-22  9:19                               ` Jozsef Kadlecsik
2005-06-22  9:27                                 ` Roberto Nibali
2005-06-21 21:50                     ` [PATCH] update raw patch in POM Thomas Graf
2005-06-22  0:32                       ` Patrick McHardy
2005-06-22  0:52                         ` Thomas Graf
2005-06-22  3:24                           ` Pablo Neira
2005-06-22  3:55                             ` Patrick McHardy
2005-06-22  5:48                               ` Roberto Nibali
2005-06-22 11:39                               ` Roberto Nibali
2005-06-22 18:38                                 ` Patrick McHardy
2005-06-27  6:36                                   ` Roberto Nibali
2005-06-27 10:57                                     ` Patrick McHardy
2005-06-27 12:07                                       ` Roberto Nibali
2005-06-27 12:55                                         ` Patrick McHardy
2005-06-27 13:53                                           ` Roberto Nibali
2005-06-27 15:49                                             ` Patrick McHardy
2005-06-28  6:02                                               ` Roberto Nibali
2005-06-27  8:50                                   ` Roberto Nibali

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=42A6E685.3060408@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=ratz@tac.ch \
    /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 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.