Home
last modified time | relevance | path

Searched refs:interface_index (Results 1 – 25 of 100) sorted by relevance

1234

/system/connectivity/shill/
Ddevice_info.cc204 << device->interface_index() << ")"; in RegisterDevice()
206 delayed_devices_.erase(device->interface_index()); in RegisterDevice()
207 CHECK(!GetDevice(device->interface_index()).get()); in RegisterDevice()
208 infos_[device->interface_index()].device = device; in RegisterDevice()
209 if (metrics_->IsDeviceRegistered(device->interface_index(), in RegisterDevice()
211 metrics_->NotifyDeviceInitialized(device->interface_index()); in RegisterDevice()
213 metrics_->RegisterDevice(device->interface_index(), device->technology()); in RegisterDevice()
221 int interface_index = device->interface_index(); in DeregisterDevice() local
224 << interface_index << ")"; in DeregisterDevice()
229 map<int, Info>::iterator iter = infos_.find(interface_index); in DeregisterDevice()
[all …]
Drouting_table.cc97 bool RoutingTable::AddRoute(int interface_index, in AddRoute() argument
101 << " index " << interface_index in AddRoute()
106 if (!ApplyRoute(interface_index, in AddRoute()
112 tables_[interface_index].push_back(entry); in AddRoute()
116 bool RoutingTable::GetDefaultRoute(int interface_index, in GetDefaultRoute() argument
120 bool ret = GetDefaultRouteInternal(interface_index, family, &found_entry); in GetDefaultRoute()
127 bool RoutingTable::GetDefaultRouteInternal(int interface_index, in GetDefaultRouteInternal() argument
130 SLOG(this, 2) << __func__ << " index " << interface_index in GetDefaultRouteInternal()
133 Tables::iterator table = tables_.find(interface_index); in GetDefaultRouteInternal()
153 bool RoutingTable::SetDefaultRoute(int interface_index, in SetDefaultRoute() argument
[all …]
Dmock_device_info.h48 MOCK_CONST_METHOD1(GetDevice, DeviceRefPtr(int interface_index));
50 MOCK_CONST_METHOD2(GetMACAddress, bool(int interface_index,
52 MOCK_CONST_METHOD1(GetMACAddressFromKernel, ByteString(int interface_index));
54 bool(int interface_index,
57 MOCK_CONST_METHOD3(GetByteCounts, bool(int interface_index,
60 MOCK_CONST_METHOD2(GetFlags, bool(int interface_index,
62 MOCK_CONST_METHOD2(GetAddresses, bool(int interface_index,
64 MOCK_CONST_METHOD1(FlushAddresses, void(int interface_index));
66 bool(int interface_index,
69 bool(int interface_index,
[all …]
Dmock_routing_table.h34 MOCK_METHOD2(AddRoute, bool(int interface_index,
36 MOCK_METHOD3(GetDefaultRoute, bool(int interface_index,
39 MOCK_METHOD4(SetDefaultRoute, bool(int interface_index,
43 MOCK_METHOD4(ConfigureRoutes, bool(int interface_index,
47 MOCK_METHOD4(CreateBlackholeRoute, bool(int interface_index,
51 MOCK_METHOD4(CreateLinkRoute, bool(int interface_index,
55 MOCK_METHOD1(FlushRoutes, void(int interface_index));
58 MOCK_METHOD1(ResetTable, void(int interface_index));
59 MOCK_METHOD2(SetDefaultMetric, void(int interface_index, uint32_t metric));
61 int interface_index,
Drouting_table.h77 virtual bool AddRoute(int interface_index, const RoutingTableEntry& entry);
81 virtual bool GetDefaultRoute(int interface_index,
88 virtual bool SetDefaultRoute(int interface_index,
95 virtual bool ConfigureRoutes(int interface_index,
102 virtual bool CreateBlackholeRoute(int interface_index,
110 virtual bool CreateLinkRoute(int interface_index,
117 virtual void FlushRoutes(int interface_index);
127 virtual void ResetTable(int interface_index);
130 virtual void SetDefaultMetric(int interface_index, uint32_t metric);
140 int interface_index,
[all …]
Ddevice_info.h101 virtual DeviceRefPtr GetDevice(int interface_index) const;
102 virtual bool GetMACAddress(int interface_index, ByteString* address) const;
106 virtual ByteString GetMACAddressFromKernel(int interface_index) const;
111 virtual bool GetMACAddressOfPeer(int interface_index,
115 virtual bool GetFlags(int interface_index, unsigned int* flags) const;
116 virtual bool GetByteCounts(int interface_index,
118 virtual bool GetAddresses(int interface_index,
122 virtual void FlushAddresses(int interface_index) const;
126 int interface_index, const IPAddress& this_address) const;
131 virtual bool GetPrimaryIPv6Address(int interface_index, IPAddress* address);
[all …]
Dmock_metrics.h39 MOCK_METHOD1(DeregisterDevice, void(int interface_index));
40 MOCK_METHOD1(NotifyDeviceScanStarted, void(int interface_index));
41 MOCK_METHOD1(NotifyDeviceScanFinished, void(int interface_index));
42 MOCK_METHOD1(ResetScanTimer, void(int interface_index));
43 MOCK_METHOD2(NotifyDeviceConnectStarted, void(int interface_index,
45 MOCK_METHOD1(NotifyDeviceConnectFinished, void(int interface_index));
46 MOCK_METHOD1(ResetConnectTimer, void(int interface_index));
Dmetrics.h916 void RegisterDevice(int interface_index,
920 bool IsDeviceRegistered(int interface_index,
925 virtual void DeregisterDevice(int interface_index);
928 void NotifyDeviceInitialized(int interface_index);
931 void NotifyDeviceEnableStarted(int interface_index);
934 void NotifyDeviceEnableFinished(int interface_index);
937 void NotifyDeviceDisableStarted(int interface_index);
940 void NotifyDeviceDisableFinished(int interface_index);
943 virtual void NotifyDeviceScanStarted(int interface_index);
946 virtual void NotifyDeviceScanFinished(int interface_index);
[all …]
Dmetrics.cc1021 void Metrics::RegisterDevice(int interface_index, in RegisterDevice() argument
1023 SLOG(this, 2) << __func__ << ": " << interface_index; in RegisterDevice()
1025 devices_metrics_[interface_index] = device_metrics; in RegisterDevice()
1086 bool Metrics::IsDeviceRegistered(int interface_index, in IsDeviceRegistered() argument
1088 SLOG(this, 2) << __func__ << ": interface index: " << interface_index in IsDeviceRegistered()
1090 DeviceMetrics* device_metrics = GetDeviceMetrics(interface_index); in IsDeviceRegistered()
1097 void Metrics::DeregisterDevice(int interface_index) { in DeregisterDevice() argument
1098 SLOG(this, 2) << __func__ << ": interface index: " << interface_index; in DeregisterDevice()
1100 DeviceMetrics* device_metrics = GetDeviceMetrics(interface_index); in DeregisterDevice()
1105 devices_metrics_.erase(interface_index); in DeregisterDevice()
[all …]
Dmock_ppp_device.cc26 int interface_index) in MockPPPDevice() argument
28 interface_index) {} in MockPPPDevice()
Dvirtual_device.cc43 int interface_index, in VirtualDevice() argument
46 kHardwareAddressEmpty, interface_index, technology) {} in VirtualDevice()
62 rtnl_handler()->SetInterfaceFlags(interface_index(), IFF_UP, IFF_UP); in Start()
Dmock_virtual_device.cc26 int interface_index, in MockVirtualDevice() argument
29 interface_index, technology) {} in MockVirtualDevice()
/system/connectivity/dhcp_client/
Ddevice_info_unittest.cc79 unsigned int interface_index; in TEST_F() local
92 &interface_index)); in TEST_F()
93 EXPECT_EQ(interface_index, kFakeInterfaceIndex); in TEST_F()
101 unsigned int interface_index; in TEST_F() local
104 &interface_index)); in TEST_F()
109 unsigned int interface_index; in TEST_F() local
113 &interface_index)); in TEST_F()
118 unsigned int interface_index; in TEST_F() local
124 &interface_index)); in TEST_F()
129 unsigned int interface_index; in TEST_F() local
[all …]
/system/connectivity/shill/cellular/
Dmodem.cc95 int interface_index) { in ConstructCellular() argument
97 << " interface index " << interface_index << "."; in ConstructCellular()
101 interface_index, in ConstructCellular()
123 int interface_index = -1; in CreateDeviceFromModemProperties() local
125 GetDeviceParams(&mac_address, &interface_index); in CreateDeviceFromModemProperties()
126 if (interface_index < 0) { in CreateDeviceFromModemProperties()
145 interface_index = kFakeDevInterfaceIndex; in CreateDeviceFromModemProperties()
154 device_ = ConstructCellular(link_name_, mac_address, interface_index); in CreateDeviceFromModemProperties()
165 bool Modem::GetDeviceParams(string* mac_address, int* interface_index) { in GetDeviceParams() argument
168 *interface_index = rtnl_handler_->GetInterfaceIndex(link_name_); in GetDeviceParams()
[all …]
Dmodem_unittest.cc254 int interface_index = 2; in TEST_F() local
258 EXPECT_FALSE(modem_->GetDeviceParams(&mac_address, &interface_index)); in TEST_F()
259 EXPECT_EQ(-1, interface_index); in TEST_F()
264 EXPECT_FALSE(modem_->GetDeviceParams(&mac_address, &interface_index)); in TEST_F()
265 EXPECT_EQ(-2, interface_index); in TEST_F()
269 EXPECT_FALSE(modem_->GetDeviceParams(&mac_address, &interface_index)); in TEST_F()
270 EXPECT_EQ(1, interface_index); in TEST_F()
276 EXPECT_TRUE(modem_->GetDeviceParams(&mac_address, &interface_index)); in TEST_F()
277 EXPECT_EQ(2, interface_index); in TEST_F()
Dmock_cellular.cc31 int interface_index, in MockCellular() argument
35 : Cellular(modem_info, link_name, address, interface_index, type, in MockCellular()
/system/connectivity/shill/net/
Dmock_rtnl_handler.h37 MOCK_METHOD3(SetInterfaceFlags, void(int interface_index,
40 MOCK_METHOD2(SetInterfaceMTU, void(int interface_index, unsigned int mtu));
41 MOCK_METHOD4(AddInterfaceAddress, bool(int interface_index,
45 MOCK_METHOD2(RemoveInterfaceAddress, bool(int interface_index,
47 MOCK_METHOD1(RemoveInterface, bool(int interface_index));
Drtnl_message_unittest.cc389 int interface_index, in TestParseLink() argument
402 EXPECT_EQ(interface_index, msg.interface_index()); in TestParseLink()
431 int interface_index, in TestParseAddress() argument
439 EXPECT_EQ(interface_index, msg.interface_index()); in TestParseAddress()
456 int interface_index, in TestParseRoute() argument
469 EXPECT_EQ(0, msg.interface_index()); in TestParseRoute()
498 if (interface_index >= 0) { in TestParseRoute()
502 EXPECT_EQ(interface_index, int_val); in TestParseRoute()
519 int interface_index, in TestParseRdnss() argument
527 EXPECT_EQ(interface_index, msg.interface_index()); in TestParseRdnss()
[all …]
Drtnl_handler.h80 virtual void SetInterfaceFlags(int interface_index,
86 virtual void SetInterfaceMTU(int interface_index, unsigned int mtu);
90 virtual bool AddInterfaceAddress(int interface_index,
97 virtual bool RemoveInterfaceAddress(int interface_index,
101 virtual bool RemoveInterface(int interface_index);
159 bool AddressRequest(int interface_index,
Drtnl_handler.cc152 void RTNLHandler::SetInterfaceFlags(int interface_index, unsigned int flags, in SetInterfaceFlags() argument
166 interface_index, in SetInterfaceFlags()
179 void RTNLHandler::SetInterfaceMTU(int interface_index, unsigned int mtu) { in SetInterfaceMTU() argument
186 interface_index, in SetInterfaceMTU()
349 bool RTNLHandler::AddressRequest(int interface_index, in AddressRequest() argument
364 interface_index, in AddressRequest()
383 bool RTNLHandler::AddInterfaceAddress(int interface_index, in AddInterfaceAddress() argument
387 return AddressRequest(interface_index, in AddInterfaceAddress()
395 bool RTNLHandler::RemoveInterfaceAddress(int interface_index, in RemoveInterfaceAddress() argument
397 return AddressRequest(interface_index, in RemoveInterfaceAddress()
[all …]
/system/connectivity/apmanager/
Ddevice_info.cc145 int dev_index = msg.interface_index(); in LinkMsgHandler()
218 void DeviceInfo::GetWiFiInterfaceInfo(int interface_index) { in GetWiFiInterfaceInfo() argument
221 interface_index)) { in GetWiFiInterfaceInfo()
241 uint32_t interface_index; in OnWiFiInterfaceInfoReceived() local
243 &interface_index)) { in OnWiFiInterfaceInfoReceived()
255 interface_infos_.find(interface_index); in OnWiFiInterfaceInfoReceived()
258 << interface_index; in OnWiFiInterfaceInfoReceived()
264 GetWiFiInterfacePhyInfo(interface_index); in OnWiFiInterfaceInfoReceived()
Ddhcp_server.cc92 int interface_index = rtnl_handler_->GetInterfaceIndex(interface_name_); in Start() local
94 interface_index, in Start()
98 rtnl_handler_->SetInterfaceFlags(interface_index, IFF_UP, IFF_UP); in Start()
112 rtnl_handler_->RemoveInterfaceAddress(interface_index, server_address_); in Start()
/system/connectivity/shill/wifi/
Dmock_wifi.cc31 int interface_index) in MockWiFi() argument
38 interface_index) {} in MockWiFi()
/system/connectivity/shill/ethernet/
Dmock_ethernet.cc31 int interface_index) in MockEthernet() argument
38 interface_index) {} in MockEthernet()
/system/connectivity/shill/wimax/
Dmock_wimax.cc31 int interface_index, in MockWiMax() argument
34 interface_index, path) { in MockWiMax()

1234