Searched refs:sockaddrout_ipv6 (Results 1 – 2 of 2) sorted by relevance
2441 struct rpcap_sockaddr_in6 *sockaddrout_ipv6; in daemon_seraddr() local2444 sockaddrout_ipv6 = (struct rpcap_sockaddr_in6 *) sockaddrout; in daemon_seraddr()2445 sockaddrout_ipv6->family = htons(RPCAP_AF_INET6); in daemon_seraddr()2446 sockaddrout_ipv6->port = htons(sockaddrin_ipv6->sin6_port); in daemon_seraddr()2447 sockaddrout_ipv6->flowinfo = htonl(sockaddrin_ipv6->sin6_flowinfo); in daemon_seraddr()2448 memcpy(&sockaddrout_ipv6->addr, &sockaddrin_ipv6->sin6_addr, sizeof(sockaddrout_ipv6->addr)); in daemon_seraddr()2449 sockaddrout_ipv6->scope_id = htonl(sockaddrin_ipv6->sin6_scope_id); in daemon_seraddr()
322 struct sockaddr_in6 *sockaddrout_ipv6; in rpcap_deseraddr() local332 sockaddrout_ipv6 = (struct sockaddr_in6 *) (*sockaddrout); in rpcap_deseraddr()333 sockaddrout_ipv6->sin6_family = AF_INET6; in rpcap_deseraddr()334 sockaddrout_ipv6->sin6_port = ntohs(sockaddrin_ipv6->port); in rpcap_deseraddr()335 sockaddrout_ipv6->sin6_flowinfo = ntohl(sockaddrin_ipv6->flowinfo); in rpcap_deseraddr()336 memcpy(&sockaddrout_ipv6->sin6_addr, &sockaddrin_ipv6->addr, sizeof(sockaddrout_ipv6->sin6_addr)); in rpcap_deseraddr()337 sockaddrout_ipv6->sin6_scope_id = ntohl(sockaddrin_ipv6->scope_id); in rpcap_deseraddr()