Home
last modified time | relevance | path

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

12

/third_party/libwebsockets/lib/core-net/
Droute.c44 if (rou->dest.sa4.sin_family) { in _lws_routing_entry_dump()
50 if (rou->src.sa4.sin_family) { in _lws_routing_entry_dump()
56 if (rou->gateway.sa4.sin_family) { in _lws_routing_entry_dump()
145 (!robj->gateway.sa4.sin_family || in _lws_route_remove()
204 if (!dest->sa4.sin_family) { in _lws_route_est_outgoing()
223 if (rou->dest.sa4.sin_family && in _lws_route_est_outgoing()
233 dest->sa4.sin_family, rou->gateway.sa4.sin_family, in _lws_route_est_outgoing()
236 if (rou->gateway.sa4.sin_family && in _lws_route_est_outgoing()
246 (dest->sa4.sin_family == rou->gateway.sa4.sin_family || in _lws_route_est_outgoing()
247 (dest->sa4.sin_family == AF_INET && in _lws_route_est_outgoing()
[all …]
Dnetwork.c808 sa46->sa4.sin_family = AF_INET; in lws_sa46_parse_numeric_address()
809 memcpy(&sa46->sa4.sin_addr.s_addr, a, in lws_sa46_parse_numeric_address()
810 sizeof(sa46->sa4.sin_addr.s_addr)); in lws_sa46_parse_numeric_address()
888 if (sa46->sa4.sin_family == AF_INET6) in lws_sa46_write_numeric_address()
892 if (sa46->sa4.sin_family == AF_INET) in lws_sa46_write_numeric_address()
894 (uint8_t *)&sa46->sa4.sin_addr, 4, buf, len); in lws_sa46_write_numeric_address()
897 if (sa46->sa4.sin_family == AF_UNIX) in lws_sa46_write_numeric_address()
901 if (!sa46->sa4.sin_family) in lws_sa46_write_numeric_address()
904 if (sa46->sa4.sin_family == AF_INET6) in lws_sa46_write_numeric_address()
907 lws_snprintf(buf, len, "(AF%d unsupp)", (int)sa46->sa4.sin_family); in lws_sa46_write_numeric_address()
[all …]
Dadopt.c693 sock.sockfd = socket(s->dest.sa4.sin_family, in lws_create_adopt_udp2()
698 s->dest.sa4.sin_family, in lws_create_adopt_udp2()
708 s->dest.sa4.sin_port = htons(wsi->c_port); in lws_create_adopt_udp2()
748 s->dest.sa4.sin_family, in lws_create_adopt_udp2()
/third_party/libwebsockets/include/libwebsockets/
Dlws-adopt.h94 struct sockaddr_in sa4; member
100 #define sa46_socklen(_sa46) (socklen_t)((_sa46)->sa4.sin_family == AF_INET ? \
103 #define sa46_sockport(_sa46, _sp) { if ((_sa46)->sa4.sin_family == AF_INET) \
104 (_sa46)->sa4.sin_port = (_sp); else \
106 #define sa46_address(_sa46) ((uint8_t *)((_sa46)->sa4.sin_family == AF_INET ? \
107 &_sa46->sa4.sin_addr : &_sa46->sa6.sin6_addr ))
110 #define sa46_sockport(_sa46, _sp) (_sa46)->sa4.sin_port = (_sp)
111 #define sa46_address(_sa46) (uint8_t *)&_sa46->sa4.sin_addr
114 #define sa46_address_len(_sa46) ((_sa46)->sa4.sin_family == AF_INET ? 4 : 16)
/third_party/libwebsockets/lib/core-net/client/
Dsort-dns.c151 if (sa46->sa4.sin_family == AF_INET) { in lws_sort_dns_scope()
152 uint8_t *p = (uint8_t *)&sa46->sa4.sin_addr; in lws_sort_dns_scope()
175 if (sa46->sa4.sin_family == AF_INET) { in lws_sort_dns_classify()
179 (const uint8_t *)&sa46->sa4.sin_addr); in lws_sort_dns_classify()
239 if (!sa->dest.sa4.sin_family) in lws_sort_dns_scomp()
241 if (!sb->dest.sa4.sin_family) in lws_sort_dns_scomp()
579 s->dest.sa4.sin_family, dest, in lws_sort_dns_dump()
580 s->gateway.sa4.sin_family, gw, in lws_sort_dns_dump()
634 ds->dest.sa4.sin_family = (sa_family_t)ai->ai_family; in lws_sort_dns()
639 ds->dest.sa4.sin_family, afip); in lws_sort_dns()
[all …]
Dconnect3.c344 af = wsi->sa46_peer.sa4.sin_family;
345 wsi->desc.sockfd = socket(wsi->sa46_peer.sa4.sin_family,
555 wsi->sa46_peer.sa4.sin_family = 0;
/third_party/libwebsockets/lib/system/dhcpclient/
Ddhcpc4.c122 if (r->is.sa46[LWSDH_SA46_IP].sa4.sin_family != AF_INET) in lws_dhcpc4_prep()
126 lws_ser_wu32be(p, r->is.sa46[LWSDH_SA46_IP].sa4.sin_addr.s_addr); in lws_dhcpc4_prep()
130 lws_ser_wu32be(p, r->is.sa46[LWSDH_SA46_DHCP_SERVER].sa4.sin_addr.s_addr); in lws_dhcpc4_prep()
327 r->is.sa46[which].sa4.sin_family = AF_INET; in lws_sa46_set_ipv4()
328 r->is.sa46[which].sa4.sin_addr.s_addr = ntohl(lws_ser_ru32be(p)); in lws_sa46_set_ipv4()
490 if (!r->is.sa46[LWSDH_SA46_IP].sa4.sin_family || in lws_dhcpc4_parse()
491 !r->is.sa46[LWSDH_SA46_DHCP_SERVER].sa4.sin_family || in lws_dhcpc4_parse()
492 !r->is.sa46[LWSDH_SA46_IPV4_ROUTER].sa4.sin_family || in lws_dhcpc4_parse()
495 !r->is.sa46[LWSDH_SA46_DNS_SRV_1].sa4.sin_family) { in lws_dhcpc4_parse()
507 if ((r->is.sa46[LWSDH_SA46_IP].sa4.sin_addr.s_addr & in lws_dhcpc4_parse()
[all …]
/third_party/libwebsockets/lib/misc/
Dpeer-limits.c99 if (sa46.sa4.sin_family == AF_INET6) { in lws_get_or_create_peer()
105 q = &sa46.sa4.sin_addr; in lws_get_or_create_peer()
106 rlen = sizeof(sa46.sa4.sin_addr); in lws_get_or_create_peer()
122 if (peerx->sa46.sa4.sin_family == sa46.sa4.sin_family) { in lws_get_or_create_peer()
124 if (sa46.sa4.sin_family == AF_INET6 && in lws_get_or_create_peer()
128 if (sa46.sa4.sin_family == AF_INET && in lws_get_or_create_peer()
129 !memcmp(q, &peerx->sa46.sa4.sin_addr, rlen)) { in lws_get_or_create_peer()
/third_party/node/deps/cares/src/lib/
Dares_process.c466 struct sockaddr_in sa4; in read_udp_packets() member
508 fromlen = sizeof(from.sa4); in read_udp_packets()
973 struct sockaddr_in sa4; in configure_socket() member
1014 memset(&local.sa4, 0, sizeof(local.sa4)); in configure_socket()
1015 local.sa4.sin_family = AF_INET; in configure_socket()
1016 local.sa4.sin_addr.s_addr = htonl(channel->local_ip4); in configure_socket()
1017 if (bind(s, &local.sa, sizeof(local.sa4)) < 0) in configure_socket()
1042 struct sockaddr_in sa4; in open_tcp_socket() member
1050 sa = (void *)&saddr.sa4; in open_tcp_socket()
1051 salen = sizeof(saddr.sa4); in open_tcp_socket()
[all …]
Dares_ipv6.h38 struct sockaddr_in sa4; member
/third_party/libwebsockets/lib/plat/freertos/
Dfreertos-resolv.c36 sa46->sa4.sin_family = AF_INET; in lws_plat_asyncdns_init()
37 if (sa46->sa4.sin_addr.s_addr == ipv4) in lws_plat_asyncdns_init()
40 sa46->sa4.sin_addr.s_addr = ipv4; in lws_plat_asyncdns_init()
/third_party/libwebsockets/lib/plat/unix/android/
Dandroid-resolv.c48 n = ip32 == sa46->sa4.sin_addr.s_addr; in lws_plat_asyncdns_init()
49 sa46->sa4.sin_family = AF_INET; in lws_plat_asyncdns_init()
50 sa46->sa4.sin_addr.s_addr = ip32; in lws_plat_asyncdns_init()
/third_party/lwip/src/api/
Dnetdb.c388 struct sockaddr_in *sa4 = (struct sockaddr_in *)sa; in lwip_getaddrinfo() local
390 inet_addr_from_ip4addr(&sa4->sin_addr, ip_2_ip4(&addr)); in lwip_getaddrinfo()
391 sa4->sin_family = AF_INET; in lwip_getaddrinfo()
392 sa4->sin_len = sizeof(struct sockaddr_in); in lwip_getaddrinfo()
393 sa4->sin_port = lwip_htons((u16_t)port_nr); in lwip_getaddrinfo()
/third_party/pulseaudio/src/modules/raop/
Draop-client.c697 struct sockaddr_in sa4; in connect_udp_socket() local
705 pa_zero(sa4); in connect_udp_socket()
709 if (inet_pton(AF_INET, c->host, &sa4.sin_addr) > 0) { in connect_udp_socket()
710 sa4.sin_family = af = AF_INET; in connect_udp_socket()
711 sa4.sin_port = htons(port); in connect_udp_socket()
712 sa = (struct sockaddr *) &sa4; in connect_udp_socket()
713 salen = sizeof(sa4); in connect_udp_socket()
753 struct sockaddr_in sa4; in open_bind_udp_socket() local
767 pa_zero(sa4); in open_bind_udp_socket()
771 if (inet_pton(AF_INET, pa_rtsp_localip(c->rtsp), &sa4.sin_addr) > 0) { in open_bind_udp_socket()
[all …]
/third_party/flutter/skia/tests/
DGrAllocatorTest.cpp87 GrSTAllocator<4, C> sa4; in DEF_TEST() local
88 allocators.push_back(&sa4); in DEF_TEST()
/third_party/ffmpeg/libavfilter/
Dvf_xbr.c234 const uint32_t *sa4 = sa3 + (input->linesize[0]>>2); /* down x2 */ in xbr_filter() local
244 sa4 = sa3; in xbr_filter()
246 sa4 = sa3 = sa2; in xbr_filter()
255 const uint32_t H5 = sa4[2]; in xbr_filter()
262 const uint32_t G5 = sa4[pprev]; in xbr_filter()
274 const uint32_t I5 = sa4[pnext]; in xbr_filter()
314 sa4 += 1; in xbr_filter()
/third_party/pulseaudio/src/modules/rtp/
Dmodule-rtp-recv.c679 struct sockaddr_in sa4; in pa__init() local
698 if (inet_pton(AF_INET, sap_address, &sa4.sin_addr) > 0) { in pa__init()
699 sa4.sin_family = AF_INET; in pa__init()
700 sa4.sin_port = htons(SAP_PORT); in pa__init()
701 sa = (struct sockaddr*) &sa4; in pa__init()
702 salen = sizeof(sa4); in pa__init()
/third_party/libwebsockets/lib/system/async-dns/
Dasync-dns.c368 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()
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()
/third_party/musl/src/network/
Dlookup_name.c381 struct sockaddr_in sa4 = { 0 }, da4 = { in __lookup_name() local
400 sa = &sa4; salen = sizeof sa4; in __lookup_name()
414 &sa4.sin_addr, 4); in __lookup_name()
/third_party/musl/porting/linux/user/src/network/
Dlookup_name.c402 struct sockaddr_in sa4 = { 0 }, da4 = { local
421 sa = &sa4; salen = sizeof sa4;
435 &sa4.sin_addr, 4);
/third_party/musl/porting/liteos_a/kernel/src/math/
Derff.c64 sa4 = 6.4538726807e+02, /* 0x442158c9 */ variable
110 S = 1.0f+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*( in erfc2()
Derf.c154 sa4 = 6.45387271733267880336e+02, /* 0x40842B19, 0x21EC2868 */ variable
200 S = 1.0+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*( in erfc2()
/third_party/musl/src/math/
Derf.c154 sa4 = 6.45387271733267880336e+02, /* 0x40842B19, 0x21EC2868 */ variable
200 S = 1.0+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*( in erfc2()
Derff.c64 sa4 = 6.4538726807e+02, /* 0x442158c9 */ variable
110 S = 1.0f+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*( in erfc2()
/third_party/libwebsockets/lib/plat/unix/
Dunix-sockets.c538 if (is->sa46[LWSDH_SA46_IP].sa4.sin_family == AF_INET) { in lws_plat_ifconfig()
553 &is->sa46[LWSDH_SA46_IPV4_ROUTER].sa4, in lws_plat_ifconfig()
568 sa4.sin_addr.s_addr), LWS_ERRNO); in lws_plat_ifconfig()

12