Searched refs:tuple_len (Results 1 – 7 of 7) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | test_sk_assign.c | 60 __u64 tuple_len; in get_tuple() local 105 size_t tuple_len; in handle_udp() local 109 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_udp() 110 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_udp() 113 sk = bpf_sk_lookup_udp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_udp() 136 size_t tuple_len; in handle_tcp() local 140 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_tcp() 141 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_tcp() 144 sk = bpf_skc_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_tcp() 176 int tuple_len; in bpf_sk_assign_test() local
|
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()
|
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()
|
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()
|
/linux-6.3-rc2/net/netfilter/ |
A D | nf_conntrack_bpf.c | 61 u32 tuple_len, u8 protonum, u8 dir, in bpf_nf_ct_tuple_parse() argument 76 switch (tuple_len) { in bpf_nf_ct_tuple_parse() 102 u32 tuple_len, struct bpf_ct_opts *opts, u32 opts_len, in __bpf_nf_ct_alloc_entry() argument 116 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry() 121 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry() 149 u32 tuple_len, struct bpf_ct_opts *opts, in __bpf_nf_ct_lookup() argument 165 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_lookup()
|
/linux-6.3-rc2/drivers/bus/fsl-mc/ |
A D | fsl-mc-bus.c | 1011 int tuple_len; in parse_mc_ranges() local 1039 tuple_len = range_tuple_cell_count * sizeof(__be32); in parse_mc_ranges() 1040 if (ranges_len % tuple_len != 0) { in parse_mc_ranges() 1045 return ranges_len / tuple_len; in parse_mc_ranges()
|
/linux-6.3-rc2/drivers/bus/ |
A D | mvebu-mbus.c | 1189 int ranges_len, tuple_len; in mbus_parse_ranges() local 1209 tuple_len = (*cell_count) * sizeof(__be32); in mbus_parse_ranges() 1211 if (ranges_len % tuple_len) { in mbus_parse_ranges()
|
Completed in 14 milliseconds