Home
last modified time | relevance | path

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

/Linux-v6.1/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()
/Linux-v6.1/net/netfilter/
Dnf_conntrack_bpf.c60 static int bpf_nf_ct_tuple_parse(struct bpf_sock_tuple *bpf_tuple, in bpf_nf_ct_tuple_parse()
101 __bpf_nf_ct_alloc_entry(struct net *net, struct bpf_sock_tuple *bpf_tuple, in __bpf_nf_ct_alloc_entry()
148 struct bpf_sock_tuple *bpf_tuple, in __bpf_nf_ct_lookup()
256 bpf_xdp_ct_alloc(struct xdp_md *xdp_ctx, struct bpf_sock_tuple *bpf_tuple, in bpf_xdp_ct_alloc()
290 bpf_xdp_ct_lookup(struct xdp_md *xdp_ctx, struct bpf_sock_tuple *bpf_tuple, in bpf_xdp_ct_lookup()
323 bpf_skb_ct_alloc(struct __sk_buff *skb_ctx, struct bpf_sock_tuple *bpf_tuple, in bpf_skb_ct_alloc()
358 bpf_skb_ct_lookup(struct __sk_buff *skb_ctx, struct bpf_sock_tuple *bpf_tuple, in bpf_skb_ct_lookup()
/Linux-v6.1/net/core/
Dfilter.c6412 static struct sock *sk_lookup(struct net *net, struct bpf_sock_tuple *tuple, in sk_lookup()
6462 __bpf_skc_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, in __bpf_skc_lookup()
6502 __bpf_sk_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, in __bpf_sk_lookup()
6532 bpf_skc_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, in bpf_skc_lookup()
6551 bpf_sk_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, in bpf_sk_lookup()
6580 struct bpf_sock_tuple *, tuple, u32, len, u64, netns_id, u64, flags) in BPF_CALL_5() argument
6599 struct bpf_sock_tuple *, tuple, u32, len, u64, netns_id, u64, flags) in BPF_CALL_5() argument
6618 struct bpf_sock_tuple *, tuple, u32, len, u64, netns_id, u64, flags) in BPF_CALL_5() argument
6651 struct bpf_sock_tuple *, tuple, u32, len, u32, netns_id, u64, flags) in BPF_CALL_5() argument
6674 struct bpf_sock_tuple *, tuple, u32, len, u32, netns_id, u64, flags) in BPF_CALL_5() argument
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/verifier/
Dref_tracking.c781 BPF_MOV64_IMM(BPF_REG_3, sizeof(struct bpf_sock_tuple)),
/Linux-v6.1/tools/include/uapi/linux/
Dbpf.h6024 struct bpf_sock_tuple { struct
/Linux-v6.1/include/uapi/linux/
Dbpf.h6024 struct bpf_sock_tuple { struct
/Linux-v6.1/tools/testing/selftests/bpf/
Dtest_verifier.c480 BPF_MOV64_IMM(BPF_REG_3, sizeof(struct bpf_sock_tuple)), \