Patch?: linux-2.5.45/net/ipv4/netfilter dst.pmtu compilation fixes

Patch?: linux-2.5.45/net/ipv4/netfilter dst.pmtu compilation fixes

Post by Loic Jaqueme » Sat, 02 Nov 2002 16:50:10



also see
http://marc.theaimsgroup.com/?l=linux-kernel&m=103614599321384&w=1

linux-2.5.45 appears to have replaced dst_entry.pmtu with
dst_entry.metrics[RTAX_PMTU] and created a helper function
dst_pmtu(struct dst_entry*), presumably to simplify future changes
like this one.   Now the
files compile.  That is as much as I have tested.

 I am not currently familiar with this code, so I could easily
have misunderstood something in this patch.

--- linux-2.5.45.orig/net/ipv4/netfilter/ipt_TCPMSS.c   2002-10-31
01:42:56.000000000 +0100
+++ linux-2.5.45/net/ipv4/netfilter/ipt_TCPMSS.c        2002-11-01

                        return NF_DROP; /* or IPT_CONTINUE ?? */
                }

-               if((*pskb)->dst->pmtu <= (sizeof(struct iphdr) +
sizeof(struct tcphdr))) {
+               if( dst_pmtu( (*pskb)->dst ) <= (sizeof(struct iphdr) +
sizeof(struct tcphdr))) {
                        if (net_ratelimit())
                                printk(KERN_ERR
-                                       "ipt_tcpmss_target: unknown or
invalid path-MTU (%d)\n", (*pskb)->dst->pmtu);
+                                       "ipt_tcpmss_target: unknown or
invalid path-MTU (%d)\n", dst_pmtu( (*pskb)->dst ) );
                        return NF_DROP; /* or IPT_CONTINUE ?? */
                }

-               newmss = (*pskb)->dst->pmtu - sizeof(struct iphdr) -
sizeof(struct tcphdr);
+               newmss = dst_pmtu( (*pskb)->dst ) - sizeof(struct iphdr)
- sizeof(struct tcphdr);
        } else
                newmss = tcpmssinfo->mss;

--
+----------------------------------------------+
|Jaquemet Loic                                 |
|Intern in WesternGeco, Schlumberger in Gatwick|
|Phone: 44-(0)1293-55-6876                     |
|Eleve ingenieur en informatique FIIFO, ORSAY  |
+----------------------------------------------+
http://sourceforge.net/projects/ffss/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Patch?: linux-2.5.45/net/ipv4/netfilter dst.pmtu compilation fixes

Post by Harald Welt » Sun, 03 Nov 2002 16:30:18



> also see
> http://marc.theaimsgroup.com/?l=linux-kernel&m=103614599321384&w=1

> linux-2.5.45 appears to have replaced dst_entry.pmtu with
> dst_entry.metrics[RTAX_PMTU] and created a helper function
> dst_pmtu(struct dst_entry*), presumably to simplify future changes
> like this one.   Now the
> files compile.  That is as much as I have tested.

>  I am not currently familiar with this code, so I could easily
> have misunderstood something in this patch.

I will forward your patch for kernel inclusion.
--
Live long and prosper

============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
 as I'm the dictator."  --  George W. Bush Dec 18, 2000

  application_pgp-signature_part
< 1K Download

 
 
 

1. Patch?: linux-2.5.45/net/ipv4/ dst.pmtu compilation fixes

        linux-2.5.45 appears to have replaced dst_entry.pmtu with
dst_entry.metrics[RTAX_PMTU] and created a helper function
dst_pmtu(struct dst_entry*), presumably to simplify future changes
like this one.  Here are patches to places in three files that were
apparently missed, preventing the files from compiling.  Now the
files compile.  That is as much as I have tested.

        I am not currently familiar with this code, so I could easily
have misunderstood something in my patch.

        I would appreciate it if the appropriate maintainer(s) would
examine this patch and forward it to Linus it seems OK.  If there is
something else I should do, please let me know.

--
Adam J. Richter     __     ______________   575 Oroville Road

+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

  pmtu.diff
1K Download

2. Driver for RM ethernet card

3. Patch?: linux-2.5.45/net - __secpath_destroy made net depend on ipv4

4. iMac DV: YDL 2.3 or Mandrake 8.2 best for AirPort?

5. linux-2.5.45_delay-cleanup_A0.patch

6. Help: Display not showing entire desktop under some resolutions

7. Patch: linux-2.5.7-pre1/net/ipv4/ipmr.c did not compile

8. Patch Problem

9. fix for /usr/src/linux/net/ipv4/ip_default_ttl usage

10. ipv4: move proc stuff from net/ipv4/af_inet.c to net/ipv4/proc.c

11. Patch: linux-2.5.2-pre8/drivers/ieee1394 kdev_t compilation fixes

12. Patch?: linux-2.5.6-pre1/drivers/scsi/pci2000.c compilation fixes + pci device ID table

13. [PATCH] Linux-2.5.45-mcp3 - right one