/third_party/libwebsockets/lib/misc/ |
D | getifaddrs.c | 76 struct ifreq *ifr; in getifaddrs2() 119 struct ifreq ifreq; in getifaddrs2() local 123 ifr = (struct ifreq *)p; in getifaddrs2() 136 memset(&ifreq, 0, sizeof(ifreq)); in getifaddrs2() 137 memcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifr->ifr_name)); in getifaddrs2() 139 if (ioctl(fd, siocgifflags, &ifreq) < 0) { in getifaddrs2() 148 (*end)->ifa_flags = (unsigned int)ifreq.ifr_flags; in getifaddrs2() 155 if (ifreq.ifr_flags & IFF_BROADCAST) { in getifaddrs2() 160 } else if (ifreq.ifr_flags & IFF_POINTOPOINT) { in getifaddrs2() 201 sizeof(struct ifreq)); in getifaddrs() [all …]
|
/third_party/ltp/testcases/kernel/pty/ |
D | pty04.c | 246 struct ifreq ifreq = { 0 }; in open_netdev() local 249 SAFE_IOCTL(pts, SIOCGIFNAME, ifreq.ifr_name); in open_netdev() 250 tst_res(TINFO, "Netdev is %s", ifreq.ifr_name); in open_netdev() 254 ifreq.ifr_mtu = ldisc->mtu; in open_netdev() 255 if (ioctl(sk, SIOCSIFMTU, &ifreq)) in open_netdev() 257 SAFE_IOCTL(sk, SIOCGIFMTU, &ifreq); in open_netdev() 258 mtu = ifreq.ifr_mtu; in open_netdev() 261 SAFE_IOCTL(sk, SIOCGIFFLAGS, &ifreq); in open_netdev() 262 ifreq.ifr_flags |= IFF_UP | IFF_RUNNING; in open_netdev() 263 SAFE_IOCTL(sk, SIOCSIFFLAGS, &ifreq); in open_netdev() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | linux_ioctl.c | 21 struct ifreq ifr; in linux_set_iface_flags() 61 struct ifreq ifr; in linux_iface_up() 83 struct ifreq ifr; in linux_get_ifhwaddr() 106 struct ifreq ifr; in linux_set_ifhwaddr() 152 struct ifreq ifr; in linux_br_add_if() 177 struct ifreq ifr; in linux_br_del_if()
|
D | driver_wired_common.c | 35 struct ifreq ifr; in driver_wired_get_ifflags() 60 struct ifreq ifr; in driver_wired_set_ifflags() 85 struct ifreq ifr; in driver_wired_multi()
|
D | driver_nl80211_android.c | 45 struct ifreq ifr; in android_priv_cmd() 79 struct ifreq ifr; in android_pno_start()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | linux_ioctl.c | 21 struct ifreq ifr; in linux_set_iface_flags() 61 struct ifreq ifr; in linux_iface_up() 83 struct ifreq ifr; in linux_get_ifhwaddr() 106 struct ifreq ifr; in linux_set_ifhwaddr() 152 struct ifreq ifr; in linux_br_add_if() 177 struct ifreq ifr; in linux_br_del_if()
|
D | driver_wired_common.c | 35 struct ifreq ifr; in driver_wired_get_ifflags() 60 struct ifreq ifr; in driver_wired_set_ifflags() 85 struct ifreq ifr; in driver_wired_multi()
|
D | driver_nl80211_android.c | 45 struct ifreq ifr; in android_priv_cmd() 79 struct ifreq ifr; in android_pno_start()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
D | ioctl.c | 93 struct ifreq ifr[3]; in ioctl_0200() 95 ifc.ifc_len = 3 * sizeof(struct ifreq); in ioctl_0200() 99 int ifrCount = ifc.ifc_len / sizeof(struct ifreq); in ioctl_0200() 112 struct ifreq ifrAddr = {0}; in ioctl_0200()
|
/third_party/toybox/toys/pending/ |
D | brctl.c | 45 struct ifreq ifr; 60 struct ifreq ifr; in get_br_info() 142 struct ifreq ifr; in br_addif() 160 struct ifreq ifr; in br_delif() 194 struct ifreq ifr; in set_time() 260 struct ifreq ifr; in set_cost_prio()
|
/third_party/toybox/toys/net/ |
D | ifconfig.c | 103 struct ifreq ifre; in display_ifconfig() 342 struct ifreq *ifre; in show_iface() 348 ifcon.ifc_len = sizeof(struct ifreq)*num; in show_iface() 351 if (ifcon.ifc_len != sizeof(struct ifreq)*num) break; in show_iface() 355 for(num = 0; num < ifcon.ifc_len && ifre; num += sizeof(struct ifreq), ifre++) in show_iface() 371 #define IFREQ_OFFSZ(x) -(int)((offsetof(struct ifreq, x)<<16) + sizeof(ifre.x)) 376 struct ifreq ifre; in ifconfig_main() 386 memset(&ifre, 0, sizeof(struct ifreq)); in ifconfig_main()
|
/third_party/toybox/porting/liteos_a/toys/net/ |
D | ifconfig.c | 102 struct ifreq ifre; in display_ifconfig() 341 struct ifreq *ifre; in show_iface() 347 ifcon.ifc_len = sizeof(struct ifreq)*num; in show_iface() 350 if (ifcon.ifc_len != sizeof(struct ifreq)*num) break; in show_iface() 354 for(num = 0; num < ifcon.ifc_len && ifre; num += sizeof(struct ifreq), ifre++) in show_iface() 370 #define IFREQ_OFFSZ(x) -(int)((offsetof(struct ifreq, x)<<16) + sizeof(ifre.x)) 375 struct ifreq ifre; in ifconfig_main() 399 memset(&ifre, 0, sizeof(struct ifreq)); in ifconfig_main()
|
/third_party/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_new_file_test.c | 100 struct ifreq ifreq; in stage_file_test() local 604 memset(&ifreq, 0, sizeof(ifreq)); in stage_file_test() 605 snprintf(ifreq.ifr_name, sizeof(ifreq.ifr_name) - 1, "lo"); in stage_file_test() 606 show_result(ioctl(fd, 35123, &ifreq), 1); in stage_file_test() 610 show_result(ioctl(fd, 35123, &ifreq), 0); in stage_file_test()
|
/third_party/curl/lib/ |
D | if2ip.h | 58 struct ifreq { struct 88 #define SIOCGIFADDR _IOW('s', 102, struct ifreq) /* Get if addr */ argument
|
/third_party/ltp/testcases/kernel/syscalls/sockioctl/ |
D | sockioctl01.c | 51 static struct ifreq ifr; 55 static struct ifreq buf[200]; 228 ifr = *(struct ifreq *)ifc.ifc_buf; in setup3()
|
/third_party/ltp/testcases/network/packet/ |
D | fanout01.c | 54 struct ifreq ifr; in run() 56 memset(&ifr, 0, sizeof(struct ifreq)); in run()
|
/third_party/ltp/testcases/kernel/syscalls/bind/ |
D | bind06.c | 31 struct ifreq ifr; in setup() 72 struct ifreq ifr; in run()
|
/third_party/musl/include/net/ |
D | if.h | 76 struct ifreq { struct 120 struct ifreq *ifcu_req;
|
/third_party/musl/porting/liteos_m/kernel/include/net/ |
D | if.h | 76 struct ifreq { struct 120 struct ifreq *ifcu_req;
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/net/ |
D | if.h | 76 struct ifreq { struct 120 struct ifreq *ifcu_req;
|
/third_party/musl/porting/uniproton/kernel/include/net/ |
D | if.h | 76 struct ifreq { struct 120 struct ifreq *ifcu_req;
|
/third_party/musl/porting/liteos_a/kernel/include/net/ |
D | if.h | 76 struct ifreq { struct 120 struct ifreq *ifcu_req;
|
/third_party/libwebsockets/lib/plat/unix/ |
D | unix-sockets.c | 405 struct ifreq i; in lws_plat_ifname_to_hwaddr() 467 struct ifreq ifr; in lws_plat_if_up() 499 struct ifreq i; in lws_plat_BINDTODEVICE() 523 struct ifreq ifr; in lws_plat_ifconfig()
|
/third_party/musl/porting/liteos_a/user/src/network/ |
D | getifaddrs.c | 245 struct ifreq ifr[MAX_IF_NO]; in getifaddrs() 255 if (ifconfig.ifc_len % sizeof(struct ifreq)) { in getifaddrs() 259 ifno = ifconfig.ifc_len / sizeof(struct ifreq); in getifaddrs()
|
/third_party/musl/src/network/liteos_a/ |
D | getifaddrs.c | 245 struct ifreq ifr[MAX_IF_NO]; in getifaddrs() 255 if (ifconfig.ifc_len % sizeof(struct ifreq)) { in getifaddrs() 259 ifno = ifconfig.ifc_len / sizeof(struct ifreq); in getifaddrs()
|