Searched refs:addr4 (Results 1 – 5 of 5) sorted by relevance
39 struct sockaddr_in* addr4 = reinterpret_cast<sockaddr_in*>(addr); in loopback_addr4() local40 *addrlen = sizeof(*addr4); in loopback_addr4()42 addr4->sin_family = AF_INET; in loopback_addr4()43 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in loopback_addr4()44 addr4->sin_port = htons(port); in loopback_addr4()
189 struct in_addr *addr4 = (struct in_addr *) RTA_DATA(rta); in parseIfAddrMessage() local190 if (RTA_PAYLOAD(rta) < sizeof(*addr4)) { in parseIfAddrMessage()195 inet_ntop(AF_INET, addr4, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
206 in_addr addr4() const noexcept { return mData.ip.v4; } in addr4() function
1039 const struct sockaddr_in* addr4 = (const struct sockaddr_in*) addr; in _get_scope() local1040 unsigned long int na = ntohl(addr4->sin_addr.s_addr); in _get_scope()
815 auto *addr4 = reinterpret_cast<const struct sockaddr_in*>(addr->ifa_addr); in interfaceHasAddress()817 if (memcmp(&addr4->sin_addr, &want->sin_addr, sizeof(want->sin_addr)) != 0) { in interfaceHasAddress()