Home
last modified time | relevance | path

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

/freebsd/contrib/libpcap/rpcapd/
H A Ddaemon.c2872 struct rpcap_sockaddr_in6 sockaddrout_ipv6; in daemon_seraddr() local
2876 sockaddrout_ipv6.family = htons(RPCAP_AF_INET6); in daemon_seraddr()
2877 sockaddrout_ipv6.port = htons(sockaddrin_ipv6->sin6_port); in daemon_seraddr()
2878 sockaddrout_ipv6.flowinfo = htonl(sockaddrin_ipv6->sin6_flowinfo); in daemon_seraddr()
2879 memcpy(&sockaddrout_ipv6.addr, &sockaddrin_ipv6->sin6_addr, sizeof(sockaddrout_ipv6.addr)); in daemon_seraddr()
2880 sockaddrout_ipv6.scope_id = htonl(sockaddrin_ipv6->sin6_scope_id); in daemon_seraddr()
2881 memcpy(sockaddrout, &sockaddrout_ipv6, sizeof(struct rpcap_sockaddr_in6)); in daemon_seraddr()
/freebsd/contrib/libpcap/
H A Dpcap-rpcap.c339 struct sockaddr_in6 *sockaddrout_ipv6; in rpcap_deseraddr() local
349 sockaddrout_ipv6 = (struct sockaddr_in6 *) (*sockaddrout); in rpcap_deseraddr()
350 sockaddrout_ipv6->sin6_family = AF_INET6; in rpcap_deseraddr()
351 sockaddrout_ipv6->sin6_port = ntohs(sockaddrin_ipv6->port); in rpcap_deseraddr()
352 sockaddrout_ipv6->sin6_flowinfo = ntohl(sockaddrin_ipv6->flowinfo); in rpcap_deseraddr()
353 memcpy(&sockaddrout_ipv6->sin6_addr, &sockaddrin_ipv6->addr, sizeof(sockaddrout_ipv6->sin6_addr)); in rpcap_deseraddr()
354 sockaddrout_ipv6->sin6_scope_id = ntohl(sockaddrin_ipv6->scope_id); in rpcap_deseraddr()