Searched refs:tuple_len (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sk_assign.c | 106 size_t tuple_len; in handle_udp() local 110 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_udp() 111 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_udp() 114 sk = bpf_sk_lookup_udp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_udp() 137 size_t tuple_len; in handle_tcp() local 141 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_tcp() 142 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_tcp() 145 sk = bpf_skc_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_tcp()
|
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_bpf.c | 62 u32 tuple_len, u8 protonum, u8 dir, in bpf_nf_ct_tuple_parse() argument 77 switch (tuple_len) { in bpf_nf_ct_tuple_parse() 103 u32 tuple_len, struct bpf_ct_opts *opts, u32 opts_len, in __bpf_nf_ct_alloc_entry() argument 117 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry() 122 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry() 150 u32 tuple_len, struct bpf_ct_opts *opts, in __bpf_nf_ct_lookup() argument 166 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_lookup()
|