Lines Matching refs:addr6

574 				struct sockaddr_in6 *addr6 =  in net_context_get()  local
576 addr6->sin6_port = in net_context_get()
577 find_available_port(&contexts[i], (struct sockaddr *)addr6); in net_context_get()
579 if (!addr6->sin6_port) { in net_context_get()
718 struct sockaddr_in6 addr6; in bind_default() local
724 addr6.sin6_family = AF_INET6; in bind_default()
725 memcpy(&addr6.sin6_addr, net_ipv6_unspecified_address(), in bind_default()
726 sizeof(addr6.sin6_addr)); in bind_default()
727 addr6.sin6_port = in bind_default()
729 (struct sockaddr *)&addr6); in bind_default()
731 return net_context_bind(context, (struct sockaddr *)&addr6, in bind_default()
732 sizeof(addr6)); in bind_default()
862 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)addr; in net_context_bind() local
872 if (net_ipv6_is_addr_mcast(&addr6->sin6_addr)) { in net_context_bind()
886 maddr = net_if_ipv6_maddr_lookup(&addr6->sin6_addr, in net_context_bind()
894 } else if (net_ipv6_is_addr_unspecified(&addr6->sin6_addr)) { in net_context_bind()
905 &addr6->sin6_addr, in net_context_bind()
916 net_sprint_ipv6_addr(&addr6->sin6_addr)); in net_context_bind()
934 if (addr6->sin6_port) { in net_context_bind()
936 addr6->sin6_port, addr); in net_context_bind()
941 addr6->sin6_port = in net_context_bind()
946 addr6->sin6_port, addr); in net_context_bind()
958 ntohs(addr6->sin6_port), in net_context_bind()
1364 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *) in net_context_connect() local
1373 net_ipv6_is_addr_mcast(&addr6->sin6_addr)) { in net_context_connect()
1378 memcpy(&addr6->sin6_addr, &net_sin6(addr)->sin6_addr, in net_context_connect()
1381 addr6->sin6_port = net_sin6(addr)->sin6_port; in net_context_connect()
1382 addr6->sin6_family = AF_INET6; in net_context_connect()
1384 if (!net_ipv6_is_addr_unspecified(&addr6->sin6_addr)) { in net_context_connect()
1390 rport = addr6->sin6_port; in net_context_connect()
2081 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)dst_addr; in context_setup_udp_packet() local
2083 dst_port = addr6->sin6_port; in context_setup_udp_packet()
2086 NULL, &addr6->sin6_addr); in context_setup_udp_packet()
2248 const struct sockaddr_in6 *addr6 = in context_sendto() local
2252 addr6 = msghdr->msg_name; in context_sendto()
2255 if (!addr6) { in context_sendto()
2256 addr6 = net_sin6(&context->remote); in context_sendto()
2262 dst_addr = (const struct sockaddr *)addr6; in context_sendto()
2269 if (net_ipv6_is_addr_unspecified(&addr6->sin6_addr)) { in context_sendto()
2275 if (net_ipv6_is_addr_mcast(&addr6->sin6_addr) && in context_sendto()
2295 iface = net_if_ipv6_select_src_iface(&addr6->sin6_addr); in context_sendto()
2322 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)dst_addr; in context_sendto() local
2324 mapped.sin_port = addr6->sin6_port; in context_sendto()
2327 (struct in_addr *)(&addr6->sin6_addr.s6_addr32[3])); in context_sendto()