Home
last modified time | relevance | path

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

/external/libpcap/rpcapd/
Ddaemon.c2426 struct rpcap_sockaddr_in *sockaddrout_ipv4; in daemon_seraddr() local
2429 sockaddrout_ipv4 = (struct rpcap_sockaddr_in *) sockaddrout; in daemon_seraddr()
2430 sockaddrout_ipv4->family = htons(RPCAP_AF_INET); in daemon_seraddr()
2431 sockaddrout_ipv4->port = htons(sockaddrin_ipv4->sin_port); in daemon_seraddr()
2432 memcpy(&sockaddrout_ipv4->addr, &sockaddrin_ipv4->sin_addr, sizeof(sockaddrout_ipv4->addr)); in daemon_seraddr()
2433 memset(sockaddrout_ipv4->zero, 0, sizeof(sockaddrout_ipv4->zero)); in daemon_seraddr()
/external/libpcap/
Dpcap-rpcap.c292 struct sockaddr_in *sockaddrout_ipv4; in rpcap_deseraddr() local
302 sockaddrout_ipv4 = (struct sockaddr_in *) (*sockaddrout); in rpcap_deseraddr()
303 sockaddrout_ipv4->sin_family = AF_INET; in rpcap_deseraddr()
304 sockaddrout_ipv4->sin_port = ntohs(sockaddrin_ipv4->port); in rpcap_deseraddr()
305 memcpy(&sockaddrout_ipv4->sin_addr, &sockaddrin_ipv4->addr, sizeof(sockaddrout_ipv4->sin_addr)); in rpcap_deseraddr()
306 memset(sockaddrout_ipv4->sin_zero, 0, sizeof(sockaddrout_ipv4->sin_zero)); in rpcap_deseraddr()