Lines Matching refs:v6
94 void makeChecksumNeutral(in6_addr* const v6, const in_addr v4, const in6_addr& nat64Prefix) { in makeChecksumNeutral() argument
96 arc4random_buf(&v6->s6_addr[8], 8); in makeChecksumNeutral()
104 uint16_t middlebytes = (v6->s6_addr[11] << 8) + v6->s6_addr[12]; in makeChecksumNeutral()
108 ip_checksum_add(0, v6, sizeof(*v6)); in makeChecksumNeutral()
111 v6->s6_addr[11] = delta >> 8; in makeChecksumNeutral()
112 v6->s6_addr[12] = delta & 0xff; in makeChecksumNeutral()
117 in6_addr* const v6, const uint32_t mark) { in generateIpv6Address() argument
149 *v6 = sin6.sin6_addr; in generateIpv6Address()
151 if (IN6_IS_ADDR_UNSPECIFIED(v6) || IN6_IS_ADDR_LOOPBACK(v6) || IN6_IS_ADDR_LINKLOCAL(v6) || in generateIpv6Address()
152 IN6_IS_ADDR_SITELOCAL(v6) || IN6_IS_ADDR_ULA(v6)) { in generateIpv6Address()
157 makeChecksumNeutral(v6, v4, nat64Prefix); in generateIpv6Address()