mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ipip.c & ip_gre.c (Add Tunnel return)
@ 2001-09-25 22:26 andrew may
  2001-09-25 22:31 ` David S. Miller
  2001-09-25 22:36 ` David S. Miller
  0 siblings, 2 replies; 3+ messages in thread
From: andrew may @ 2001-09-25 22:26 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel

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;




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

end of thread, other threads:[~2001-09-25 22:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-25 22:26 [PATCH] ipip.c & ip_gre.c (Add Tunnel return) andrew may
2001-09-25 22:31 ` David S. Miller
2001-09-25 22:36 ` 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

all inboxes | Powered by JetHome®