Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtest_sk_lookup.c160 if (ctx->local_ip6[0] != DST_IP6[0] || in redir_ip6()
161 ctx->local_ip6[1] != DST_IP6[1] || in redir_ip6()
162 ctx->local_ip6[2] != DST_IP6[2] || in redir_ip6()
163 ctx->local_ip6[3] != DST_IP6[3]) in redir_ip6()
505 if (LSB(ctx->local_ip6[0], 0) != ((DST_IP6[0] >> 0) & 0xff) || in ctx_narrow_access()
506 LSB(ctx->local_ip6[0], 1) != ((DST_IP6[0] >> 8) & 0xff) || in ctx_narrow_access()
507 LSB(ctx->local_ip6[0], 2) != ((DST_IP6[0] >> 16) & 0xff) || in ctx_narrow_access()
508 LSB(ctx->local_ip6[0], 3) != ((DST_IP6[0] >> 24) & 0xff) || in ctx_narrow_access()
509 LSB(ctx->local_ip6[1], 0) != ((DST_IP6[1] >> 0) & 0xff) || in ctx_narrow_access()
510 LSB(ctx->local_ip6[1], 1) != ((DST_IP6[1] >> 8) & 0xff) || in ctx_narrow_access()
[all …]
Dverifier_ctx_sk_msg.c104 : __imm_const(sk_msg_md_local_ip6_0, offsetof(struct sk_msg_md, local_ip6[0])), in local_ip6_in_sk_msg()
105 __imm_const(sk_msg_md_local_ip6_1, offsetof(struct sk_msg_md, local_ip6[1])), in local_ip6_in_sk_msg()
106 __imm_const(sk_msg_md_local_ip6_2, offsetof(struct sk_msg_md, local_ip6[2])), in local_ip6_in_sk_msg()
107 __imm_const(sk_msg_md_local_ip6_3, offsetof(struct sk_msg_md, local_ip6[3])) in local_ip6_in_sk_msg()
Dverifier_cgroup_skb.c121 __imm_const(__sk_buff_local_ip6_0, offsetof(struct __sk_buff, local_ip6[0])), in test_4_for_cgroup_skb()
122 __imm_const(__sk_buff_local_ip6_1, offsetof(struct __sk_buff, local_ip6[1])), in test_4_for_cgroup_skb()
123 __imm_const(__sk_buff_local_ip6_2, offsetof(struct __sk_buff, local_ip6[2])), in test_4_for_cgroup_skb()
124 __imm_const(__sk_buff_local_ip6_3, offsetof(struct __sk_buff, local_ip6[3])), in test_4_for_cgroup_skb()
/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Dctx_sk_lookup.c156 offsetof(struct bpf_sk_lookup, local_ip6)),
158 offsetof(struct bpf_sk_lookup, local_ip6) + 1),
160 offsetof(struct bpf_sk_lookup, local_ip6) + 2),
162 offsetof(struct bpf_sk_lookup, local_ip6) + 3),
164 offsetof(struct bpf_sk_lookup, local_ip6) + 4),
166 offsetof(struct bpf_sk_lookup, local_ip6) + 5),
168 offsetof(struct bpf_sk_lookup, local_ip6) + 6),
170 offsetof(struct bpf_sk_lookup, local_ip6) + 7),
172 offsetof(struct bpf_sk_lookup, local_ip6) + 8),
174 offsetof(struct bpf_sk_lookup, local_ip6) + 9),
[all …]
Dctx_skb.c151 offsetof(struct __sk_buff, local_ip6)),
227 offsetof(struct __sk_buff, local_ip6[0])),
229 offsetof(struct __sk_buff, local_ip6[1])),
231 offsetof(struct __sk_buff, local_ip6[2])),
233 offsetof(struct __sk_buff, local_ip6[3])),
/Linux-v6.6/samples/bpf/
Dtcp_rwnd_kern.c53 if (skops->local_ip6[0] != skops->remote_ip6[0] || in bpf_rwnd()
54 (bpf_ntohl(skops->local_ip6[1]) & 0xfffff000) != in bpf_rwnd()
Dtcp_synrto_kern.c53 if (skops->local_ip6[0] == skops->remote_ip6[0] && in bpf_synrto()
54 (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == in bpf_synrto()
Dtcp_basertt_kern.c43 skops->local_ip6[0] == skops->remote_ip6[0] && in bpf_basertt()
44 (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == in bpf_basertt()
Dtcp_cong_kern.c51 skops->local_ip6[0] == skops->remote_ip6[0] && in bpf_cong()
52 (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == in bpf_cong()
Dtcp_clamp_kern.c53 skops->local_ip6[0] == skops->remote_ip6[0] && in bpf_clamp()
54 (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == in bpf_clamp()
/Linux-v6.6/net/l2tp/
Dl2tp_core.c1289 if (cfg->local_ip6 && cfg->peer_ip6) { in l2tp_tunnel_sock_create()
1291 memcpy(&udp_conf.local_ip6, cfg->local_ip6, in l2tp_tunnel_sock_create()
1292 sizeof(udp_conf.local_ip6)); in l2tp_tunnel_sock_create()
1319 if (cfg->local_ip6 && cfg->peer_ip6) { in l2tp_tunnel_sock_create()
1328 memcpy(&ip6_addr.l2tp_addr, cfg->local_ip6, in l2tp_tunnel_sock_create()
Dl2tp_core.h140 struct in6_addr *local_ip6; member
Dl2tp_netlink.c169 cfg->local_ip6 = nla_data(attrs[L2TP_ATTR_IP6_SADDR]); in l2tp_nl_cmd_tunnel_create_get_addr()
/Linux-v6.6/net/ipv6/
Dip6_udp_tunnel.c39 memcpy(&udp6_addr.sin6_addr, &cfg->local_ip6, in udp_sock_create6()
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h6099 __u32 local_ip6[4]; /* Stored in network byte order */ member
6347 __u32 local_ip6[4]; /* Stored in network byte order */ member
6605 __u32 local_ip6[4]; /* Stored in network byte order */ member
7189 __u32 local_ip6[4]; /* Network byte order */ member
/Linux-v6.6/include/uapi/linux/
Dbpf.h6099 __u32 local_ip6[4]; /* Stored in network byte order */ member
6347 __u32 local_ip6[4]; /* Stored in network byte order */ member
6605 __u32 local_ip6[4]; /* Stored in network byte order */ member
7189 __u32 local_ip6[4]; /* Network byte order */ member
/Linux-v6.6/include/net/
Dudp_tunnel.h20 struct in6_addr local_ip6; member
/Linux-v6.6/net/tipc/
Dudp_media.c755 udp_conf.local_ip6 = in6addr_any; in tipc_udp_enable()
757 udp_conf.local_ip6 = local.ipv6; in tipc_udp_enable()
/Linux-v6.6/net/rxrpc/
Dlocal_object.c170 udp_conf.local_ip6 = srx->transport.sin6.sin6_addr; in rxrpc_open_socket()
/Linux-v6.6/net/core/
Dfilter.c8432 case bpf_ctx_range_till(struct __sk_buff, local_ip6[0], local_ip6[3]): in bpf_skb_is_valid_access()
9178 case bpf_ctx_range_till(struct sk_msg_md, local_ip6[0], local_ip6[3]): in sk_msg_is_valid_access()
9627 case offsetof(struct __sk_buff, local_ip6[0]) ... in bpf_convert_ctx_access()
9628 offsetof(struct __sk_buff, local_ip6[3]): in bpf_convert_ctx_access()
9634 off -= offsetof(struct __sk_buff, local_ip6[0]); in bpf_convert_ctx_access()
10374 case offsetof(struct bpf_sock_ops, local_ip6[0]) ... in sock_ops_convert_ctx_access()
10375 offsetof(struct bpf_sock_ops, local_ip6[3]): in sock_ops_convert_ctx_access()
10381 off -= offsetof(struct bpf_sock_ops, local_ip6[0]); in sock_ops_convert_ctx_access()
10764 case offsetof(struct sk_msg_md, local_ip6[0]) ... in sk_msg_convert_ctx_access()
10765 offsetof(struct sk_msg_md, local_ip6[3]): in sk_msg_convert_ctx_access()
[all …]
/Linux-v6.6/net/ipv4/
Dfou_core.c510 if (ipv6_addr_cmp(&sk->sk_v6_rcv_saddr, &udp_cfg->local_ip6) || in fou_cfg_cmp()
703 cfg->udp_config.local_ip6 = nla_get_in6_addr(attr); in parse_nl_config()
/Linux-v6.6/drivers/net/wireguard/
Dsocket.c369 .local_ip6 = IN6ADDR_ANY_INIT, in wg_socket_init()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsk_lookup.c266 local = &ctx->local_ip6[0]; in fill_sk_lookup_ctx()
/Linux-v6.6/net/sctp/
Dprotocol.c889 udp_conf.local_ip6 = in6addr_any; in sctp_udp_sock_start()
/Linux-v6.6/net/bpf/
Dtest_run.c1421 ctx.v6.daddr = (struct in6_addr *)user_ctx->local_ip6; in bpf_prog_test_run_sk_lookup()