[PATCH] ipip.c & ip_gre.c (Add Tunnel return)

andrew may (acmay@acmay.homeip.net)
Tue, 25 Sep 2001 15:26:28 -0700


I think the tunnel drivers should return the name of the
device the tunnel add created. Currently the tunnel_lookup
functions copy the name into the stack var in the ioctl
function but the ioctl copies the parm from the tunnel
device.

--- linux.org/net/ipv4/ip_gre.c Tue Sep 25 02:27:58 2001
+++ linux/net/ipv4/ip_gre.c Tue Sep 25 02:34:03 2001
@@ -284,7 +284,7 @@
}
if (i==100)
goto failed;
- memcpy(parms->name, dev->name, IFNAMSIZ);
+ memcpy(nt->parms.name, dev->name, IFNAMSIZ);
}
if (register_netdevice(dev) < 0)
goto failed;
diff -ur linux.org/net/ipv4/ipip.c linux/net/ipv4/ipip.c
--- linux.org/net/ipv4/ipip.c Tue Sep 25 02:27:52 2001
+++ linux/net/ipv4/ipip.c Tue Sep 25 02:32:59 2001
@@ -255,7 +255,7 @@
}
if (i==100)
goto failed;
- memcpy(parms->name, dev->name, IFNAMSIZ);
+ memcpy(nt->parms.name, dev->name, IFNAMSIZ);
}
if (register_netdevice(dev) < 0)
goto failed;

-
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/