Home
last modified time | relevance | path

Searched refs:bpf_sock_tuple (Results 1 – 11 of 11) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dtest_sk_lookup_kern.c22 static struct bpf_sock_tuple *get_tuple(void *data, __u64 nh_off, in get_tuple()
26 struct bpf_sock_tuple *result; in get_tuple()
38 result = (struct bpf_sock_tuple *)&iph->saddr; in get_tuple()
47 result = (struct bpf_sock_tuple *)&ip6h->saddr; in get_tuple()
62 struct bpf_sock_tuple *tuple; in bpf_sk_lookup_test0()
85 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_test1()
97 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_uaf()
112 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_modptr()
127 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_modptr_or_null()
141 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_test2()
[all …]
Dtest_sk_assign.c54 static inline struct bpf_sock_tuple *
59 struct bpf_sock_tuple *result; in get_tuple()
80 result = (struct bpf_sock_tuple *)&iph->saddr; in get_tuple()
89 result = (struct bpf_sock_tuple *)&ip6h->saddr; in get_tuple()
91 return (struct bpf_sock_tuple *)data; in get_tuple()
102 handle_udp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_udp()
104 struct bpf_sock_tuple ln = {0}; in handle_udp()
134 handle_tcp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_tcp()
136 struct bpf_sock_tuple ln = {0}; in handle_tcp()
176 struct bpf_sock_tuple *tuple, ln = {0}; in bpf_sk_assign_test()
Dcgroup_skb_sk_lookup_kern.c30 static inline void set_tuple(struct bpf_sock_tuple *tuple, in set_tuple()
45 struct bpf_sock_tuple tuple; in is_allowed_peer_cg()
Dtest_cls_redirect.c91 offsetofend(struct bpf_sock_tuple, ipv4.dport) -
92 offsetof(struct bpf_sock_tuple, ipv4.sport) - 1,
96 offsetofend(struct bpf_sock_tuple, ipv6.dport) -
97 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1,
618 static INLINING uint64_t fill_tuple(struct bpf_sock_tuple *tuple, void *iph, in fill_tuple()
648 struct bpf_sock_tuple *tuple, uint64_t tuplen, in classify_tcp()
681 struct bpf_sock_tuple *tuple, uint64_t tuplen) in classify_udp()
699 struct bpf_sock_tuple *tuple, uint64_t tuplen, in classify_icmp()
749 struct bpf_sock_tuple tuple; in process_icmpv4()
801 struct bpf_sock_tuple tuple; in process_icmpv6()
[all …]
Dtest_btf_skc_cls_ingress.c71 struct bpf_sock_tuple *tuple; in handle_ip6_tcp()
88 tuple = (struct bpf_sock_tuple *)&ip6h->saddr; in handle_ip6_tcp()
Dconnect6_prog.c32 struct bpf_sock_tuple tuple = {}; in connect_v6_prog()
Dtest_tcp_check_syncookie_kern.c48 struct bpf_sock_tuple tup; in check_syncookie()
Dconnect4_prog.c150 struct bpf_sock_tuple tuple = {}; in connect_v4_prog()
/tools/testing/selftests/bpf/verifier/
Dref_tracking.c642 BPF_MOV64_IMM(BPF_REG_3, sizeof(struct bpf_sock_tuple)),
/tools/include/uapi/linux/
Dbpf.h5422 struct bpf_sock_tuple { struct
/tools/testing/selftests/bpf/
Dtest_verifier.c396 BPF_MOV64_IMM(BPF_REG_3, sizeof(struct bpf_sock_tuple)), \