Searched refs:thoff (Results 1 – 3 of 3) sorted by relevance
/tools/testing/selftests/bpf/progs/ |
D | bpf_flow.c | 98 __u16 thoff = skb->flow_keys->thoff; in bpf_flow_dissect_get_header() local 102 if (thoff > (USHRT_MAX - hdr_size)) in bpf_flow_dissect_get_header() 105 hdr = data + thoff; in bpf_flow_dissect_get_header() 109 if (bpf_skb_load_bytes(skb, thoff, buffer, hdr_size)) in bpf_flow_dissect_get_header() 202 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */ in parse_ip_proto() 204 keys->thoff += 4; /* Step over chksum and Padding */ in parse_ip_proto() 206 keys->thoff += 4; /* Step over key */ in parse_ip_proto() 208 keys->thoff += 4; /* Step over sequence number */ in parse_ip_proto() 220 keys->thoff += sizeof(*eth); in parse_ip_proto() 296 keys->thoff += iph->ihl << 2; in PROG() [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 33 got.thoff, expected.thoff, \ 125 .thoff = ETH_HLEN + sizeof(struct iphdr), 146 .thoff = ETH_HLEN + sizeof(struct ipv6hdr), 169 .thoff = ETH_HLEN + VLAN_HLEN + sizeof(struct iphdr), 192 .thoff = ETH_HLEN + VLAN_HLEN * 2 + 217 .thoff = ETH_HLEN + sizeof(struct iphdr), 243 .thoff = ETH_HLEN + sizeof(struct iphdr), 266 .thoff = ETH_HLEN + sizeof(struct ipv6hdr) + 292 .thoff = ETH_HLEN + sizeof(struct ipv6hdr) + 315 .thoff = ETH_HLEN + sizeof(struct ipv6hdr), [all …]
|
/tools/include/uapi/linux/ |
D | bpf.h | 7101 __u16 thoff; member
|