/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sk_lookup.c | 478 if (LSB(ctx->remote_ip6[0], 0) != ((SRC_IP6[0] >> 0) & 0xff) || in ctx_narrow_access() 479 LSB(ctx->remote_ip6[0], 1) != ((SRC_IP6[0] >> 8) & 0xff) || in ctx_narrow_access() 480 LSB(ctx->remote_ip6[0], 2) != ((SRC_IP6[0] >> 16) & 0xff) || in ctx_narrow_access() 481 LSB(ctx->remote_ip6[0], 3) != ((SRC_IP6[0] >> 24) & 0xff) || in ctx_narrow_access() 482 LSB(ctx->remote_ip6[1], 0) != ((SRC_IP6[1] >> 0) & 0xff) || in ctx_narrow_access() 483 LSB(ctx->remote_ip6[1], 1) != ((SRC_IP6[1] >> 8) & 0xff) || in ctx_narrow_access() 484 LSB(ctx->remote_ip6[1], 2) != ((SRC_IP6[1] >> 16) & 0xff) || in ctx_narrow_access() 485 LSB(ctx->remote_ip6[1], 3) != ((SRC_IP6[1] >> 24) & 0xff) || in ctx_narrow_access() 486 LSB(ctx->remote_ip6[2], 0) != ((SRC_IP6[2] >> 0) & 0xff) || in ctx_narrow_access() 487 LSB(ctx->remote_ip6[2], 1) != ((SRC_IP6[2] >> 8) & 0xff) || in ctx_narrow_access() [all …]
|
H A D | verifier_ctx_sk_msg.c | 85 : __imm_const(sk_msg_md_remote_ip6_0, offsetof(struct sk_msg_md, remote_ip6[0])), in remote_ip6_in_sk_msg() 86 __imm_const(sk_msg_md_remote_ip6_1, offsetof(struct sk_msg_md, remote_ip6[1])), in remote_ip6_in_sk_msg() 87 __imm_const(sk_msg_md_remote_ip6_2, offsetof(struct sk_msg_md, remote_ip6[2])), in remote_ip6_in_sk_msg() 88 __imm_const(sk_msg_md_remote_ip6_3, offsetof(struct sk_msg_md, remote_ip6[3])) in remote_ip6_in_sk_msg()
|
H A D | verifier_cgroup_skb.c | 127 __imm_const(__sk_buff_remote_ip6_0, offsetof(struct __sk_buff, remote_ip6[0])), in test_4_for_cgroup_skb() 128 __imm_const(__sk_buff_remote_ip6_1, offsetof(struct __sk_buff, remote_ip6[1])), in test_4_for_cgroup_skb() 129 __imm_const(__sk_buff_remote_ip6_2, offsetof(struct __sk_buff, remote_ip6[2])), in test_4_for_cgroup_skb() 130 __imm_const(__sk_buff_remote_ip6_3, offsetof(struct __sk_buff, remote_ip6[3])), in test_4_for_cgroup_skb()
|
/linux/tools/testing/selftests/bpf/verifier/ |
H A D | ctx_sk_lookup.c | 60 offsetof(struct bpf_sk_lookup, remote_ip6)), 62 offsetof(struct bpf_sk_lookup, remote_ip6) + 1), 64 offsetof(struct bpf_sk_lookup, remote_ip6) + 2), 66 offsetof(struct bpf_sk_lookup, remote_ip6) + 3), 68 offsetof(struct bpf_sk_lookup, remote_ip6) + 4), 70 offsetof(struct bpf_sk_lookup, remote_ip6) + 5), 72 offsetof(struct bpf_sk_lookup, remote_ip6) + 6), 74 offsetof(struct bpf_sk_lookup, remote_ip6) + 7), 76 offsetof(struct bpf_sk_lookup, remote_ip6) + 8), 78 offsetof(struct bpf_sk_lookup, remote_ip6) + 9), [all …]
|
H A D | ctx_skb.c | 141 offsetof(struct __sk_buff, remote_ip6)), 211 offsetof(struct __sk_buff, remote_ip6[0])), 213 offsetof(struct __sk_buff, remote_ip6[1])), 215 offsetof(struct __sk_buff, remote_ip6[2])), 217 offsetof(struct __sk_buff, remote_ip6[3])),
|
/linux/samples/bpf/ |
H A D | tcp_synrto_kern.c | 53 if (skops->local_ip6[0] == skops->remote_ip6[0] && in bpf_synrto() 55 (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) in bpf_synrto()
|
H A D | tcp_rwnd_kern.c | 53 if (skops->local_ip6[0] != skops->remote_ip6[0] || in bpf_rwnd() 55 (bpf_ntohl(skops->remote_ip6[1]) & 0xfffff000)) in bpf_rwnd()
|
H A D | tcp_basertt_kern.c | 43 skops->local_ip6[0] == skops->remote_ip6[0] && in bpf_basertt() 45 (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { in bpf_basertt()
|
H A D | tcp_cong_kern.c | 51 skops->local_ip6[0] == skops->remote_ip6[0] && in bpf_cong() 53 (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { in bpf_cong()
|
H A D | tcp_clamp_kern.c | 53 skops->local_ip6[0] == skops->remote_ip6[0] && in bpf_clamp() 55 (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { in bpf_clamp()
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 6253 __u32 remote_ip6[4]; /* Stored in network byte order */ member 6501 __u32 remote_ip6[4]; /* Stored in network byte order */ member 6786 __u32 remote_ip6[4]; /* Stored in network byte order */ member 7383 __u32 remote_ip6[4]; /* Network byte order */ member
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 6253 __u32 remote_ip6[4]; /* Stored in network byte order */ member 6501 __u32 remote_ip6[4]; /* Stored in network byte order */ member 6786 __u32 remote_ip6[4]; /* Stored in network byte order */ member 7383 __u32 remote_ip6[4]; /* Network byte order */ member
|
/linux/net/core/ |
H A D | filter.c | 8610 case bpf_ctx_range_till(struct __sk_buff, remote_ip6[0], remote_ip6[3]): in bpf_skb_is_valid_access() 9361 case bpf_ctx_range_till(struct sk_msg_md, remote_ip6[0], remote_ip6[3]): in sk_msg_is_valid_access() 9793 case offsetof(struct __sk_buff, remote_ip6[0]) ... in bpf_convert_ctx_access() 9794 offsetof(struct __sk_buff, remote_ip6[3]): in bpf_convert_ctx_access() 9800 off -= offsetof(struct __sk_buff, remote_ip6[0]); in bpf_convert_ctx_access() 10535 case offsetof(struct bpf_sock_ops, remote_ip6[0]) ... in sock_ops_convert_ctx_access() 10536 offsetof(struct bpf_sock_ops, remote_ip6[3]): in sock_ops_convert_ctx_access() 10542 off -= offsetof(struct bpf_sock_ops, remote_ip6[0]); in sock_ops_convert_ctx_access() 10925 case offsetof(struct sk_msg_md, remote_ip6[0]) ... in sk_msg_convert_ctx_access() 10926 offsetof(struct sk_msg_md, remote_ip6[3]): in sk_msg_convert_ctx_access() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sk_lookup.c | 213 remote = &ctx->remote_ip6[0]; in fill_sk_lookup_ctx()
|
/linux/net/bpf/ |
H A D | test_run.c | 1485 ctx.v6.saddr = (struct in6_addr *)user_ctx->remote_ip6; in bpf_prog_test_run_sk_lookup()
|