public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Erkkila <pee@erkkila.org>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-net@vger.kernel.org
Subject: [Patch] gre tunnels in 2.5/6
Date: Wed, 29 Oct 2003 11:31:31 +0000	[thread overview]
Message-ID: <3F9FA513.6090907@erkkila.org> (raw)

[-- 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);

             reply	other threads:[~2003-10-29  2:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-29 11:31 Paul Erkkila [this message]
2003-10-29  6:34 ` [Patch] gre tunnels in 2.5/6 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=3F9FA513.6090907@erkkila.org \
    --to=pee@erkkila.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.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