Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
A Dtest_tc_neigh_fib.c29 struct iphdr *ip4h; in fill_fib_params_v4() local
34 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in fill_fib_params_v4()
35 if ((void *)(ip4h + 1) > data_end) in fill_fib_params_v4()
39 fib_params->tos = ip4h->tos; in fill_fib_params_v4()
40 fib_params->l4_protocol = ip4h->protocol; in fill_fib_params_v4()
43 fib_params->tot_len = bpf_ntohs(ip4h->tot_len); in fill_fib_params_v4()
44 fib_params->ipv4_src = ip4h->saddr; in fill_fib_params_v4()
45 fib_params->ipv4_dst = ip4h->daddr; in fill_fib_params_v4()
A Dtest_btf_skc_cls_ingress.c73 struct iphdr *ip4h; in handle_ip_tcp() local
81 ip4h = (struct iphdr *)(eth + 1); in handle_ip_tcp()
82 if (ip4h + 1 > data_end) in handle_ip_tcp()
84 if (ip4h->protocol != IPPROTO_TCP) in handle_ip_tcp()
86 th = (struct tcphdr *)(ip4h + 1); in handle_ip_tcp()
93 tuple = (struct bpf_sock_tuple *)&ip4h->saddr; in handle_ip_tcp()
94 iphdr = ip4h; in handle_ip_tcp()
95 iphdr_size = sizeof(*ip4h); in handle_ip_tcp()
A Dtest_tc_neigh.c44 struct iphdr *ip4h; in is_remote_ep_v4() local
49 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v4()
50 if ((void *)(ip4h + 1) > data_end) in is_remote_ep_v4()
53 return ip4h->daddr == addr; in is_remote_ep_v4()

Completed in 5 milliseconds