Lines Matching refs:iphdr
96 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_PIPE; in nat64()
116 __u16 tot_len = ntohs(ip6->payload_len) + sizeof(struct iphdr); // cannot overflow, see above in nat64()
139 if (tot_len < sizeof(struct iphdr)) return TC_ACT_PIPE; in nat64()
164 struct iphdr ip = { in nat64()
166 .ihl = sizeof(struct iphdr) / sizeof(__u32), // u4 in nat64()
245 try_make_writable(skb, l2_header_size + sizeof(struct iphdr)); in nat64()
253 if (data + l2_header_size + sizeof(struct iphdr) > data_end) return TC_ACT_SHOT; in nat64()
262 *(struct iphdr*)(new_eth + 1) = ip; in nat64()
265 *(struct iphdr*)data = ip; in nat64()
307 try_make_writable(skb, sizeof(struct iphdr));
311 const struct iphdr* const ip4 = data;