Home
last modified time | relevance | path

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

12

/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_sk_lookup_kern.c21 static struct bpf_sock_tuple *get_tuple(void *data, __u64 nh_off, in get_tuple()
25 struct bpf_sock_tuple *result; in get_tuple()
37 result = (struct bpf_sock_tuple *)&iph->saddr; in get_tuple()
46 result = (struct bpf_sock_tuple *)&ip6h->saddr; in get_tuple()
61 struct bpf_sock_tuple *tuple; in sk_lookup_success()
84 struct bpf_sock_tuple tuple = {}; in sk_lookup_success_simple()
96 struct bpf_sock_tuple tuple = {}; in err_use_after_free()
111 struct bpf_sock_tuple tuple = {}; in err_modify_sk_pointer()
126 struct bpf_sock_tuple tuple = {}; in err_modify_sk_or_null_pointer()
140 struct bpf_sock_tuple tuple = {}; in err_no_release()
[all …]
Dtest_bpf_nf_fail.c16 struct nf_conn *bpf_skb_ct_alloc(struct __sk_buff *, struct bpf_sock_tuple *, u32,
18 struct nf_conn *bpf_skb_ct_lookup(struct __sk_buff *, struct bpf_sock_tuple *, u32,
31 struct bpf_sock_tuple tup = {}; in alloc_release()
45 struct bpf_sock_tuple tup = {}; in insert_insert()
62 struct bpf_sock_tuple tup = {}; in lookup_insert()
76 struct bpf_sock_tuple tup = {}; in write_not_allowlisted_field()
90 struct bpf_sock_tuple tup = {}; in set_timeout_after_insert()
107 struct bpf_sock_tuple tup = {}; in set_status_after_insert()
124 struct bpf_sock_tuple tup = {}; in change_timeout_after_alloc()
138 struct bpf_sock_tuple tup = {}; in change_status_after_alloc()
Dtest_sk_assign.c42 static inline struct bpf_sock_tuple *
47 struct bpf_sock_tuple *result; in get_tuple()
68 result = (struct bpf_sock_tuple *)&iph->saddr; in get_tuple()
77 result = (struct bpf_sock_tuple *)&ip6h->saddr; in get_tuple()
79 return (struct bpf_sock_tuple *)data; in get_tuple()
90 handle_udp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_udp()
121 handle_tcp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_tcp()
162 struct bpf_sock_tuple *tuple; in bpf_sk_assign_test()
Dtest_bpf_nf.c46 struct nf_conn *bpf_xdp_ct_alloc(struct xdp_md *, struct bpf_sock_tuple *, u32,
48 struct nf_conn *bpf_xdp_ct_lookup(struct xdp_md *, struct bpf_sock_tuple *, u32,
50 struct nf_conn *bpf_skb_ct_alloc(struct __sk_buff *, struct bpf_sock_tuple *, u32,
52 struct nf_conn *bpf_skb_ct_lookup(struct __sk_buff *, struct bpf_sock_tuple *, u32,
64 nf_ct_test(struct nf_conn *(*lookup_fn)(void *, struct bpf_sock_tuple *, u32, in nf_ct_test() argument
66 struct nf_conn *(*alloc_fn)(void *, struct bpf_sock_tuple *, u32, in nf_ct_test()
71 struct bpf_sock_tuple bpf_tuple; in nf_ct_test()
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 …]
Dcgroup_skb_sk_lookup_kern.c29 static inline void set_tuple(struct bpf_sock_tuple *tuple, in set_tuple()
44 struct bpf_sock_tuple tuple; in is_allowed_peer_cg()
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.c30 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.c149 struct bpf_sock_tuple tuple = {}; in connect_v4_prog()
Dxdp_synproxy_kern.c95 struct bpf_sock_tuple *bpf_tuple,
101 struct bpf_sock_tuple *bpf_tuple,
414 struct bpf_sock_tuple tup = {}; in tcp_lookup()
/external/libbpf/src/
Dbpf_helper_defs.h13 struct bpf_sock_tuple;
2222 static struct bpf_sock *(* const bpf_sk_lookup_tcp)(void *ctx, struct bpf_sock_tuple *tuple, __u32 …
2263 static struct bpf_sock *(* const bpf_sk_lookup_udp)(void *ctx, struct bpf_sock_tuple *tuple, __u32 …
2499 static struct bpf_sock *(* const bpf_skc_lookup_tcp)(void *ctx, struct bpf_sock_tuple *tuple, __u32…
/external/v4l-utils/utils/keytable/bpf_protocols/
Dbpf_helpers.h158 struct bpf_sock_tuple *tuple,
163 struct bpf_sock_tuple *tuple,
/external/linux-kselftest/tools/testing/selftests/bpf/verifier/
Dref_tracking.c781 BPF_MOV64_IMM(BPF_REG_3, sizeof(struct bpf_sock_tuple)),
/external/bpftool/include/uapi/linux/
Dbpf.h6384 struct bpf_sock_tuple { struct
/external/libbpf/include/uapi/linux/
Dbpf.h6384 struct bpf_sock_tuple { struct
/external/v4l-utils/include/linux/
Dbpf.h6390 struct bpf_sock_tuple { struct
/external/kernel-headers/original/uapi/linux/
Dbpf.h6398 struct bpf_sock_tuple { struct
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c480 BPF_MOV64_IMM(BPF_REG_3, sizeof(struct bpf_sock_tuple)), \
/external/rust/android-crates-io/crates/libbpf-sys/src/
Dbindings.rs3420 pub struct bpf_sock_tuple { struct
3454 impl Default for bpf_sock_tuple { implementation
/external/libbpf/.github/actions/build-selftests/
Dvmlinux.h38585 struct bpf_sock_tuple { struct
39994 typedef u64 (*btf_bpf_skc_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
39996 typedef u64 (*btf_bpf_sk_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
39998 typedef u64 (*btf_bpf_sk_lookup_udp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
40000 typedef u64 (*btf_bpf_tc_skc_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
40002 typedef u64 (*btf_bpf_tc_sk_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
40004 typedef u64 (*btf_bpf_tc_sk_lookup_udp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
40008 typedef u64 (*btf_bpf_xdp_sk_lookup_udp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
40010 typedef u64 (*btf_bpf_xdp_skc_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64…
40012 typedef u64 (*btf_bpf_xdp_sk_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
[all …]
/external/bcc/libbpf-tools/powerpc/
Dvmlinux_600.h48055 struct bpf_sock_tuple { struct
48635 typedef u64 (*btf_bpf_skc_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
48637 typedef u64 (*btf_bpf_sk_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
48639 typedef u64 (*btf_bpf_sk_lookup_udp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
48643 typedef u64 (*btf_bpf_xdp_sk_lookup_udp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
48645 typedef u64 (*btf_bpf_xdp_skc_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64…
48647 typedef u64 (*btf_bpf_xdp_sk_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
48649 typedef u64 (*btf_bpf_sock_addr_skc_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple
48651 typedef u64 (*btf_bpf_sock_addr_sk_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *…
48653 typedef u64 (*btf_bpf_sock_addr_sk_lookup_udp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *…
Dvmlinux.h48055 struct bpf_sock_tuple { struct
48635 typedef u64 (*btf_bpf_skc_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
48637 typedef u64 (*btf_bpf_sk_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
48639 typedef u64 (*btf_bpf_sk_lookup_udp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
48643 typedef u64 (*btf_bpf_xdp_sk_lookup_udp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
48645 typedef u64 (*btf_bpf_xdp_skc_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64…
48647 typedef u64 (*btf_bpf_xdp_sk_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
48649 typedef u64 (*btf_bpf_sock_addr_skc_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple
48651 typedef u64 (*btf_bpf_sock_addr_sk_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *…
48653 typedef u64 (*btf_bpf_sock_addr_sk_lookup_udp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *…
/external/bcc/libbpf-tools/loongarch/
Dvmlinux_602.h85311 struct bpf_sock_tuple { struct
86164 typedef u64 (*btf_bpf_skc_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
86166 typedef u64 (*btf_bpf_sk_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
86168 typedef u64 (*btf_bpf_sk_lookup_udp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
86172 typedef u64 (*btf_bpf_xdp_sk_lookup_udp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
86174 typedef u64 (*btf_bpf_xdp_skc_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64…
86176 typedef u64 (*btf_bpf_xdp_sk_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
86178 typedef u64 (*btf_bpf_sock_addr_skc_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple
86180 typedef u64 (*btf_bpf_sock_addr_sk_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *…
86182 typedef u64 (*btf_bpf_sock_addr_sk_lookup_udp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *…
Dvmlinux.h85311 struct bpf_sock_tuple { struct
86164 typedef u64 (*btf_bpf_skc_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
86166 typedef u64 (*btf_bpf_sk_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
86168 typedef u64 (*btf_bpf_sk_lookup_udp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
86172 typedef u64 (*btf_bpf_xdp_sk_lookup_udp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
86174 typedef u64 (*btf_bpf_xdp_skc_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64…
86176 typedef u64 (*btf_bpf_xdp_sk_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
86178 typedef u64 (*btf_bpf_sock_addr_skc_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple
86180 typedef u64 (*btf_bpf_sock_addr_sk_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *…
86182 typedef u64 (*btf_bpf_sock_addr_sk_lookup_udp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *…

12