Bug 316 - ifdefs for systems without IPV6
Summary: ifdefs for systems without IPV6
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: -current
Hardware: Other FreeBSD
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-28 15:52 AEST by Dirk Meyer
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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