/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sk_lookup.c | 137 if (ctx->local_ip4 != DST_IP4) in redir_ip4() 452 if (LSB(ctx->local_ip4, 0) != ((DST_IP4 >> 0) & 0xff) || in ctx_narrow_access() 453 LSB(ctx->local_ip4, 1) != ((DST_IP4 >> 8) & 0xff) || in ctx_narrow_access() 454 LSB(ctx->local_ip4, 2) != ((DST_IP4 >> 16) & 0xff) || in ctx_narrow_access() 455 LSB(ctx->local_ip4, 3) != ((DST_IP4 >> 24) & 0xff)) in ctx_narrow_access() 457 if (LSW(ctx->local_ip4, 0) != ((DST_IP4 >> 0) & 0xffff) || in ctx_narrow_access() 458 LSW(ctx->local_ip4, 1) != ((DST_IP4 >> 16) & 0xffff)) in ctx_narrow_access() 468 if (LSB(ctx->local_ip4, 0) != 0 || LSB(ctx->local_ip4, 1) != 0 || in ctx_narrow_access() 469 LSB(ctx->local_ip4, 2) != 0 || LSB(ctx->local_ip4, 3) != 0) in ctx_narrow_access() 471 if (LSW(ctx->local_ip4, 0) != 0 || LSW(ctx->local_ip4, 1) != 0) in ctx_narrow_access()
|
H A D | verifier_ctx_sk_msg.c | 43 : __imm_const(sk_msg_md_local_ip4, offsetof(struct sk_msg_md, local_ip4)) in local_ip4_in_sk_msg()
|
H A D | verifier_cgroup_skb.c | 120 __imm_const(__sk_buff_local_ip4, offsetof(struct __sk_buff, local_ip4)), in test_4_for_cgroup_skb()
|
/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | ctx_sk_lookup.c | 138 offsetof(struct bpf_sk_lookup, local_ip4)), 140 offsetof(struct bpf_sk_lookup, local_ip4) + 1), 142 offsetof(struct bpf_sk_lookup, local_ip4) + 2), 144 offsetof(struct bpf_sk_lookup, local_ip4) + 3), 147 offsetof(struct bpf_sk_lookup, local_ip4)), 149 offsetof(struct bpf_sk_lookup, local_ip4) + 2), 152 offsetof(struct bpf_sk_lookup, local_ip4)), 335 offsetof(struct bpf_sk_lookup, local_ip4)),
|
H A D | ctx_skb.c | 131 offsetof(struct __sk_buff, local_ip4)), 201 offsetof(struct __sk_buff, local_ip4)),
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 6122 __u32 local_ip4; /* Stored in network byte order */ member 6370 __u32 local_ip4; /* Stored in network byte order */ member 6635 __u32 local_ip4; /* Stored in network byte order */ member 7225 __u32 local_ip4; /* Network byte order */ member
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf.h | 6119 __u32 local_ip4; /* Stored in network byte order */ member 6367 __u32 local_ip4; /* Stored in network byte order */ member 6632 __u32 local_ip4; /* Stored in network byte order */ member 7222 __u32 local_ip4; /* Network byte order */ member
|
/openbmc/linux/net/core/ |
H A D | filter.c | 8531 case bpf_ctx_range_till(struct __sk_buff, local_ip4, local_ip4): in bpf_skb_is_valid_access() 9273 case bpf_ctx_range(struct sk_msg_md, local_ip4): in sk_msg_is_valid_access() 9692 case offsetof(struct __sk_buff, local_ip4): in bpf_convert_ctx_access() 10437 case offsetof(struct bpf_sock_ops, local_ip4): in sock_ops_convert_ctx_access() 10827 case offsetof(struct sk_msg_md, local_ip4): in sk_msg_convert_ctx_access() 11476 case bpf_ctx_range(struct bpf_sk_lookup, local_ip4): in sk_lookup_is_valid_access() 11492 offsetof(struct bpf_sk_lookup, local_ip4) - 1: in sk_lookup_is_valid_access() 11534 case offsetof(struct bpf_sk_lookup, local_ip4): in sk_lookup_convert_ctx_access()
|
/openbmc/linux/Documentation/bpf/ |
H A D | map_sockmap.rst | 420 key->dst_ip = skb->local_ip4;
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sk_lookup.c | 269 local = &ctx->local_ip4; in fill_sk_lookup_ctx()
|
/openbmc/linux/net/bpf/ |
H A D | test_run.c | 1422 ctx.v4.daddr = (__force __be32)user_ctx->local_ip4; in bpf_prog_test_run_sk_lookup()
|