Searched refs:tuple_len (Results 1 – 4 of 4) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | test_sk_assign.c | 49 __u64 tuple_len; in get_tuple() local 95 size_t tuple_len; in handle_udp() local 99 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_udp() 100 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_udp() 103 sk = bpf_sk_lookup_udp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_udp() 127 size_t tuple_len; in handle_tcp() local 131 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_tcp() 132 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_tcp() 135 sk = bpf_skc_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_tcp() 167 int tuple_len; in bpf_sk_assign_test() local
|
D | test_btf_skc_cls_ingress.c | 73 unsigned int tuple_len; in handle_ip6_tcp() local 87 tuple_len = sizeof(tuple->ipv6); in handle_ip6_tcp() 89 if ((void *)tuple + tuple_len > data_end) { in handle_ip6_tcp() 94 bpf_skc = bpf_skc_lookup_tcp(skb, tuple, tuple_len, in handle_ip6_tcp()
|
D | test_sk_lookup_kern.c | 63 size_t tuple_len; in sk_lookup_success() local 73 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in sk_lookup_success() 74 sk = bpf_sk_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in sk_lookup_success()
|
D | cgroup_skb_sk_lookup_kern.c | 45 size_t tuple_len = sizeof(tuple.ipv6); in is_allowed_peer_cg() local 50 peer_sk = bpf_sk_lookup_tcp(skb, &tuple, tuple_len, in is_allowed_peer_cg()
|