* [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
* Re: [PATCH] ipip.c & ip_gre.c (Add Tunnel return)
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
1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2001-09-25 22:31 UTC (permalink / raw)
To: acmay; +Cc: linux-kernel, kuznet
From: andrew may <acmay@acmay.homeip.net>
Date: 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.
Hmmm, net/ipv6/sit.c already has the version you propose. :-)))
Which one is correct?
Alexey, what do you think?
Franks a lot,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ipip.c & ip_gre.c (Add Tunnel return)
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
1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2001-09-25 22:36 UTC (permalink / raw)
To: acmay; +Cc: linux-kernel, kuznet
From: "David S. Miller" <davem@redhat.com>
Date: Tue, 25 Sep 2001 15:31:19 -0700 (PDT)
[ replying to self...]
Hmmm, net/ipv6/sit.c already has the version you propose. :-)))
Which one is correct?
Alexey, what do you think?
Nevermind, it is clear that Andrew's patch is correct.
I've applied it, thanks.
Franks a lot,
David S. Miller
davem@redhat.com
^ 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®