Home
last modified time | relevance | path

Searched refs:ifr (Results 1 – 17 of 17) sorted by relevance

/hardware/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu_linux.c101 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 …]
Ddhdu_common.h83 static int process_args(struct ifreq* ifr, char **argv);
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/
Ddriver_cmd_nl80211.c73 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/sdm845/data/ipacfg-mgr/ipacm/src/
DIPACM_ConntrackClient.cpp175 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()
DIPACM_Iface.cpp322 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 …]
DIPACM_OffloadManager.cpp695 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()
DIPACM_Main.cpp1042 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()
DIPACM_ConntrackListener.cpp146 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()
DIPACM_Netlink.cpp1613 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/
DIPACM_ConntrackClient.cpp175 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()
DIPACM_Iface.cpp322 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 …]
DIPACM_OffloadManager.cpp634 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()
DIPACM_Main.cpp969 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()
DIPACM_ConntrackListener.cpp146 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()
DIPACM_Netlink.cpp1603 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/
Ddriver_cmd_nl80211.c74 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/
DVtsHalTetheroffloadControlV1_0TargetTest.cpp260 struct ifreq ifr = {}; in interfaceIsUp() local
261 strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in interfaceIsUp()
264 int ret = ioctl(sock, SIOCGIFFLAGS, &ifr, sizeof(ifr)); in interfaceIsUp()
266 return (ret == 0) && (ifr.ifr_flags & IFF_UP); in interfaceIsUp()