mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Replace s6_addr16 with s6_addr since Mac OS X does not have it
This commit is contained in:
parent
45c54aad0e
commit
4c5058cdc3
@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user