Home
last modified time | relevance | path

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

/linux-tools/ebpf/kernel-samples-bpf/
H A Dipfirewall_kern.c27 u64 nh_off; in xdp_ipv4_firewalling() local
33 nh_off = sizeof(*eth); in xdp_ipv4_firewalling()
34 if (data + nh_off > data_end) return XDP_PASS; in xdp_ipv4_firewalling()
41 vhdr = data + nh_off; in xdp_ipv4_firewalling()
42 nh_off += sizeof(struct vlan_hdr); in xdp_ipv4_firewalling()
43 if (data + nh_off > data_end) in xdp_ipv4_firewalling()
50 vhdr = data + nh_off; in xdp_ipv4_firewalling()
51 nh_off += sizeof(struct vlan_hdr); 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()
[all …]
H A Dl3lb_kern.c81 u64 nh_off; in xdp_ipv4_l3lb() local
89 nh_off = sizeof(*eth); in xdp_ipv4_l3lb()
90 if (data + nh_off > data_end) return XDP_PASS; in xdp_ipv4_l3lb()
97 vhdr = data + nh_off; in xdp_ipv4_l3lb()
98 nh_off += sizeof(struct vlan_hdr); in xdp_ipv4_l3lb()
99 if (data + nh_off > data_end) in xdp_ipv4_l3lb()
106 vhdr = data + nh_off; in xdp_ipv4_l3lb()
107 nh_off += sizeof(struct vlan_hdr); 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()
[all …]