Searched refs:sockaddrout_ipv4 (Results 1 – 2 of 2) sorted by relevance
2426 struct rpcap_sockaddr_in *sockaddrout_ipv4; in daemon_seraddr() local2429 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()
292 struct sockaddr_in *sockaddrout_ipv4; in rpcap_deseraddr() local302 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()