Home
last modified time | relevance | path

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

/samples/bpf/
A Dparse_varlen.c56 iph = data + nh_off; in parse_ipv4()
65 iph = data + nh_off + ihl_len; in parse_ipv4()
85 ip6h = data + nh_off; in parse_ipv6()
92 iph = data + nh_off + ihl_len; in parse_ipv6()
118 uint64_t h_proto, nh_off; in handle_ingress() local
120 nh_off = sizeof(*eth); in handle_ingress()
121 if (data + nh_off > data_end) in handle_ingress()
129 vhdr = data + nh_off; in handle_ingress()
131 if (data + nh_off > data_end) in handle_ingress()
138 vhdr = data + nh_off; in handle_ingress()
[all …]
A Dxdp_router_ipv4.bpf.c79 u64 nh_off = sizeof(*eth); in xdp_router_ipv4_prog() local
88 if (data + nh_off > data_end) in xdp_router_ipv4_prog()
96 vhdr = data + nh_off; in xdp_router_ipv4_prog()
97 nh_off += sizeof(struct vlan_hdr); in xdp_router_ipv4_prog()
98 if (data + nh_off > data_end) in xdp_router_ipv4_prog()
110 struct iphdr *iph = data + nh_off; in xdp_router_ipv4_prog()
A Dxdp_fwd_kern.c52 u64 nh_off; in xdp_fwd_flags() local
55 nh_off = sizeof(*eth); in xdp_fwd_flags()
56 if (data + nh_off > data_end) in xdp_fwd_flags()
63 iph = data + nh_off; in xdp_fwd_flags()
83 ip6h = data + nh_off; in xdp_fwd_flags()

Completed in 6 milliseconds