Lines Matching refs:sa46
348 memset(&dns->sa46, 0, sizeof(dns->sa46)); in lws_async_dns_init()
351 if (lws_dhcpc_status(context, &dns->sa46)) in lws_async_dns_init()
355 n = lws_plat_asyncdns_init(context, &dns->sa46); in lws_async_dns_init()
368 dns->sa46.sa4.sin_port = htons(53); in lws_async_dns_init()
369 lws_write_numeric_address((uint8_t *)&dns->sa46.sa4.sin_addr.s_addr, 4, in lws_async_dns_init()
380 context->async_dns.wsi->udp->sa46 = dns->sa46; in lws_async_dns_init()
654 lws_sockaddr46 *sa46; in lws_async_dns_query() local
746 sa46 = (lws_sockaddr46 *)&ai[1]; in lws_async_dns_query()
749 c->name = (const char *)&sa46[1]; in lws_async_dns_query()
751 ai->ai_canonname = (char *)&sa46[1]; in lws_async_dns_query()
772 sa46 = (lws_sockaddr46 *)&ai[1]; in lws_async_dns_query()
773 ai->ai_family = sa46->sa4.sin_family = AF_INET; in lws_async_dns_query()
774 ai->ai_addrlen = sizeof(sa46->sa4); in lws_async_dns_query()
775 ai->ai_addr = (struct sockaddr *)&sa46->sa4; in lws_async_dns_query()
776 memcpy(&sa46->sa4.sin_addr, ads, (unsigned int)m); in lws_async_dns_query()
785 ai->ai_family = sa46->sa6.sin6_family = AF_INET6; in lws_async_dns_query()
786 ai->ai_addrlen = sizeof(sa46->sa6); in lws_async_dns_query()
787 ai->ai_addr = (struct sockaddr *)&sa46->sa6; in lws_async_dns_query()
788 memcpy(&sa46->sa6.sin6_addr, ads, (unsigned int)m); in lws_async_dns_query()