Home
last modified time | relevance | path

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

/Linux-v6.1/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()
506 if (LSB(ctx->local_ip6[0], 0) != ((DST_IP6[0] >> 0) & 0xff) || in ctx_narrow_access()
507 LSB(ctx->local_ip6[0], 1) != ((DST_IP6[0] >> 8) & 0xff) || in ctx_narrow_access()
508 LSB(ctx->local_ip6[0], 2) != ((DST_IP6[0] >> 16) & 0xff) || in ctx_narrow_access()
509 LSB(ctx->local_ip6[0], 3) != ((DST_IP6[0] >> 24) & 0xff) || in ctx_narrow_access()
510 LSB(ctx->local_ip6[1], 0) != ((DST_IP6[1] >> 0) & 0xff) || in ctx_narrow_access()
511 LSB(ctx->local_ip6[1], 1) != ((DST_IP6[1] >> 8) & 0xff) || in ctx_narrow_access()
[all …]
/Linux-v6.1/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_sk_msg.c71 offsetof(struct sk_msg_md, local_ip6[0])),
73 offsetof(struct sk_msg_md, local_ip6[1])),
75 offsetof(struct sk_msg_md, local_ip6[2])),
77 offsetof(struct sk_msg_md, local_ip6[3])),
Dcgroup_skb.c106 offsetof(struct __sk_buff, local_ip6[0])),
108 offsetof(struct __sk_buff, local_ip6[1])),
110 offsetof(struct __sk_buff, local_ip6[2])),
112 offsetof(struct __sk_buff, local_ip6[3])),
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.1/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.1/net/l2tp/
Dl2tp_core.c1288 if (cfg->local_ip6 && cfg->peer_ip6) { in l2tp_tunnel_sock_create()
1290 memcpy(&udp_conf.local_ip6, cfg->local_ip6, in l2tp_tunnel_sock_create()
1291 sizeof(udp_conf.local_ip6)); in l2tp_tunnel_sock_create()
1318 if (cfg->local_ip6 && cfg->peer_ip6) { in l2tp_tunnel_sock_create()
1327 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.1/net/ipv6/
Dip6_udp_tunnel.c39 memcpy(&udp6_addr.sin6_addr, &cfg->local_ip6, in udp_sock_create6()
/Linux-v6.1/tools/include/uapi/linux/
Dbpf.h5881 __u32 local_ip6[4]; /* Stored in network byte order */ member
6116 __u32 local_ip6[4]; /* Stored in network byte order */ member
6331 __u32 local_ip6[4]; /* Stored in network byte order */ member
6875 __u32 local_ip6[4]; /* Network byte order */ member
/Linux-v6.1/include/uapi/linux/
Dbpf.h5881 __u32 local_ip6[4]; /* Stored in network byte order */ member
6116 __u32 local_ip6[4]; /* Stored in network byte order */ member
6331 __u32 local_ip6[4]; /* Stored in network byte order */ member
6875 __u32 local_ip6[4]; /* Network byte order */ member
/Linux-v6.1/include/net/
Dudp_tunnel.h20 struct in6_addr local_ip6; member
/Linux-v6.1/net/tipc/
Dudp_media.c759 udp_conf.local_ip6 = in6addr_any; in tipc_udp_enable()
761 udp_conf.local_ip6 = local.ipv6; in tipc_udp_enable()
/Linux-v6.1/net/rxrpc/
Dlocal_object.c126 udp_conf.local_ip6 = srx->transport.sin6.sin6_addr; in rxrpc_open_socket()
/Linux-v6.1/net/core/
Dfilter.c8252 case bpf_ctx_range_till(struct __sk_buff, local_ip6[0], local_ip6[3]): in bpf_skb_is_valid_access()
9009 case bpf_ctx_range_till(struct sk_msg_md, local_ip6[0], local_ip6[3]): in sk_msg_is_valid_access()
9453 case offsetof(struct __sk_buff, local_ip6[0]) ... in bpf_convert_ctx_access()
9454 offsetof(struct __sk_buff, local_ip6[3]): in bpf_convert_ctx_access()
9460 off -= offsetof(struct __sk_buff, local_ip6[0]); in bpf_convert_ctx_access()
10200 case offsetof(struct bpf_sock_ops, local_ip6[0]) ... in sock_ops_convert_ctx_access()
10201 offsetof(struct bpf_sock_ops, local_ip6[3]): in sock_ops_convert_ctx_access()
10207 off -= offsetof(struct bpf_sock_ops, local_ip6[0]); in sock_ops_convert_ctx_access()
10572 case offsetof(struct sk_msg_md, local_ip6[0]) ... in sk_msg_convert_ctx_access()
10573 offsetof(struct sk_msg_md, local_ip6[3]): in sk_msg_convert_ctx_access()
[all …]
/Linux-v6.1/net/ipv4/
Dfou.c508 if (ipv6_addr_cmp(&sk->sk_v6_rcv_saddr, &udp_cfg->local_ip6) || in fou_cfg_cmp()
715 cfg->udp_config.local_ip6 = nla_get_in6_addr(attr); in parse_nl_config()
/Linux-v6.1/drivers/net/wireguard/
Dsocket.c369 .local_ip6 = IN6ADDR_ANY_INIT, in wg_socket_init()
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dsk_lookup.c266 local = &ctx->local_ip6[0]; in fill_sk_lookup_ctx()
/Linux-v6.1/net/sctp/
Dprotocol.c884 udp_conf.local_ip6 = in6addr_any; in sctp_udp_sock_start()
/Linux-v6.1/net/bpf/
Dtest_run.c1556 ctx.v6.daddr = (struct in6_addr *)user_ctx->local_ip6; in bpf_prog_test_run_sk_lookup()