lkml.org 
[lkml]   [2001]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: [PATCH] Bug in ipip.c SIOCDELTUNNEL
From
   From: Taral <taral@taral.net>
Date: Sat, 22 Sep 2001 02:42:41 -0500

Patch is attached. Basically we were always removing "tunl0" even if a
different tunnel was specified.

A bug in one tunnel driver is likely to be in all the
others :-) I've taken care of that and the patch I am
using is below:

--- net/ipv4/ipip.c.~1~ Mon Sep 17 17:36:07 2001
+++ net/ipv4/ipip.c Mon Sep 24 22:09:53 2001
@@ -1,7 +1,7 @@
/*
* Linux NET3: IP/IP protocol decoder.
*
- * Version: $Id: ipip.c,v 1.47 2001/09/18 00:36:07 davem Exp $
+ * Version: $Id: ipip.c,v 1.48 2001/09/25 05:09:53 davem Exp $
*
* Authors:
* Sam Lantinga (slouken@cs.ucdavis.edu) 02/01/95
@@ -758,6 +758,7 @@
err = -EPERM;
if (t == &ipip_fb_tunnel)
goto done;
+ dev = t->dev;
}
err = unregister_netdevice(dev);
break;
--- net/ipv4/ip_gre.c.~1~ Wed May 16 22:27:58 2001
+++ net/ipv4/ip_gre.c Mon Sep 24 22:08:43 2001
@@ -1011,6 +1011,7 @@
err = -EPERM;
if (t == &ipgre_fb_tunnel)
goto done;
+ dev = t->dev;
}
err = unregister_netdevice(dev);
break;
--- net/ipv6/sit.c.~1~ Fri Aug 31 17:31:50 2001
+++ net/ipv6/sit.c Mon Sep 24 22:09:53 2001
@@ -6,7 +6,7 @@
* Pedro Roque <roque@di.fc.ul.pt>
* Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
*
- * $Id: sit.c,v 1.52 2001/09/01 00:31:50 davem Exp $
+ * $Id: sit.c,v 1.53 2001/09/25 05:09:53 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -712,6 +712,7 @@
err = -EPERM;
if (t == &ipip6_fb_tunnel)
goto done;
+ dev = t->dev;
}
err = unregister_netdevice(dev);
break;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.045 / U:0.392 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site