Home
last modified time | relevance | path

Searched refs:sockaddrin_ipv6 (Results 1 – 2 of 2) sorted by relevance

/external/libpcap/rpcapd/
Ddaemon.c2840 struct sockaddr_in6 *sockaddrin_ipv6; in daemon_seraddr() local
2843 sockaddrin_ipv6 = (struct sockaddr_in6 *) sockaddrin; in daemon_seraddr()
2846 sockaddrout_ipv6->port = htons(sockaddrin_ipv6->sin6_port); in daemon_seraddr()
2847 sockaddrout_ipv6->flowinfo = htonl(sockaddrin_ipv6->sin6_flowinfo); in daemon_seraddr()
2848 memcpy(&sockaddrout_ipv6->addr, &sockaddrin_ipv6->sin6_addr, sizeof(sockaddrout_ipv6->addr)); in daemon_seraddr()
2849 sockaddrout_ipv6->scope_id = htonl(sockaddrin_ipv6->sin6_scope_id); in daemon_seraddr()
/external/libpcap/
Dpcap-rpcap.c332 struct rpcap_sockaddr_in6 *sockaddrin_ipv6; in rpcap_deseraddr() local
342 sockaddrin_ipv6 = (struct rpcap_sockaddr_in6 *) sockaddrin; in rpcap_deseraddr()
345 sockaddrout_ipv6->sin6_port = ntohs(sockaddrin_ipv6->port); in rpcap_deseraddr()
346 sockaddrout_ipv6->sin6_flowinfo = ntohl(sockaddrin_ipv6->flowinfo); in rpcap_deseraddr()
347 memcpy(&sockaddrout_ipv6->sin6_addr, &sockaddrin_ipv6->addr, sizeof(sockaddrout_ipv6->sin6_addr)); in rpcap_deseraddr()
348 sockaddrout_ipv6->sin6_scope_id = ntohl(sockaddrin_ipv6->scope_id); in rpcap_deseraddr()