Lines Matching refs:v6
181 void ClatdController::makeChecksumNeutral(in6_addr* v6, const in_addr v4, in makeChecksumNeutral() argument
184 arc4random_buf(&v6->s6_addr[8], 8); in makeChecksumNeutral()
192 uint16_t middlebytes = (v6->s6_addr[11] << 8) + v6->s6_addr[12]; in makeChecksumNeutral()
196 ip_checksum_add(0, v6, sizeof(*v6)); in makeChecksumNeutral()
199 v6->s6_addr[11] = delta >> 8; in makeChecksumNeutral()
200 v6->s6_addr[12] = delta & 0xff; in makeChecksumNeutral()
205 const in6_addr& nat64Prefix, in6_addr* v6) { in generateIpv6Address() argument
223 *v6 = sin6.sin6_addr; in generateIpv6Address()
225 if (IN6_IS_ADDR_UNSPECIFIED(v6) || IN6_IS_ADDR_LOOPBACK(v6) || IN6_IS_ADDR_LINKLOCAL(v6) || in generateIpv6Address()
226 IN6_IS_ADDR_SITELOCAL(v6) || IN6_IS_ADDR_ULA(v6)) { in generateIpv6Address()
230 makeChecksumNeutral(v6, v4, nat64Prefix); in generateIpv6Address()
270 .local6 = tracker.v6, in maybeStartBpf()
345 .local6 = tracker.v6, in maybeStopBpf()
402 if (generateIpv6Address(iface, v4, pfx96, &v6)) { in init()
406 if (!inet_ntop(AF_INET6, &v6, v6Str, sizeof(v6Str))) return -errno; in init()