Home
last modified time | relevance | path

Searched refs:ifreq (Results 1 – 25 of 104) sorted by relevance

12345

/third_party/libwebsockets/lib/misc/
Dgetifaddrs.c76 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/
Dpty04.c247 struct ifreq ifreq = { 0 }; in open_netdev() local
250 SAFE_IOCTL(pts, SIOCGIFNAME, ifreq.ifr_name); in open_netdev()
251 tst_res(TINFO, "Netdev is %s", ifreq.ifr_name); in open_netdev()
255 ifreq.ifr_mtu = ldisc->mtu; in open_netdev()
256 if (ioctl(sk, SIOCSIFMTU, &ifreq)) in open_netdev()
258 SAFE_IOCTL(sk, SIOCGIFMTU, &ifreq); in open_netdev()
259 mtu = ifreq.ifr_mtu; in open_netdev()
262 SAFE_IOCTL(sk, SIOCGIFFLAGS, &ifreq); in open_netdev()
263 ifreq.ifr_flags |= IFF_UP | IFF_RUNNING; in open_netdev()
264 SAFE_IOCTL(sk, SIOCSIFFLAGS, &ifreq); in open_netdev()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Dlinux_ioctl.c21 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()
Ddriver_wired_common.c35 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()
Ddriver_nl80211_android.c45 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/
Dlinux_ioctl.c21 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()
Ddriver_wired_common.c35 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()
Ddriver_nl80211_android.c45 struct ifreq ifr; in android_priv_cmd()
79 struct ifreq ifr; in android_pno_start()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
Dioctl.c93 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/
Dbrctl.c45 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/porting/liteos_a/toys/net/
Difconfig.c102 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/toybox/toys/net/
Difconfig.c103 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/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_new_file_test.c100 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/ltp/testcases/network/packet/
Dfanout01.c70 struct ifreq ifr; in run()
72 memset(&ifr, 0, sizeof(struct ifreq)); in run()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind06.c35 struct ifreq ifr; in setup()
82 struct ifreq ifr; in run()
/third_party/musl/include/net/
Dif.h76 struct ifreq { struct
120 struct ifreq *ifcu_req;
/third_party/musl/porting/liteos_m/kernel/include/net/
Dif.h76 struct ifreq { struct
120 struct ifreq *ifcu_req;
/third_party/musl/porting/liteos_m_iccarm/kernel/include/net/
Dif.h76 struct ifreq { struct
120 struct ifreq *ifcu_req;
/third_party/musl/ndk_musl_include/net/
Dif.h76 struct ifreq { struct
120 struct ifreq *ifcu_req;
/third_party/musl/porting/uniproton/kernel/include/net/
Dif.h76 struct ifreq { struct
120 struct ifreq *ifcu_req;
/third_party/musl/porting/liteos_a/kernel/include/net/
Dif.h76 struct ifreq { struct
120 struct ifreq *ifcu_req;
/third_party/libwebsockets/lib/plat/unix/
Dunix-sockets.c405 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/ltp/testcases/kernel/syscalls/sockioctl/
Dsockioctl01.c51 static struct ifreq ifr;
231 ifr = *(struct ifreq *)ifc.ifc_buf; in setup3()
/third_party/libuv/src/unix/
Dos390.c362 struct ifreq flg; in uv_interface_addresses()
363 struct ifreq* ifr; in uv_interface_addresses()
364 struct ifreq* p; in uv_interface_addresses()
397 ifr = (struct ifreq*) in uv_interface_addresses()
440 ifr = (struct ifreq*) in uv_interface_addresses()
/third_party/musl/porting/liteos_a/user/src/network/
Dgetifaddrs.c245 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()

12345