Home
last modified time | relevance | path

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

/freebsd/contrib/libpcap/rpcapd/
H A Ddaemon.c2856 struct rpcap_sockaddr_in sockaddrout_ipv4; in daemon_seraddr() local
2860 sockaddrout_ipv4.family = htons(RPCAP_AF_INET); in daemon_seraddr()
2861 sockaddrout_ipv4.port = htons(sockaddrin_ipv4->sin_port); in daemon_seraddr()
2862 memcpy(&sockaddrout_ipv4.addr, &sockaddrin_ipv4->sin_addr, sizeof(sockaddrout_ipv4.addr)); in daemon_seraddr()
2863 memset(sockaddrout_ipv4.zero, 0, sizeof(sockaddrout_ipv4.zero)); in daemon_seraddr()
2864 memcpy(sockaddrout, &sockaddrout_ipv4, sizeof(struct rpcap_sockaddr_in)); in daemon_seraddr()
/freebsd/contrib/libpcap/
H A Dpcap-rpcap.c309 struct sockaddr_in *sockaddrout_ipv4; in rpcap_deseraddr() local
319 sockaddrout_ipv4 = (struct sockaddr_in *) (*sockaddrout); in rpcap_deseraddr()
320 sockaddrout_ipv4->sin_family = AF_INET; in rpcap_deseraddr()
321 sockaddrout_ipv4->sin_port = ntohs(sockaddrin_ipv4->port); in rpcap_deseraddr()
322 memcpy(&sockaddrout_ipv4->sin_addr, &sockaddrin_ipv4->addr, sizeof(sockaddrout_ipv4->sin_addr)); in rpcap_deseraddr()
323 memset(sockaddrout_ipv4->sin_zero, 0, sizeof(sockaddrout_ipv4->sin_zero)); in rpcap_deseraddr()