Replace s6_addr16 with s6_addr since Mac OS X does not have it

This commit is contained in:
Gaurav Jain 2015-01-25 14:56:23 -08:00
parent 45c54aad0e
commit 4c5058cdc3

View File

@ -479,8 +479,8 @@ ipmi_intf_socket_connect(struct ipmi_intf * intf)
* http://www.freebsd.org/doc/en/books/developers-handbook/ipv6.html * http://www.freebsd.org/doc/en/books/developers-handbook/ipv6.html
*/ */
if (IN6_IS_ADDR_LINKLOCAL(&tmp6->sin6_addr) if (IN6_IS_ADDR_LINKLOCAL(&tmp6->sin6_addr)
&& (tmp6->sin6_addr.s6_addr16[1] != 0)) { && (tmp6->sin6_addr.s6_addr[1] != 0)) {
addr6->sin6_scope_id = ntohs(tmp6->sin6_addr.s6_addr16[1]); addr6->sin6_scope_id = ntohs(tmp6->sin6_addr.s6_addr[1]);
} }
} }