* [PATCH] IPv6: Garbage scope-id in MSG_ERRQUEUE message
@ 2002-10-26 2:28 YOSHIFUJI Hideaki / 吉藤英明
2002-10-28 12:21 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2002-10-26 2:28 UTC (permalink / raw)
To: linux-kernel, netdev; +Cc: usagi
Hi,
This patch clears sin6_scope_id in sockaddr_in6 in MSG_ERRQUEUE
message. Without this we would see garbage there.
This patch is against linux-2.4.20-pre11.
Thanks in advance.
-------------------------------------------------------------------
Patch-Name: Garbage scope-id in MSG_ERRQUEUE message
Patch-Id: FIX_2_4_20_pre11_ICMP_ERROR-20021026
Patch-Author: YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
Credit: YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
-------------------------------------------------------------------
Index: net/ipv6/datagram.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux24/net/ipv6/datagram.c,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.22.1
diff -u -r1.1.1.2 -r1.1.1.2.22.1
--- net/ipv6/datagram.c 9 Oct 2002 01:35:53 -0000 1.1.1.2
+++ net/ipv6/datagram.c 25 Oct 2002 16:55:56 -0000 1.1.1.2.22.1
@@ -158,6 +158,7 @@
if (serr->ee.ee_origin != SO_EE_ORIGIN_LOCAL) {
sin->sin6_family = AF_INET6;
sin->sin6_flowinfo = 0;
+ sin->sin6_scope_id = 0;
if (serr->ee.ee_origin == SO_EE_ORIGIN_ICMP6) {
memcpy(&sin->sin6_addr, &skb->nh.ipv6h->saddr, 16);
if (sk->net_pinfo.af_inet6.rxopt.all)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] IPv6: Garbage scope-id in MSG_ERRQUEUE message
2002-10-26 2:28 [PATCH] IPv6: Garbage scope-id in MSG_ERRQUEUE message YOSHIFUJI Hideaki / 吉藤英明
@ 2002-10-28 12:21 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2002-10-28 12:21 UTC (permalink / raw)
To: YOSHIFUJI Hideaki / 吉藤英明
Cc: linux-kernel, netdev, usagi
On Fri, 2002-10-25 at 19:28, YOSHIFUJI Hideaki / 吉藤英明 wrote:
> This patch clears sin6_scope_id in sockaddr_in6 in MSG_ERRQUEUE
> message. Without this we would see garbage there.
I've applied this patch, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-28 12:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-26 2:28 [PATCH] IPv6: Garbage scope-id in MSG_ERRQUEUE message YOSHIFUJI Hideaki / 吉藤英明
2002-10-28 12:21 ` 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;
as well as URLs for NNTP newsgroup(s).