Lines Matching refs:ip6
58 const struct ipv6hdr* const ip6 = is_ethernet ? (void*)(eth + 1) : data; in nat64() local
59 const struct tcphdr* const tcp = (void*)(ip6 + 1); in nat64()
60 const struct udphdr* const udp = (void*)(ip6 + 1); in nat64()
66 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_OK; in nat64()
72 if (ip6->version != 6) return TC_ACT_OK; in nat64()
75 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_OK; in nat64()
77 switch (ip6->nexthdr) { in nat64()
94 ip6->saddr.in6_u.u6_addr32[0], in nat64()
95 ip6->saddr.in6_u.u6_addr32[1], in nat64()
96 ip6->saddr.in6_u.u6_addr32[2], in nat64()
98 .local6 = ip6->daddr, in nat64()
114 .tos = (ip6->priority << 4) + (ip6->flow_lbl[0] >> 4), // u8 in nat64()
115 .tot_len = htons(ntohs(ip6->payload_len) + sizeof(struct iphdr)), // u16 in nat64()
118 .ttl = ip6->hop_limit, // u8 in nat64()
119 .protocol = ip6->nexthdr, // u8 in nat64()
121 .saddr = ip6->saddr.in6_u.u6_addr32[3], // u32 in nat64()