Home
last modified time | relevance | path

Searched refs:ihl_len (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.1/samples/bpf/
Dparse_varlen.c54 uint64_t ihl_len; in parse_ipv4() local
62 ihl_len = iph->ihl * 4; in parse_ipv4()
65 iph = data + nh_off + ihl_len; in parse_ipv4()
68 ihl_len += iph->ihl * 4; in parse_ipv4()
72 return tcp(data, nh_off + ihl_len, data_end); in parse_ipv4()
74 return udp(data, nh_off + ihl_len, data_end); in parse_ipv4()
82 uint64_t ihl_len = sizeof(struct ipv6hdr); in parse_ipv6() local
92 iph = data + nh_off + ihl_len; in parse_ipv6()
95 ihl_len += iph->ihl * 4; in parse_ipv6()
98 ip6h = data + nh_off + ihl_len; in parse_ipv6()
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dtest_pkt_access.c105 __u64 ihl_len; in test_pkt_access() local
115 ihl_len = iph->ihl * 4; in test_pkt_access()
117 tcp = (struct tcphdr *)((void *)(iph) + ihl_len); in test_pkt_access()
123 ihl_len = sizeof(*ip6h); in test_pkt_access()
125 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); in test_pkt_access()
Dtest_sk_lookup_kern.c27 __u64 ihl_len; in get_tuple() local
34 ihl_len = iph->ihl * 4; in get_tuple()
43 ihl_len = sizeof(*ip6h); in get_tuple()
49 if (data + nh_off + ihl_len > data_end || proto != IPPROTO_TCP) in get_tuple()
Dtest_sk_assign.c51 __u64 ihl_len; in get_tuple() local
65 ihl_len = iph->ihl * 4; in get_tuple()
74 ihl_len = sizeof(*ip6h); in get_tuple()