HomeSort by relevance Sort by last modified time
    Searched refs:if_name (Results 1 - 25 of 56) sorted by null

1 2 3

  /frameworks/opt/net/wifi/libwifi_system/include/wifi_system/
interface_tool.h 28 // Get the interface state of |if_name|.
30 virtual bool GetUpState(const char* if_name);
32 // Set the interface named by |if_name| up or down.
34 virtual bool SetUpState(const char* if_name, bool request_up);
  /external/wpa_supplicant_8/src/ap/
vlan_util.h 16 int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
17 int vlan_rem(const char *if_name);
20 int ifconfig_helper(const char *if_name, int up);
21 int ifconfig_up(const char *if_name);
vlan_ifconfig.c 19 int ifconfig_helper(const char *if_name, int up)
31 os_strlcpy(ifr.ifr_name, if_name, IFNAMSIZ);
36 __func__, if_name, strerror(errno));
49 __func__, if_name, up, strerror(errno));
59 int ifconfig_up(const char *if_name)
61 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s up", if_name);
62 return ifconfig_helper(if_name, 1);
vlan_ioctl.c 19 int vlan_rem(const char *if_name)
24 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(%s)", if_name);
25 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) {
27 if_name);
39 os_strlcpy(if_request.device1, if_name, sizeof(if_request.device1));
44 "%s", __func__, if_name, strerror(errno));
56 'if_name'.
62 int vlan_add(const char *if_name, int vid, const char *vlan_if_name)
67 wpa_printf(MSG_DEBUG, "VLAN: vlan_add(if_name=%s, vid=%d)",
68 if_name, vid)
    [all...]
vlan_util.c 18 * tagged interface 'if_name'.
24 int vlan_add(const char *if_name, int vid, const char *vlan_if_name)
31 wpa_printf(MSG_DEBUG, "VLAN: vlan_add(if_name=%s, vid=%d, "
32 "vlan_if_name=%s)", if_name, vid, vlan_if_name);
34 if ((os_strlen(if_name) + 1) > IFNAMSIZ) {
36 if_name);
59 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink);
63 if_name);
108 vlan_if_name, vid, if_name, if_idx,
124 int vlan_rem(const char *if_name)
    [all...]
vlan_full.c 119 static int ifconfig_down(const char *if_name)
121 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s down", if_name);
122 return ifconfig_helper(if_name, 0);
132 static int br_delif(const char *br_name, const char *if_name)
139 wpa_printf(MSG_DEBUG, "VLAN: br_delif(%s, %s)", br_name, if_name);
146 if_index = if_nametoindex(if_name);
151 __func__, if_name);
165 "BRCTL_DEL_IF] failed for br_name=%s if_name=%s: "
166 "%s", __func__, br_name, if_name, strerror(errno));
177 Add interface 'if_name' to the bridge 'br_name
    [all...]
  /frameworks/opt/net/wifi/libwifi_system/
interface_tool.cpp 34 bool GetIfState(const char* if_name, int sock, struct ifreq* ifr) {
36 if (strlcpy(ifr->ifr_name, if_name, sizeof(ifr->ifr_name)) >=
38 LOG(ERROR) << "Interface name is too long: " << if_name;
43 LOG(ERROR) << "Could not read interface state for " << if_name
53 bool InterfaceTool::GetUpState(const char* if_name) {
62 if (!GetIfState(if_name, sock.get(), &ifr)) {
69 bool InterfaceTool::SetUpState(const char* if_name, bool request_up) {
78 if (!GetIfState(if_name, sock.get(), &ifr)) {
94 LOG(ERROR) << "Could not set interface flags for " << if_name
  /frameworks/opt/net/wifi/libwifi_system/testlib/include/wifi_system_test/
mock_interface_tool.h 29 MOCK_METHOD1(GetUpState, bool(const char* if_name));
30 MOCK_METHOD2(SetUpState, bool(const char* if_name, bool request_up));
  /system/connectivity/wificond/tests/integration/
ap_interface_test.cpp 63 string if_name; local
64 EXPECT_TRUE(ap_interface->getInterfaceName(&if_name).isOk());
65 EXPECT_TRUE(!if_name.empty());
67 EXPECT_FALSE(if_tool.GetUpState(if_name.c_str()));
70 EXPECT_TRUE(if_tool.SetUpState(if_name.c_str(), true));
71 EXPECT_TRUE(if_tool.GetUpState(if_name.c_str()));
80 EXPECT_FALSE(if_tool.GetUpState(if_name.c_str()));
93 string if_name; local
94 EXPECT_TRUE(ap_interface->getInterfaceName(&if_name).isOk());
95 EXPECT_TRUE(!if_name.empty())
    [all...]
client_interface_test.cpp 57 string if_name; local
58 EXPECT_TRUE(client_interface->getInterfaceName(&if_name).isOk());
59 EXPECT_TRUE(!if_name.empty());
61 EXPECT_FALSE(if_tool.GetUpState(if_name.c_str()));
64 EXPECT_TRUE(if_tool.SetUpState(if_name.c_str(), true));
65 EXPECT_TRUE(if_tool.GetUpState(if_name.c_str()));
74 EXPECT_FALSE(if_tool.GetUpState(if_name.c_str()));
  /bionic/tests/
net_if_test.cpp 49 fprintf(stderr, "\t%d\t%s\n", it->if_index, it->if_name);
50 if_nameindex_names.insert(it->if_name);
51 EXPECT_EQ(it->if_index, if_nametoindex(it->if_name));
52 EXPECT_STREQ(it->if_name, if_indextoname(it->if_index, buf));
53 if (strcmp(it->if_name, "lo") == 0) saw_lo = true;
  /bionic/libc/include/net/
if.h 44 char* if_name; member in struct:if_nameindex
  /frameworks/av/media/libaudiohal/
DevicesFactoryHalLocal.cpp 30 static status_t load_audio_interface(const char *if_name, audio_hw_device_t **dev)
35 rc = hw_get_module_by_class(AUDIO_HARDWARE_MODULE_ID, if_name, &mod);
38 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc));
44 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc));
  /hardware/interfaces/audio/2.0/default/
DevicesFactory.cpp 46 int DevicesFactory::loadAudioInterface(const char *if_name, audio_hw_device_t **dev)
51 rc = hw_get_module_by_class(AUDIO_HARDWARE_MODULE_ID, if_name, &mod);
54 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc));
60 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc));
DevicesFactory.h 47 static int loadAudioInterface(const char *if_name, audio_hw_device_t **dev);
  /bionic/libc/bionic/
