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

Unidentified subject!



 <yoshfuji@wide.ad.jp>  Sat Aug  3 10:48:45 2002
X-Envelope-Sender: yoshfuji@wide.ad.jp
Received: (qmail 15753 invoked from network); 3 Aug 2002 15:48:44 -0000
Received: from yue.hongo.wide.ad.jp (203.178.139.94)
  by murphy.debian.org with SMTP; 3 Aug 2002 15:48:44 -0000
Received: from localhost (localhost [127.0.0.1])
	by yue.hongo.wide.ad.jp (8.12.3+3.5Wbeta/8.12.3/Debian -4) with ESMTP id g73FmsUd016805;
	Sun, 4 Aug 2002 00:48:54 +0900
Date: Sun, 04 Aug 2002 00:48:53 +0900 (JST)
Message-Id: <20020804.004853.131599819.yoshfuji@wide.ad.jp>
To: md@Linux.IT
Cc: 82468@bugs.debian.org, control@bugs.debian.org,
   debian-ipv6@lists.debian.org
Subject: Re: fix
From: YOSHIFUJI Hideaki / =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?=
 <yoshfuji@wide.ad.jp>
In-Reply-To: <[🔎] 20020803125143.GA2612@wonderland.linux.it>
References: <[🔎] 20020803125143.GA2612@wonderland.linux.it>
Sender: "Hideaki YOSHIFUJI" <yoshfuji@cerberus.hongo.wide.ad.jp>
X-URL: http://www.yoshifuji.org/%7Ehideaki/
X-Fingerprint: 90 22 65 EB 1E CF 3A D1 0B DF 80 D8 48 07 F8 94 E0 62 0E EA
X-PGP-Key-URL: http://www.yoshifuji.org/%7Ehideaki/hideaki@yoshifuji.org.asc
X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.1 (AOI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, hits=-7.0 required=4.7 tests=IN_REP_TO,UNIFIED_PATCH version=2.01

In article <[🔎] 20020803125143.GA2612@wonderland.linux.it> (at Sat, 3 Aug 2002 14:51:43 +0200), "Marco d'Itri" <md@Linux.IT> says:

> tag 82468 patch
> thanks
> 
> This patch fixes the problems with IPv6 support in ssh and 2.2 kernels
> by disabling by default IPv6 support on these systems. It can be
> explicitly turned on with -6 on the command line like with the current
> package, but anybody serious about IPv6 will not even try a 2.2 kernel
> anyway.
> 
> If you think this solution is satisfactory please let me know when you
> plan to apply this patch.

The problem is just sockaddr_in6{} is smaller than what glibc-2.2 expects.
This patch hide the problem.   Please try this instead.

diff -ru openssh-3.4p1/canohost.c openssh-3.4p1-fix/canohost.c
--- openssh-3.4p1/canohost.c	Wed Jun 12 01:47:22 2002
+++ openssh-3.4p1-fix/canohost.c	Sun Aug  4 00:31:04 2002
@@ -64,6 +64,10 @@
 		}
 	}
 #endif
+#ifdef __linux__
+	if (from.ss_family == AF_INET6 && fromlen < sizeof(struct sockaddr_in6))
+		fromlen = sizeof(struct sockaddr_in6);
+#endif
 
 	if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop),
 	    NULL, 0, NI_NUMERICHOST) != 0)
@@ -229,6 +233,12 @@
 			return NULL;
 		}
 	}
+
+#ifdef __linux__
+	if (addr.ss_family == AF_INET6 && addrlen < sizeof(struct sockaddr_in6))
+		addrlen = sizeof(struct sockaddr_in6);
+#endif
+
 	/* Get the address in ascii. */
 	if (getnameinfo((struct sockaddr *)&addr, addrlen, ntop, sizeof(ntop),
 	    NULL, 0, flags) != 0) {
@@ -315,6 +325,12 @@
 			fatal_cleanup();
 		}
 	}
+
+#ifdef __linux__
+	if (from.ss_family == AF_INET6 && fromlen < sizeof(struct sockaddr_in6))
+		fromlen = sizeof(struct sockaddr_in6);
+#endif
+
 	/* Return port number. */
 	if (getnameinfo((struct sockaddr *)&from, fromlen, NULL, 0,
 	    strport, sizeof(strport), NI_NUMERICSERV) != 0)

--yoshfuji



Reply to: