| /linux/tools/testing/selftests/bpf/verifier/ |
| H A D | ctx_sk_lookup.c | 6 offsetof(struct bpf_sk_lookup, family)), 8 offsetof(struct bpf_sk_lookup, family) + 1), 10 offsetof(struct bpf_sk_lookup, family) + 2), 12 offsetof(struct bpf_sk_lookup, family) + 3), 15 offsetof(struct bpf_sk_lookup, family)), 17 offsetof(struct bpf_sk_lookup, family) + 2), 20 offsetof(struct bpf_sk_lookup, family)), 24 offsetof(struct bpf_sk_lookup, protocol)), 26 offsetof(struct bpf_sk_lookup, protocol) + 1), 28 offsetof(struct bpf_sk_lookup, protocol) + 2), [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_sk_lookup.c | 76 int lookup_pass(struct bpf_sk_lookup *ctx) in lookup_pass() 82 int lookup_drop(struct bpf_sk_lookup *ctx) in lookup_drop() 88 int check_ifindex(struct bpf_sk_lookup *ctx) in check_ifindex() 109 int redir_port(struct bpf_sk_lookup *ctx) in redir_port() 128 int redir_ip4(struct bpf_sk_lookup *ctx) in redir_ip4() 151 int redir_ip6(struct bpf_sk_lookup *ctx) in redir_ip6() 176 int select_sock_a(struct bpf_sk_lookup *ctx) in select_sock_a() 191 int select_sock_a_no_reuseport(struct bpf_sk_lookup *ctx) in select_sock_a_no_reuseport() 217 int sk_assign_eexist(struct bpf_sk_lookup *ctx) in sk_assign_eexist() 250 int sk_assign_replace_flag(struct bpf_sk_lookup *ctx) in sk_assign_replace_flag() [all …]
|
| /linux/Documentation/bpf/ |
| H A D | prog_sk_lookup.rst | 80 In its context, an instance of ``struct bpf_sk_lookup``, BPF sk_lookup program 89 Refer to ``struct bpf_sk_lookup`` declaration in ``linux/bpf.h`` user API
|
| /linux/net/core/ |
| H A D | filter.c | 7044 bpf_sk_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, in bpf_sk_lookup() function 7092 return (unsigned long)bpf_sk_lookup(skb, tuple, len, IPPROTO_TCP, in BPF_CALL_5() 7111 return (unsigned long)bpf_sk_lookup(skb, tuple, len, IPPROTO_UDP, in BPF_CALL_5() 11790 if (off < 0 || off >= sizeof(struct bpf_sk_lookup)) in sk_lookup_is_valid_access() 11798 case bpf_ctx_range_ptr(struct bpf_sk_lookup, sk): in sk_lookup_is_valid_access() 11802 case bpf_ctx_range(struct bpf_sk_lookup, family): in sk_lookup_is_valid_access() 11803 case bpf_ctx_range(struct bpf_sk_lookup, protocol): in sk_lookup_is_valid_access() 11804 case bpf_ctx_range(struct bpf_sk_lookup, remote_ip4): in sk_lookup_is_valid_access() 11805 case bpf_ctx_range(struct bpf_sk_lookup, local_ip4): in sk_lookup_is_valid_access() 11806 case bpf_ctx_range_till(struct bpf_sk_lookup, remote_ip6[0], remote_ip6[3]): in sk_lookup_is_valid_access() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | sk_lookup.c | 200 static int fill_sk_lookup_ctx(struct bpf_sk_lookup *ctx, const char *local_ip, __u16 local_port, in fill_sk_lookup_ctx() 1030 struct bpf_sk_lookup ctx; in run_sk_assign()
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 4476 * long bpf_sk_assign(struct bpf_sk_lookup *ctx, struct bpf_sock *sk, u64 flags) 6278 /* BPF_FUNC_sk_assign flags in bpf_sk_lookup context. */ 7533 struct bpf_sk_lookup { 7497 struct bpf_sk_lookup { global() struct 7498 __anon43a12fb48b0abpf_sk_lookup global() argument 7503 familybpf_sk_lookup global() argument 7504 protocolbpf_sk_lookup global() argument 7505 remote_ip4bpf_sk_lookup global() argument 7506 remote_ip6bpf_sk_lookup global() argument 7507 remote_portbpf_sk_lookup global() argument 7509 local_ip4bpf_sk_lookup global() argument 7510 local_ip6bpf_sk_lookup global() argument 7511 local_portbpf_sk_lookup global() argument 7512 ingress_ifindexbpf_sk_lookup global() argument
|