Bug 316

Summary: ifdefs for systems without IPV6
Product: Portable OpenSSH Reporter: Dirk Meyer <dirk.meyer>
Component: Build systemAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED WORKSFORME    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: Other   
OS: FreeBSD   

Description Dirk Meyer 2002-06-28 15:52:06 AEST
--- sshconnect.c.orig   Wed Aug  8 00:29:09 2001
+++ sshconnect.c        Wed Oct  3 14:28:15 2001
@@ -577,11 +577,13 @@
                    sin_addr.s_addr) >> 24) == IN_LOOPBACKNET;
                salen = sizeof(struct sockaddr_in);
                break;
+#ifdef HAVE_STRUCT_SOCKADDR_IN6
        case AF_INET6:
                local = IN6_IS_ADDR_LOOPBACK(
                    &(((struct sockaddr_in6 *)hostaddr)->sin6_addr));
                salen = sizeof(struct sockaddr_in6);
                break;
+#endif
        default:
                local = 0;
                salen = sizeof(struct sockaddr_storage);
Comment 1 Damien Miller 2002-09-10 22:16:21 AEST
What are you trying to fix here? We already supply IPv6 compatibility in
libopenbsd-compat.a. This includes definitions for struct sockaddr_in6 and
HAVE_STRUCT_SOCKADDR_IN6
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED