[Bug 1491] New: no field sin6_scope_id on AIX 4.3.3

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Jul 24 22:05:45 EST 2008


https://bugzilla.mindrot.org/show_bug.cgi?id=1491

           Summary: no field sin6_scope_id on AIX 4.3.3
    Classification: Unclassified
           Product: Portable OpenSSH
           Version: 5.1p1
          Platform: PPC
        OS/Version: AIX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: David.Leonard at quest.com


On AIX 4.3.3, there is no sin6_scope_id field in struct sockaddr_in6. 

Here is my hideous workaround.

--- openssh/addrmatch.c
+++ openssh/addrmatch.c
@@ -97,7 +97,11 @@
             return -1;
         xa->af = AF_INET6;
         memcpy(&xa->v6, &in6->sin6_addr, sizeof(xa->v6));
+#ifdef _AIX
+        xa->scope_id = 0;
+#else
         xa->scope_id = in6->sin6_scope_id;
+#endif
         break;
     default:
         return -1;

And, yes, I am painfully aware that AIX 4.3.3 is hideously out of date
:(

(see also bug 401)

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list