Skip to contentSkip to conversation

gre tunnels in 2.5/6

PATCH In review Paul Erkkila 2 participants 2 messages Oct 29, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gre tunnels in 2.5/6

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)

ipv4/ip_gre.c renamed from ipv4/ip_gre.c.orig +2 -0
@@ -276,6 +276,8 @@
 	  return NULL;
 
 	dev->init = ipgre_tunnel_init;
+	nt = dev->priv;
+	nt->parms = *parms;
 
 	if (register_netdevice(dev) < 0) {
 		kfree(dev);
#1 lore raw

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