Home
last modified time | relevance | path

Searched refs:data_end (Results 1 – 2 of 2) sorted by relevance

/linux-tools/ebpf/kernel-samples-bpf/
H A Dipfirewall_kern.c22 void *data_end = (void *)(long)ctx->data_end; in xdp_ipv4_firewalling() local
34 if (data + nh_off > data_end) return XDP_PASS; in xdp_ipv4_firewalling()
43 if (data + nh_off > data_end) in xdp_ipv4_firewalling()
52 if (data + nh_off > data_end) in xdp_ipv4_firewalling()
57 if (data + nh_off + sizeof(*iph) > data_end) return XDP_PASS; in xdp_ipv4_firewalling()
H A Dl3lb_kern.c76 void *data_end = (void *)(long)ctx->data_end; in xdp_ipv4_l3lb() local
90 if (data + nh_off > data_end) return XDP_PASS; in xdp_ipv4_l3lb()
99 if (data + nh_off > data_end) in xdp_ipv4_l3lb()
108 if (data + nh_off > data_end) in xdp_ipv4_l3lb()
113 if (data + nh_off + sizeof(*iph) > data_end) return XDP_PASS; in xdp_ipv4_l3lb()