net_if.cpp 90 if (names_too) free(it->data.if_name);
110 new_link->data.if_name = strndup(reinterpret_cast<char*>(RTA_DATA(rta)), RTA_PAYLOAD(rta));
140 out->if_name = it->data.if_name;
144 out->if_name = nullptr;
157 while (ptr->if_index != 0 || ptr->if_name != nullptr) {
158 free(ptr->if_name);
  /external/autotest/server/
site_linux_system.py 21 ['inherited', 'phy', 'if_name', 'if_type'])
102 if_name=interface.if_name,
106 self.iw_runner.remove_interface(interface.if_name)
247 if net_dev.if_name == interface:
258 self.release_interface(net_dev.if_name)
262 self.remove_interface(net_dev.if_name)
319 if net_dev.if_name == self._capture_interface][0]
440 if net_dev.if_name == same_phy_as:
463 if net_dev.if_name == name]
    [all...]
  /bionic/libc/kernel/uapi/linux/
gsmmux.h 50 char if_name[IFNAMSIZ]; member in struct:gsm_netconfig
  /external/kernel-headers/original/uapi/linux/
gsmmux.h 32 char if_name[IFNAMSIZ]; /* interface name format string */ member in struct:gsm_netconfig
  /external/webrtc/webrtc/base/
fakenetwork.h 42 void AddInterface(const SocketAddress& iface, const std::string& if_name) {
43 AddInterface(iface, if_name, ADAPTER_TYPE_UNKNOWN);
47 const std::string& if_name,
49 SocketAddress address(if_name, 0);
  /external/ltp/testcases/network/lib6/
in6_02.c 197 if (!p || strcmp(p, pini[i].if_name)) {
200 pini[i].if_index, pini[i].if_name,
204 idx = if_nametoindex(pini[i].if_name);
208 pini[i].if_index, pini[i].if_name,
209 pini[i].if_name, idx);
213 pini[i].if_index, pini[i].if_name);
  /external/wpa_supplicant_8/hostapd/
main.c 258 hostapd_interface_init(struct hapd_interfaces *interfaces, const char *if_name,
269 if (if_name) {
270 os_strlcpy(iface->conf->bss[0]->iface, if_name,
561 char *if_name, *tmp, **nnames; local
566 if_name = strtok_r(arg, ",", &tmp);
568 while (if_name) {
575 (*if_names)[*if_names_size] = os_strdup(if_name);
579 if_name = strtok_r(NULL, ",", &tmp);
806 char *if_name = NULL; local
809 if_name = if_names[i]
    [all...]
  /external/autotest/client/common_lib/cros/network/
iw_runner.py 46 IwNetDev = collections.namedtuple('IwNetDev', ['phy', 'if_name', 'if_type'])
235 if iw_if.if_name == interface_name]
338 if_name = None
344 if_name = None
351 if_name = m.group(1)
353 if not if_name:
359 interfaces.append(IwNetDev(phy=phy, if_name=if_name,
362 if_name = None
  /external/selinux/python/sepolgen/src/sepolgen/
module.py 63 def if_name(self): member in class:ModuleTree
86 open(self.if_name(), "w").close()
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/
module.py 63 def if_name(self): member in class:ModuleTree
86 open(self.if_name(), "w").close()

Completed in 1139 milliseconds

1 2 3