/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
D | dhdu_linux.c | 101 struct ifreq *ifr = (struct ifreq *)dhd; in __dhd_driver_io() local 104 dhd_nli.ifidx = if_nametoindex(ifr->ifr_name); in __dhd_driver_io() 106 fprintf(stderr, "invalid device %s\n", ifr->ifr_name); in __dhd_driver_io() 120 struct ifreq *ifr = (struct ifreq *)dhd; in __dhd_driver_io() local 125 ifr->ifr_data = (caddr_t)ioc; in __dhd_driver_io() 131 ret = ioctl(s, SIOCDEVPRIVATE, ifr); in __dhd_driver_io() 195 struct ifreq ifr; in dhd_get_dev_type() local 207 ifr.ifr_data = (caddr_t)&info; in dhd_get_dev_type() 208 strncpy(ifr.ifr_name, name, IFNAMSIZ); in dhd_get_dev_type() 209 if ((ret = ioctl(s, SIOCETHTOOL, &ifr)) < 0) { in dhd_get_dev_type() [all …]
|
D | dhdu_common.h | 83 static int process_args(struct ifreq* ifr, char **argv);
|
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 73 struct ifreq ifr; in wpa_driver_nl80211_driver_cmd() local 90 memset(&ifr, 0, sizeof(ifr)); in wpa_driver_nl80211_driver_cmd() 93 os_strlcpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); in wpa_driver_nl80211_driver_cmd() 98 ifr.ifr_data = &priv_cmd; in wpa_driver_nl80211_driver_cmd() 100 if ((ret = ioctl(drv->global->ioctl_sock, SIOCDEVPRIVATE + 1, &ifr)) < 0) { in wpa_driver_nl80211_driver_cmd()
|
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/ |
D | IPACM_ConntrackClient.cpp | 175 struct ifreq ifr; in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() local 178 memset(&ifr, 0, sizeof(struct ifreq)); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 179 ifr.ifr_addr.sa_family = AF_INET; in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 181 if(strlen(IPACM_Iface::ipacmcfg->ipa_virtual_iface_name) >= sizeof(ifr.ifr_name)) in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 188 (void)strlcpy(ifr.ifr_name, IPACM_Iface::ipacmcfg->ipa_virtual_iface_name, sizeof(ifr.ifr_name)); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 189 IPACMDBG("bridge interface name (%s)\n", ifr.ifr_name); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 191 ret = ioctl(fd, SIOCGIFADDR, &ifr); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 194 IPACMERR("unable to retrieve (%s) interface address\n",ifr.ifr_name); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 198 …IPACMDBG("Interface (%s) address %s\n", ifr.ifr_name, inet_ntoa(((struct sockaddr_in *)&ifr.ifr_ad… in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 199 ipv4_addr = ntohl(((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs()
|
D | IPACM_Iface.cpp | 322 struct ifreq ifr; in iface_ipa_index_query() local 353 memset(&ifr, 0, sizeof(struct ifreq)); in iface_ipa_index_query() 355 ifr.ifr_ifindex = interface_index; in iface_ipa_index_query() 358 if (ioctl(fd, SIOCGIFNAME, &ifr) < 0) in iface_ipa_index_query() 366 IPACMDBG_H("Received interface name %s\n", ifr.ifr_name); in iface_ipa_index_query() 369 if (strncmp(ifr.ifr_name, in iface_ipa_index_query() 373 IPACMDBG_H("Interface (%s) linux(%d) mapped to ipa(%d) \n", ifr.ifr_name, in iface_ipa_index_query() 392 struct ifreq ifr; in iface_addr_query() local 405 memset(&ifr, 0, sizeof(struct ifreq)); in iface_addr_query() 407 ifr.ifr_ifindex = interface_index; in iface_addr_query() [all …]
|
D | IPACM_OffloadManager.cpp | 699 struct ifreq ifr; in ipa_get_if_index() local 707 if(strnlen(if_name, sizeof(if_name)) >= sizeof(ifr.ifr_name)) { in ipa_get_if_index() 713 memset(&ifr, 0, sizeof(struct ifreq)); in ipa_get_if_index() 714 (void)strlcpy(ifr.ifr_name, if_name, sizeof(ifr.ifr_name)); in ipa_get_if_index() 717 if(ioctl(fd,SIOCGIFINDEX , &ifr) < 0) in ipa_get_if_index() 719 IPACMERR("call_ioctl_on_dev: ioctl failed, interface name (%s):\n", ifr.ifr_name); in ipa_get_if_index() 724 *if_index = ifr.ifr_ifindex; in ipa_get_if_index()
|
D | IPACM_Main.cpp | 1077 struct ifreq ifr; in ipa_get_if_index() local 1085 memset(&ifr, 0, sizeof(struct ifreq)); in ipa_get_if_index() 1087 (void)strlcpy(ifr.ifr_name, if_name, sizeof(ifr.ifr_name)); in ipa_get_if_index() 1089 if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0) in ipa_get_if_index() 1097 *if_index = ifr.ifr_ifindex; in ipa_get_if_index()
|
D | IPACM_ConntrackListener.cpp | 146 struct ifreq ifr; in CheckNatIface() local 199 memset(&ifr, 0, sizeof(struct ifreq)); in CheckNatIface() 200 ifr.ifr_ifindex = data->if_index; in CheckNatIface() 201 if (ioctl(fd, SIOCGIFNAME, &ifr) < 0) in CheckNatIface() 211 if (strncmp(ifr.ifr_name, in CheckNatIface()
|
D | IPACM_Netlink.cpp | 1613 struct ifreq ifr; in ipa_get_if_name() local 1621 memset(&ifr, 0, sizeof(struct ifreq)); in ipa_get_if_name() 1622 ifr.ifr_ifindex = if_index; in ipa_get_if_name() 1625 if(ioctl(fd, SIOCGIFNAME, &ifr) < 0) in ipa_get_if_name() 1632 (void)strlcpy(if_name, ifr.ifr_name, sizeof(ifr.ifr_name)); in ipa_get_if_name() 1633 IPACMDBG("interface name %s\n", ifr.ifr_name); in ipa_get_if_name()
|
/hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/src/ |
D | IPACM_ConntrackClient.cpp | 175 struct ifreq ifr; in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() local 178 memset(&ifr, 0, sizeof(struct ifreq)); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 179 ifr.ifr_addr.sa_family = AF_INET; in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 181 if(strlen(IPACM_Iface::ipacmcfg->ipa_virtual_iface_name) >= sizeof(ifr.ifr_name)) in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 188 (void)strlcpy(ifr.ifr_name, IPACM_Iface::ipacmcfg->ipa_virtual_iface_name, sizeof(ifr.ifr_name)); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 189 IPACMDBG("bridge interface name (%s)\n", ifr.ifr_name); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 191 ret = ioctl(fd, SIOCGIFADDR, &ifr); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 194 IPACMERR("unable to retrieve (%s) interface address\n",ifr.ifr_name); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 198 …IPACMDBG("Interface (%s) address %s\n", ifr.ifr_name, inet_ntoa(((struct sockaddr_in *)&ifr.ifr_ad… in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 199 ipv4_addr = ntohl(((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs()
|
D | IPACM_Iface.cpp | 322 struct ifreq ifr; in iface_ipa_index_query() local 353 memset(&ifr, 0, sizeof(struct ifreq)); in iface_ipa_index_query() 355 ifr.ifr_ifindex = interface_index; in iface_ipa_index_query() 358 if (ioctl(fd, SIOCGIFNAME, &ifr) < 0) in iface_ipa_index_query() 366 IPACMDBG_H("Received interface name %s\n", ifr.ifr_name); in iface_ipa_index_query() 369 if (strncmp(ifr.ifr_name, in iface_ipa_index_query() 373 IPACMDBG_H("Interface (%s) linux(%d) mapped to ipa(%d) \n", ifr.ifr_name, in iface_ipa_index_query() 392 struct ifreq ifr; in iface_addr_query() local 405 memset(&ifr, 0, sizeof(struct ifreq)); in iface_addr_query() 407 ifr.ifr_ifindex = interface_index; in iface_addr_query() [all …]
|
D | IPACM_OffloadManager.cpp | 695 struct ifreq ifr; in ipa_get_if_index() local 703 if(strnlen(if_name, sizeof(if_name)) >= sizeof(ifr.ifr_name)) { in ipa_get_if_index() 709 memset(&ifr, 0, sizeof(struct ifreq)); in ipa_get_if_index() 710 (void)strlcpy(ifr.ifr_name, if_name, sizeof(ifr.ifr_name)); in ipa_get_if_index() 713 if(ioctl(fd,SIOCGIFINDEX , &ifr) < 0) in ipa_get_if_index() 715 IPACMERR("call_ioctl_on_dev: ioctl failed, interface name (%s):\n", ifr.ifr_name); in ipa_get_if_index() 720 *if_index = ifr.ifr_ifindex; in ipa_get_if_index()
|
D | IPACM_Main.cpp | 1042 struct ifreq ifr; in ipa_get_if_index() local 1050 memset(&ifr, 0, sizeof(struct ifreq)); in ipa_get_if_index() 1052 (void)strlcpy(ifr.ifr_name, if_name, sizeof(ifr.ifr_name)); in ipa_get_if_index() 1054 if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0) in ipa_get_if_index() 1062 *if_index = ifr.ifr_ifindex; in ipa_get_if_index()
|
D | IPACM_ConntrackListener.cpp | 146 struct ifreq ifr; in CheckNatIface() local 199 memset(&ifr, 0, sizeof(struct ifreq)); in CheckNatIface() 200 ifr.ifr_ifindex = data->if_index; in CheckNatIface() 201 if (ioctl(fd, SIOCGIFNAME, &ifr) < 0) in CheckNatIface() 211 if (strncmp(ifr.ifr_name, in CheckNatIface()
|
D | IPACM_Netlink.cpp | 1613 struct ifreq ifr; in ipa_get_if_name() local 1621 memset(&ifr, 0, sizeof(struct ifreq)); in ipa_get_if_name() 1622 ifr.ifr_ifindex = if_index; in ipa_get_if_name() 1625 if(ioctl(fd, SIOCGIFNAME, &ifr) < 0) in ipa_get_if_name() 1632 (void)strlcpy(if_name, ifr.ifr_name, sizeof(ifr.ifr_name)); in ipa_get_if_name() 1633 IPACMDBG("interface name %s\n", ifr.ifr_name); in ipa_get_if_name()
|
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/ |
D | IPACM_ConntrackClient.cpp | 175 struct ifreq ifr; in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() local 177 if(strlen(IPACM_Iface::ipacmcfg->ipa_virtual_iface_name) >= sizeof(ifr.ifr_name)) in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 186 memset(&ifr, 0, sizeof(struct ifreq)); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 187 ifr.ifr_addr.sa_family = AF_INET; in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 188 (void)strlcpy(ifr.ifr_name, IPACM_Iface::ipacmcfg->ipa_virtual_iface_name, sizeof(ifr.ifr_name)); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 189 IPACMDBG("bridge interface name (%s)\n", ifr.ifr_name); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 191 ret = ioctl(fd, SIOCGIFADDR, &ifr); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 194 IPACMERR("unable to retrieve (%s) interface address\n",ifr.ifr_name); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 198 …IPACMDBG("Interface (%s) address %s\n", ifr.ifr_name, inet_ntoa(((struct sockaddr_in *)&ifr.ifr_ad… in IPA_Conntrack_Filters_Ignore_Bridge_Addrs() 199 ipv4_addr = ntohl(((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr); in IPA_Conntrack_Filters_Ignore_Bridge_Addrs()
|
D | IPACM_Iface.cpp | 322 struct ifreq ifr; in iface_ipa_index_query() local 353 memset(&ifr, 0, sizeof(struct ifreq)); in iface_ipa_index_query() 355 ifr.ifr_ifindex = interface_index; in iface_ipa_index_query() 358 if (ioctl(fd, SIOCGIFNAME, &ifr) < 0) in iface_ipa_index_query() 366 IPACMDBG_H("Received interface name %s\n", ifr.ifr_name); in iface_ipa_index_query() 369 if (strncmp(ifr.ifr_name, in iface_ipa_index_query() 373 IPACMDBG_H("Interface (%s) linux(%d) mapped to ipa(%d) \n", ifr.ifr_name, in iface_ipa_index_query() 392 struct ifreq ifr; in iface_addr_query() local 405 memset(&ifr, 0, sizeof(struct ifreq)); in iface_addr_query() 407 ifr.ifr_ifindex = interface_index; in iface_addr_query() [all …]
|
D | IPACM_OffloadManager.cpp | 634 struct ifreq ifr; in ipa_get_if_index() local 642 if(strnlen(if_name, sizeof(if_name)) >= sizeof(ifr.ifr_name)) { in ipa_get_if_index() 648 memset(&ifr, 0, sizeof(struct ifreq)); in ipa_get_if_index() 649 (void)strncpy(ifr.ifr_name, if_name, sizeof(ifr.ifr_name)); in ipa_get_if_index() 652 if(ioctl(fd,SIOCGIFINDEX , &ifr) < 0) in ipa_get_if_index() 654 IPACMERR("call_ioctl_on_dev: ioctl failed, interface name (%s):\n", ifr.ifr_name); in ipa_get_if_index() 659 *if_index = ifr.ifr_ifindex; in ipa_get_if_index()
|
D | IPACM_Main.cpp | 969 struct ifreq ifr; in ipa_get_if_index() local 977 memset(&ifr, 0, sizeof(struct ifreq)); in ipa_get_if_index() 979 (void)strlcpy(ifr.ifr_name, if_name, sizeof(ifr.ifr_name)); in ipa_get_if_index() 981 if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0) in ipa_get_if_index() 989 *if_index = ifr.ifr_ifindex; in ipa_get_if_index()
|
D | IPACM_ConntrackListener.cpp | 146 struct ifreq ifr; in CheckNatIface() local 199 memset(&ifr, 0, sizeof(struct ifreq)); in CheckNatIface() 200 ifr.ifr_ifindex = data->if_index; in CheckNatIface() 201 if (ioctl(fd, SIOCGIFNAME, &ifr) < 0) in CheckNatIface() 211 if (strncmp(ifr.ifr_name, in CheckNatIface()
|
D | IPACM_Netlink.cpp | 1603 struct ifreq ifr; in ipa_get_if_name() local 1611 memset(&ifr, 0, sizeof(struct ifreq)); in ipa_get_if_name() 1612 ifr.ifr_ifindex = if_index; in ipa_get_if_name() 1615 if(ioctl(fd, SIOCGIFNAME, &ifr) < 0) in ipa_get_if_name() 1622 (void)strncpy(if_name, ifr.ifr_name, sizeof(ifr.ifr_name)); in ipa_get_if_name() 1623 IPACMDBG("interface name %s\n", ifr.ifr_name); in ipa_get_if_name()
|
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 74 struct ifreq ifr; in wpa_driver_nl80211_driver_cmd() local 110 memset(&ifr, 0, sizeof(ifr)); in wpa_driver_nl80211_driver_cmd() 112 os_strlcpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); in wpa_driver_nl80211_driver_cmd() 121 ifr.ifr_data = &priv_cmd; in wpa_driver_nl80211_driver_cmd() 123 if ((ret = ioctl(drv->global->ioctl_sock, SIOCDEVPRIVATE + 1, &ifr)) < 0) { in wpa_driver_nl80211_driver_cmd()
|
/hardware/interfaces/tetheroffload/control/1.0/vts/functional/ |
D | VtsHalTetheroffloadControlV1_0TargetTest.cpp | 244 struct ifreq ifr = {}; in interfaceIsUp() local 245 strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in interfaceIsUp() 248 int ret = ioctl(sock, SIOCGIFFLAGS, &ifr, sizeof(ifr)); in interfaceIsUp() 250 return (ret == 0) && (ifr.ifr_flags & IFF_UP); in interfaceIsUp()
|