ossp-pkg/l2/l2_ch_socket.c 1.25 -> 1.26
--- l2_ch_socket.c 2001/09/12 09:42:34 1.25
+++ l2_ch_socket.c 2001/09/13 12:19:45 1.26
@@ -222,8 +222,8 @@
if (pHostentry->h_addrtype == AF_INET6) {
IP6Sockaddr.sin6_family = AF_INET6;
IP6Sockaddr.sin6_port = htons(cfg->iPort);
- memcpy(&IP6Sockaddr.sin6_addr.__u6_addr, pHostentry->h_addr_list[0],\
- sizeof(IP6Sockaddr.sin6_addr.__u6_addr));
+ memcpy(&IP6Sockaddr.sin6_addr.s6_addr, pHostentry->h_addr_list[0],\
+ sizeof(IP6Sockaddr.sin6_addr.s6_addr));
}
else
return L2_ERR_USE; /* what?? we specify IPv6 when it is not? */
|
|