Home
last modified time | relevance | path

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

/system/extras/multinetwork/
Dcommon.cpp123 const bool is_ipv6 = (sa->sa_family == AF_INET6); in inetSockaddrToString() local
126 getnameinfo(sa, is_ipv6 ? sizeof(sockaddr_in6) : sizeof(sockaddr_in), in inetSockaddrToString()
134 return (is_ipv6 ? "[" : "") + std::string(host) + (is_ipv6 ? "]:" : ":") + std::string(port); in inetSockaddrToString()
/system/netd/bpf_progs/
Dnetd.c113 bool is_ipv6 = (skb->protocol == htons(ETH_P_IPV6)); \
114 int ip_overhead = (is_ipv6 ? sizeof(struct ipv6hdr) : sizeof(struct iphdr)); \