Searched refs:iphdr_sz (Results 1 - 1 of 1) sorted by relevance

/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_dynptr.c24 #define iphdr_sz sizeof(struct iphdr) macro
79 __u8 eth_buffer[ethhdr_sz + iphdr_sz + ethhdr_sz];
80 __u8 iph_buffer_tcp[iphdr_sz + tcphdr_sz];
81 __u8 iph_buffer_udp[iphdr_sz + udphdr_sz];
98 if (ethhdr_sz + iphdr_sz + tcphdr_sz > xdp->data_end - xdp->data)
121 if (bpf_xdp_adjust_head(xdp, 0 - (int)iphdr_sz))
138 iph->ihl = iphdr_sz >> 2;
143 iph->tot_len = bpf_htons(payload_len + iphdr_sz);
149 for (i = 0; i < iphdr_sz >> 1; i++)
177 if (ethhdr_sz + iphdr_sz
[all...]

Completed in 108 milliseconds