Searched refs:ip4h (Results 1 – 3 of 3) sorted by relevance
29 struct iphdr *ip4h; in fill_fib_params_v4() local34 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()
73 struct iphdr *ip4h; in handle_ip_tcp() local81 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()
44 struct iphdr *ip4h; in is_remote_ep_v4() local49 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