Searched refs:sockaddrin_ipv4 (Results 1 – 2 of 2) sorted by relevance
2425 struct sockaddr_in *sockaddrin_ipv4; in daemon_seraddr() local2428 sockaddrin_ipv4 = (struct sockaddr_in *) sockaddrin; 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()
291 struct rpcap_sockaddr_in *sockaddrin_ipv4; in rpcap_deseraddr() local301 sockaddrin_ipv4 = (struct rpcap_sockaddr_in *) sockaddrin; 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()