Home
last modified time | relevance | path

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

12

/third_party/node/deps/uv/src/unix/
Daix.c1147 ((char*)ifr + sizeof(ifr->ifr_name) + ADDR_SIZE(ifr->ifr_addr)); in uv_interface_addresses()
1149 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
1150 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
1180 ((char*)ifr + sizeof(ifr->ifr_name) + ADDR_SIZE(ifr->ifr_addr)); in uv_interface_addresses()
1182 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
1183 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
1186 inet6 = (p->ifr_addr.sa_family == AF_INET6); in uv_interface_addresses()
1200 address->address.address6 = *((struct sockaddr_in6*) &p->ifr_addr); in uv_interface_addresses()
1202 address->address.address4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
1210 memcpy(&if6.ifr_Addr, &p->ifr_addr, sizeof(if6.ifr_Addr)); in uv_interface_addresses()
[all …]
Dos390.c456 ((char*)ifr + sizeof(ifr->ifr_name) + ADDR_SIZE(ifr->ifr_addr)); in uv_interface_addresses()
458 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
459 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
510 ((char*)ifr + sizeof(ifr->ifr_name) + ADDR_SIZE(ifr->ifr_addr)); in uv_interface_addresses()
512 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
513 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
547 address->address.address4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
556 address->netmask.netmask4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
/third_party/libuv/src/unix/
Daix.c1147 ((char*)ifr + sizeof(ifr->ifr_name) + ADDR_SIZE(ifr->ifr_addr)); in uv_interface_addresses()
1149 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
1150 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
1180 ((char*)ifr + sizeof(ifr->ifr_name) + ADDR_SIZE(ifr->ifr_addr)); in uv_interface_addresses()
1182 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
1183 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
1186 inet6 = (p->ifr_addr.sa_family == AF_INET6); in uv_interface_addresses()
1200 address->address.address6 = *((struct sockaddr_in6*) &p->ifr_addr); in uv_interface_addresses()
1202 address->address.address4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
1210 memcpy(&if6.ifr_Addr, &p->ifr_addr, sizeof(if6.ifr_Addr)); in uv_interface_addresses()
[all …]
Dos390.c456 ((char*)ifr + sizeof(ifr->ifr_name) + ADDR_SIZE(ifr->ifr_addr)); in uv_interface_addresses()
458 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
459 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
510 ((char*)ifr + sizeof(ifr->ifr_name) + ADDR_SIZE(ifr->ifr_addr)); in uv_interface_addresses()
512 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
513 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
547 address->address.address4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
556 address->netmask.netmask4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
/third_party/toybox/toys/net/
Difconfig.c104 struct sockaddr_in *si = (void *)&ifre.ifr_addr; in display_ifconfig()
158 ifre.ifr_addr.sa_family = AF_INET; in display_ifconfig()
159 memset(&ifre.ifr_addr, 0, sizeof(ifre.ifr_addr)); in display_ifconfig()
161 pp = (char *)&ifre.ifr_addr; in display_ifconfig()
162 for (i = 0; i<sizeof(ifre.ifr_addr); i++) if (pp[i]) break; in display_ifconfig()
164 if (!(toys.optflags&FLAG_S) && i != sizeof(ifre.ifr_addr)) { in display_ifconfig()
165 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; in display_ifconfig()
516 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; in ifconfig_main()
/third_party/toybox/porting/liteos_a/toys/net/
Difconfig.c103 struct sockaddr_in *si = (void *)&ifre.ifr_addr; in display_ifconfig()
157 ifre.ifr_addr.sa_family = AF_INET; in display_ifconfig()
158 memset(&ifre.ifr_addr, 0, sizeof(ifre.ifr_addr)); in display_ifconfig()
160 pp = (char *)&ifre.ifr_addr; in display_ifconfig()
161 for (i = 0; i<sizeof(ifre.ifr_addr); i++) if (pp[i]) break; in display_ifconfig()
163 if (!(toys.optflags&FLAG_S) && i != sizeof(ifre.ifr_addr)) { in display_ifconfig()
164 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; in display_ifconfig()
529 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; in ifconfig_main()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
Dioctl.c102 printf("address: %s\n", inet_ntoa(((struct sockaddr_in *)&(ifr[i].ifr_addr))->sin_addr)); in ioctl_0200()
111 strcpy(interAddr, inet_ntoa(((struct sockaddr_in *)&(ifr[0].ifr_addr))->sin_addr)); in ioctl_0200()
116 struct sockaddr_in *srvAddr = (struct sockaddr_in *)&ifrAddr.ifr_addr; in ioctl_0200()
/third_party/curl/lib/
Dif2ip.c217 req.ifr_addr.sa_family = AF_INET; in Curl_if2ip()
227 s = (struct sockaddr_in *)(void *)&req.ifr_addr; in Curl_if2ip()
Dif2ip.h80 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
/third_party/libwebsockets/lib/plat/unix/
Dunix-sockets.c502 i.ifr_addr.sa_family = AF_INET; in lws_plat_BINDTODEVICE()
532 memcpy(&ifr.ifr_addr, &is->sa46[LWSDH_SA46_IP], sizeof(struct sockaddr)); in lws_plat_ifconfig()
544 memcpy(&ifr.ifr_addr, &sin, sizeof(struct sockaddr)); in lws_plat_ifconfig()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_wired_common.c108 dlp = (struct sockaddr_dl *) &ifr.ifr_addr; in driver_wired_multi()
122 sap = (struct sockaddr *) &ifr.ifr_addr; in driver_wired_multi()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_wired_common.c108 dlp = (struct sockaddr_dl *) &ifr.ifr_addr; in driver_wired_multi()
122 sap = (struct sockaddr *) &ifr.ifr_addr; in driver_wired_multi()
/third_party/toybox/toys/pending/
Darping.c59 req.ifr_addr.sa_family = AF_INET; in get_interface()
68 ip = (struct sockaddr_in*) &req.ifr_addr; in get_interface()
/third_party/musl/include/net/
Dif.h98 #define ifr_addr ifr_ifru.ifru_addr macro
/third_party/musl/porting/liteos_m/kernel/include/net/
Dif.h98 #define ifr_addr ifr_ifru.ifru_addr macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/net/
Dif.h98 #define ifr_addr ifr_ifru.ifru_addr macro
/third_party/musl/porting/uniproton/kernel/include/net/
Dif.h98 #define ifr_addr ifr_ifru.ifru_addr macro
/third_party/musl/porting/liteos_a/kernel/include/net/
Dif.h98 #define ifr_addr ifr_ifru.ifru_addr macro
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Diapp.c420 paddr = (struct sockaddr_in *) &ifr.ifr_addr; in iapp_init()
435 paddr = (struct sockaddr_in *) &ifr.ifr_addr; in iapp_init()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_upnp.c940 addr = (void *) &req.ifr_addr; in get_netif_info()
954 addr = (struct sockaddr_in *) &req.ifr_addr; in get_netif_info()
965 os_memcpy(mac, req.ifr_addr.sa_data, 6); in get_netif_info()
/third_party/libwebsockets/lib/misc/
Dgetifaddrs.c124 sa = &ifr->ifr_addr; in getifaddrs2()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_upnp.c917 addr = (void *) &req.ifr_addr; in get_netif_info()
929 os_memcpy(mac, req.ifr_addr.sa_data, 6); in get_netif_info()
/third_party/musl/porting/liteos_a/user/src/network/
Dgetifaddrs.c270 memcpy(ifa->ifa_addr, &ifr[i].ifr_addr, sizeof(struct sockaddr)); in getifaddrs()
/third_party/musl/src/network/liteos_a/
Dgetifaddrs.c270 memcpy(ifa->ifa_addr, &ifr[i].ifr_addr, sizeof(struct sockaddr)); in getifaddrs()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/l2_packet/
Dl2_packet_linux.c475 saddr = aliasing_hide_typecast(&ifr.ifr_addr, struct sockaddr_in); in l2_packet_get_ip_addr()

12