public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [Patch] gre tunnels in 2.5/6
  2003-10-29 11:31 [Patch] gre tunnels in 2.5/6 Paul Erkkila
@ 2003-10-29  6:34 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-10-29  6:34 UTC (permalink / raw)
  To: Paul Erkkila; +Cc: linux-kernel, linux-net


Your patch, as you posted it previously, was added to the kernel
already.  There is no need to retransmit and reexplain it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Patch] gre tunnels in 2.5/6
@ 2003-10-29 11:31 Paul Erkkila
  2003-10-29  6:34 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Erkkila @ 2003-10-29 11:31 UTC (permalink / raw)
  To: Linux Kernel Mailing List, linux-net

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


This small patch fixes gre tunnels using keys (and probably 
sequencing/checksums) in 2.{5,6}.
If params aren't set before ipgre_tunnel_init is called, it 
miscalculates the header size, and
stomps on itself when encapsulating packets.

I'm not sure if the later initialization can be removed, or if this is 
the *correct* patch. It does
allow tunnels to work here.

-pee

(this might be a double send, i sent it last sunday, but didn't see it 
show up in the lists)

[-- Attachment #2: gre.patch --]
[-- Type: text/plain, Size: 287 bytes --]

--- net/ipv4/ip_gre.c.orig	2003-10-26 19:44:26.000000000 +0000
+++ net/ipv4/ip_gre.c	2003-10-26 19:55:33.000000000 +0000
@@ -276,6 +276,8 @@
 	  return NULL;
 
 	dev->init = ipgre_tunnel_init;
+	nt = dev->priv;
+	nt->parms = *parms;
 
 	if (register_netdevice(dev) < 0) {
 		kfree(dev);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-29  6:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-29 11:31 [Patch] gre tunnels in 2.5/6 Paul Erkkila
2003-10-29  6:34 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox