Home
last modified time | relevance | path

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

1234567

/linux/net/sctp/
A Dipv6.c89 addr->a.v6.sin6_addr = ifa->addr; in sctp_inet6addr_event()
291 fl6->daddr = daddr->v6.sin6_addr; in sctp_v6_get_dst()
316 fl6->saddr = saddr->v6.sin6_addr; in sctp_v6_get_dst()
382 fl6->saddr = laddr->a.v6.sin6_addr; in sctp_v6_get_dst()
436 return ipv6_addr_diff(&s1->v6.sin6_addr, &s2->v6.sin6_addr); in sctp_v6_addr_match_len()
453 saddr->v6.sin6_addr = fl6->saddr; in sctp_v6_get_saddr()
477 addr->a.v6.sin6_addr = ifp->addr; in sctp_v6_copy_addrlist()
591 addr->v6.sin6_addr = param->v6.addr; in sctp_v6_from_addr_param()
619 addr->v6.sin6_addr = *saddr; in sctp_v6_to_addr()
644 if (!ipv6_addr_equal(&addr1->v6.sin6_addr, &addr2->v6.sin6_addr)) in __sctp_v6_cmp_addr()
[all …]
A Ddiag.c47 *(struct in6_addr *)r->id.idiag_src = laddr.v6.sin6_addr; in inet_diag_msg_sctpasoc_fill()
48 *(struct in6_addr *)r->id.idiag_dst = paddr.v6.sin6_addr; in inet_diag_msg_sctpasoc_fill()
449 memcpy(&laddr.v6.sin6_addr, req->id.idiag_src, in sctp_diag_dump_one()
450 sizeof(laddr.v6.sin6_addr)); in sctp_diag_dump_one()
454 memcpy(&paddr.v6.sin6_addr, req->id.idiag_dst, in sctp_diag_dump_one()
455 sizeof(paddr.v6.sin6_addr)); in sctp_diag_dump_one()
/linux/samples/bpf/
A Dmap_perf_test_user.c166 in6.sin6_addr.s6_addr16[0] = 0xdead; in do_test_lru()
167 in6.sin6_addr.s6_addr16[1] = 0xbeef; in do_test_lru()
171 in6.sin6_addr.s6_addr16[2] = 0; in do_test_lru()
174 in6.sin6_addr.s6_addr16[2] = 1; in do_test_lru()
177 in6.sin6_addr.s6_addr16[2] = 2; in do_test_lru()
180 in6.sin6_addr.s6_addr16[2] = 3; in do_test_lru()
181 in6.sin6_addr.s6_addr32[3] = 0; in do_test_lru()
190 if (in6.sin6_addr.s6_addr32[3] < in do_test_lru()
192 in6.sin6_addr.s6_addr32[3] += 32; in do_test_lru()
194 in6.sin6_addr.s6_addr32[3] = 0; in do_test_lru()
A Dtest_map_in_map_user.c84 in6.sin6_addr.s6_addr16[0] = 0xdead; in test_map_in_map()
85 in6.sin6_addr.s6_addr16[1] = 0xbeef; in test_map_in_map()
91 in6.sin6_addr.s6_addr16[7] = i; in test_map_in_map()
/linux/include/linux/sunrpc/
A Daddr.h77 if (!ipv6_addr_equal(&sin1->sin6_addr, &sin2->sin6_addr)) in rpc_cmp_addr6()
79 else if (ipv6_addr_type(&sin1->sin6_addr) & IPV6_ADDR_LINKLOCAL) in rpc_cmp_addr6()
92 dsin6->sin6_addr = ssin6->sin6_addr; in __rpc_copy_addr6()
/linux/tools/testing/selftests/bpf/progs/
A Dconnect6_prog.c82 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog()
83 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog()
84 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog()
85 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog()
/linux/net/ipv6/
A Dip6_udp_tunnel.c39 memcpy(&udp6_addr.sin6_addr, &cfg->local_ip6, in udp_sock_create6()
40 sizeof(udp6_addr.sin6_addr)); in udp_sock_create6()
50 memcpy(&udp6_addr.sin6_addr, &cfg->peer_ip6, in udp_sock_create6()
51 sizeof(udp6_addr.sin6_addr)); in udp_sock_create6()
A Ddatagram.c163 if (ipv6_addr_any(&usin->sin6_addr)) { in __ip6_datagram_connect()
169 &usin->sin6_addr); in __ip6_datagram_connect()
171 usin->sin6_addr = in6addr_loopback; in __ip6_datagram_connect()
176 daddr = &usin->sin6_addr; in __ip6_datagram_connect()
488 sin->sin6_addr = ip6h->daddr; in ipv6_recv_error()
492 ipv6_iface_scope_id(&sin->sin6_addr, in ipv6_recv_error()
496 &sin->sin6_addr); in ipv6_recv_error()
511 sin->sin6_addr = ipv6_hdr(skb)->saddr; in ipv6_recv_error()
515 ipv6_iface_scope_id(&sin->sin6_addr, in ipv6_recv_error()
519 &sin->sin6_addr); in ipv6_recv_error()
[all …]
A Daf_inet6.c294 addr_type = ipv6_addr_type(&addr->sin6_addr); in __inet6_bind()
336 v4addr = addr->sin6_addr.s6_addr32[3]; in __inet6_bind()
383 !ipv6_chk_addr(net, &addr->sin6_addr, in __inet6_bind()
396 sk->sk_v6_rcv_saddr = addr->sin6_addr; in __inet6_bind()
399 np->saddr = addr->sin6_addr; in __inet6_bind()
533 sin->sin6_addr = sk->sk_v6_daddr; in inet6_getname()
540 sin->sin6_addr = np->saddr; in inet6_getname()
542 sin->sin6_addr = sk->sk_v6_rcv_saddr; in inet6_getname()
547 sin->sin6_scope_id = ipv6_iface_scope_id(&sin->sin6_addr, in inet6_getname()
/linux/net/core/
A Dutils.c330 if (in6_pton(src, srclen, (u8 *)&addr6->sin6_addr.s6_addr, in inet6_pton()
334 if (ipv6_addr_type(&addr6->sin6_addr) & IPV6_ADDR_LINKLOCAL && in inet6_pton()
407 { .sin6_addr = IN6ADDR_ANY_INIT }; in inet_addr_is_any()
409 if (!memcmp(in6->sin6_addr.s6_addr, in inet_addr_is_any()
410 in6_any.sin6_addr.s6_addr, 16)) in inet_addr_is_any()
/linux/net/sunrpc/
A Daddr.c32 const struct in6_addr *addr = &sin6->sin6_addr; in rpc_ntop6_noscopeid()
78 if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL)) in rpc_ntop6()
176 if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL)) in rpc_parse_scope_id()
203 u8 *addr = (u8 *)&sin6->sin6_addr.in6_u; in rpc_pton6()
/linux/tools/testing/selftests/net/
A Dreuseport_addr_any.c58 addr6.sin6_addr = in6addr_any; in build_rcv_fd()
59 else if (!inet_pton(family, addr_str, &addr6.sin6_addr)) in build_rcv_fd()
127 saddr6.sin6_addr = in6addr_any; in connect_and_send()
130 if (!inet_pton(family, IP6_ADDR, &daddr6.sin6_addr)) in connect_and_send()
A Dreuseport_bpf_cpu.c52 addr6->sin6_addr = in6addr_any; in build_rcv_group()
117 saddr6->sin6_addr = in6addr_any; in send_from_cpu()
122 daddr6->sin6_addr = in6addr_loopback; in send_from_cpu()
A Dreuseport_bpf_numa.c48 addr6->sin6_addr = in6addr_any; in build_rcv_group()
129 saddr6->sin6_addr = in6addr_any; in send_from_node()
134 daddr6->sin6_addr = in6addr_loopback; in send_from_node()
/linux/include/trace/events/
A Dnet_probe_common.h28 v6->sin6_addr = inet6_sk(sk)->saddr; \
32 v6->sin6_addr = sk->sk_v6_daddr; \
/linux/tools/testing/selftests/bpf/prog_tests/
A Dselect_reuseport.c155 sa->v6.sin6_addr = in6addr_loopback; in sa46_init_loopback()
165 sa->v6.sin6_addr = in6addr_any; in sa46_init_inany()
275 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
276 !srv_sa.v6.sin6_addr.s6_addr32[2] && in check_data()
277 !srv_sa.v6.sin6_addr.s6_addr32[1] && in check_data()
278 !srv_sa.v6.sin6_addr.s6_addr32[0]; in check_data()
280 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
281 sizeof(cli_sa.v6.sin6_addr)); in check_data()
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_nvmetcp_ip_services.c96 fl6.saddr = ((struct sockaddr_in6 *)local_addr)->sin6_addr; in qed_route_ipv6()
97 fl6.daddr = ((struct sockaddr_in6 *)remote_addr)->sin6_addr; in qed_route_ipv6()
140 ((struct sockaddr_in6 *)local_addr)->sin6_addr = in qed_route_ipv6()
/linux/net/rxrpc/
A Dpeer_object.c51 size = sizeof(srx->transport.sin6.sin6_addr); in rxrpc_peer_hash_key()
52 p = (u16 *)&srx->transport.sin6.sin6_addr; in rxrpc_peer_hash_key()
102 memcmp(&peer->srx.transport.sin6.sin6_addr, in rxrpc_peer_cmp_key()
103 &srx->transport.sin6.sin6_addr, in rxrpc_peer_cmp_key()
185 memcpy(&fl6->daddr, &peer->srx.transport.sin6.sin6_addr, in rxrpc_assess_MTU_size()
/linux/net/rds/
A Dbind.c196 addr_type = ipv6_addr_type(&sin6->sin6_addr); in rds_bind()
206 addr4 = sin6->sin6_addr.s6_addr32[3]; in rds_bind()
218 binding_addr = &sin6->sin6_addr; in rds_bind()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dclip_tbl.c91 ret = memcmp(lip, cte->addr6.sin6_addr.s6_addr, in cxgb4_clip_get()
116 memcpy(ce->addr6.sin6_addr.s6_addr, in cxgb4_clip_get()
125 ret, ce->addr6.sin6_addr.s6_addr); in cxgb4_clip_get()
163 ret = memcmp(lip, cte->addr6.sin6_addr.s6_addr, in cxgb4_clip_release()
/linux/drivers/infiniband/hw/cxgb4/
A Dcm.c402 (const u32 *)&sin6->sin6_addr.s6_addr, in _c4iw_free_ep()
2209 laddr6->sin6_addr.s6_addr, in c4iw_reconnect()
2210 raddr6->sin6_addr.s6_addr, in c4iw_reconnect()
2216 ra = (__u8 *)&raddr6->sin6_addr; in c4iw_reconnect()
2329 &sin6->sin6_addr.s6_addr, 1); in act_open_rpl()
2954 (const u32 *)&sin6->sin6_addr.s6_addr, in peer_abort()
3399 ra = (__u8 *)&raddr6->sin6_addr; in c4iw_connect()
3412 laddr6->sin6_addr.s6_addr, in c4iw_connect()
3416 laddr6->sin6_addr.s6_addr, in c4iw_connect()
3417 raddr6->sin6_addr.s6_addr, in c4iw_connect()
[all …]
/linux/drivers/infiniband/hw/qedr/
A Dqedr_iw_cm.c75 laddr6->sin6_addr.in6_u.u6_addr32[i] = in qedr_fill_sockaddr6()
77 raddr6->sin6_addr.in6_u.u6_addr32[i] = in qedr_fill_sockaddr6()
486 fl6.daddr = dst_in->sin6_addr; in qedr_addr6_resolve()
487 fl6.saddr = src_in->sin6_addr; in qedr_addr6_resolve()
607 ntohl(raddr6->sin6_addr.in6_u.u6_addr32[i]); in qedr_iw_connect()
609 ntohl(laddr6->sin6_addr.in6_u.u6_addr32[i]); in qedr_iw_connect()
700 ntohl(laddr6->sin6_addr.in6_u.u6_addr32[i]); in qedr_iw_create_listen()
/linux/include/linux/lockd/
A Dlockd.h330 if (ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_MAPPED) in __nlm_privileged_request6()
331 return ipv4_is_loopback(sin6->sin6_addr.s6_addr32[3]); in __nlm_privileged_request6()
333 return ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LOOPBACK; in __nlm_privileged_request6()
/linux/include/net/sctp/
A Dsctp.h544 addr->v4.sin_addr.s_addr = addr->v6.sin6_addr.s6_addr32[3]; in sctp_v6_map_v4()
553 addr->v6.sin6_addr.s6_addr32[3] = addr->v4.sin_addr.s_addr; in sctp_v4_map_v6()
558 addr->v6.sin6_addr.s6_addr32[0] = 0; in sctp_v4_map_v6()
559 addr->v6.sin6_addr.s6_addr32[1] = 0; in sctp_v4_map_v6()
560 addr->v6.sin6_addr.s6_addr32[2] = htonl(0x0000ffff); in sctp_v4_map_v6()
/linux/drivers/infiniband/core/
A Daddr.c264 &((const struct sockaddr_in6 *)src_in)->sin6_addr, in rdma_find_ndev_for_src_ip_rcu()
373 (const void *)&dst_in6->sin6_addr; in fetch_ha()
430 fl6.daddr = dst_in->sin6_addr; in addr6_resolve()
431 fl6.saddr = src_in->sin6_addr; in addr6_resolve()
438 if (ipv6_addr_any(&src_in->sin6_addr)) in addr6_resolve()
439 src_in->sin6_addr = fl6.saddr; in addr6_resolve()

Completed in 35 milliseconds

1234567