[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 00036) Re: sin6_scope_id and 2.2.x kernel



In article <20001119094243O.yoshfuji@xxxxxxxxxxxxxxxxx> (at Sun, 19 Nov 2000 09:42:43 +0900), YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxxxxx> says:

> Anyway, this patch against glibc-2.2 will help you.
> (this was contributed to glibc without linux-2.2 hack.)

auch, this includes editorial error, so apply this.

you can get (update) patch at
ftp://ftp.linux-ipv6.org/pub/usagi/misc/glibc22-fix-20001119a.patch.gz

sorry for the mess.

Index: inet/getnameinfo.c
===================================================================
RCS file: /cvsroot/usagi/libc/glibc22/inet/getnameinfo.c,v
retrieving revision 1.1.1.2.4.9
retrieving revision 1.1.1.2.4.10
diff -u -r1.1.1.2.4.9 -r1.1.1.2.4.10
--- inet/getnameinfo.c	2000/11/19 00:19:13	1.1.1.2.4.9
+++ inet/getnameinfo.c	2000/11/19 00:49:49	1.1.1.2.4.10
@@ -1,4 +1,4 @@
-/* $USAGI: getnameinfo.c,v 1.1.1.2.4.9 2000/11/19 00:19:13 yoshfuji Exp $ */
+/* $USAGI: getnameinfo.c,v 1.1.1.2.4.10 2000/11/19 00:49:49 yoshfuji Exp $ */
 
 /* The Inner Net License, Version 2.00
 
@@ -317,7 +317,7 @@
 			if (IN6_IS_ADDR_LINKLOCAL (&sin6p->sin6_addr)
 			    || IN6_IS_ADDR_MC_LINKLOCAL (&sin6p->sin6_addr))
 			  {
-			    if (if_indextoname (scopeid, scopebuf) == NULL)
+			    if (if_indextoname (scopeid, scopeptr) == NULL)
 			      ++ni_numericscope;
 			    else
 			      scopelen = strlen(scopebuf);

-- 
Hideaki YOSHIFUJI @ USAGI Project  <yoshfuji@xxxxxxxxxxxxxx>
PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25