/system/connectivity/shill/ |
H A D | mock_routing_table.h | 34 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, [all...] |
H A D | mock_device_info.h | 48 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...] |
H A D | mock_ppp_device.cc | 26 int interface_index) 28 interface_index) {} 21 MockPPPDevice(ControlInterface* control, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const std::string& link_name, int interface_index) argument
|
H A D | mock_virtual_device.cc | 26 int interface_index, 29 interface_index, technology) {} 21 MockVirtualDevice(ControlInterface* control, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const std::string& link_name, int interface_index, Technology::Identifier technology) argument
|
H A D | routing_table.h | 50 // Callback::Run(interface_index, entry) 77 virtual bool AddRoute(int interface_index, const RoutingTableEntry& entry); 81 virtual bool GetDefaultRoute(int interface_index, 85 // Set the default route for an interface with index |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); [all...] |
H A D | ppp_device_factory.cc | 45 int interface_index) { 47 interface_index); 39 CreatePPPDevice( ControlInterface* control, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const string& link_name, int interface_index) argument
|
H A D | device_info.cc | 204 << device->interface_index() << ")"; 206 delayed_devices_.erase(device->interface_index()); 207 CHECK(!GetDevice(device->interface_index()).get()); 208 infos_[device->interface_index()].device = device; 209 if (metrics_->IsDeviceRegistered(device->interface_index(), 211 metrics_->NotifyDeviceInitialized(device->interface_index()); 213 metrics_->RegisterDevice(device->interface_index(), device->technology()); 221 int interface_index = device->interface_index(); local 224 << interface_index << ")"; 450 CreateDevice(const string& link_name, const string& address, int interface_index, Technology::Identifier technology) argument 463 << interface_index << "."; local 492 << link_name << " at index " << interface_index << "."; local 503 << link_name << " at index " << interface_index << "."; local 527 << " at index " << interface_index local 542 << " at index " << interface_index; local 559 << " at index " << interface_index; local 594 int interface_index = msg.interface_index(); local 709 GetMACAddress(int interface_index, ByteString* address) const argument 752 GetMACAddressOfPeer(int interface_index, const IPAddress& peer, ByteString* mac_address) const argument 807 GetAddresses(int interface_index, vector<AddressData>* addresses) const argument 818 SLOG(this, 2) << __func__ << "(" << interface_index << ")"; local 836 HasOtherAddress( int interface_index, const IPAddress& this_address) const argument 838 SLOG(this, 3) << __func__ << "(" << interface_index << ")"; local 861 GetPrimaryIPv6Address(int interface_index, IPAddress* address) argument 900 GetIPv6DnsServerAddresses(int interface_index, std::vector<IPAddress>* address_list, uint32_t* life_time) argument 928 HasDirectConnectivityTo( int interface_index, const IPAddress& address) const argument 930 SLOG(this, 3) << __func__ << "(" << interface_index << ")"; local 946 GetFlags(int interface_index, unsigned int* flags) const argument 955 GetByteCounts(int interface_index, uint64_t* rx_bytes, uint64_t* tx_bytes) const argument 1024 RemoveInfo(int interface_index) argument 1039 << interface_index; local 1057 int interface_index = msg.interface_index(); local 1103 int interface_index = msg.interface_index(); local 1125 DelayDeviceCreation(int interface_index) argument 1186 RetrieveLinkStatistics(int interface_index, const RTNLMessage& msg) argument 1215 GetWiFiInterfaceInfo(int interface_index) argument 1237 uint32_t interface_index; local [all...] |
H A D | routing_table.cc | 97 bool RoutingTable::AddRoute(int interface_index, argument 101 << " index " << interface_index 106 if (!ApplyRoute(interface_index, 112 tables_[interface_index].push_back(entry); 116 bool RoutingTable::GetDefaultRoute(int interface_index, argument 120 bool ret = GetDefaultRouteInternal(interface_index, family, &found_entry); 127 bool RoutingTable::GetDefaultRouteInternal(int interface_index, argument 130 SLOG(this, 2) << __func__ << " index " << interface_index 133 Tables::iterator table = tables_.find(interface_index); 153 bool RoutingTable::SetDefaultRoute(int interface_index, argument 193 ConfigureRoutes(int interface_index, const IPConfigRefPtr& ipconfig, uint32_t metric, uint8_t table_id) argument 239 FlushRoutes(int interface_index) argument 268 ResetTable(int interface_index) argument 272 SetDefaultMetric(int interface_index, uint32_t metric) argument 291 ParseRoutingTableMessage(const RTNLMessage& message, int* interface_index, RoutingTableEntry* entry) argument 345 int interface_index; local 427 ApplyRoute(uint32_t interface_index, const RoutingTableEntry& entry, RTNLMessage::Mode mode, unsigned int flags) argument 476 ReplaceMetric(uint32_t interface_index, RoutingTableEntry* entry, uint32_t metric) argument 509 RequestRouteToHost(const IPAddress& address, int interface_index, int tag, const Query::Callback& callback, uint8_t table_id) argument 547 CreateBlackholeRoute(int interface_index, IPAddress::Family family, uint32_t metric, uint8_t table_id) argument 582 CreateLinkRoute(int interface_index, const IPAddress& local_address, const IPAddress& remote_address, uint8_t table_id) argument [all...] |
H A D | device_info.h | 101 virtual DeviceRefPtr GetDevice(int interface_index) const; 102 virtual bool GetMACAddress(int interface_index, ByteString* address) const; 104 // Queries the kernel for a MAC address for |interface_index|. Returns an 106 virtual ByteString GetMACAddressFromKernel(int interface_index) const; 108 // Queries the kernel for the MAC address of |peer| on |interface_index|. 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, 121 // Flush all addresses associated with |interface_index| [all...] |
H A D | mock_metrics.h | 39 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));
|
H A D | device_stub.h | 48 int interface_index, 51 address, interface_index, technology) {} 42 DeviceStub(ControlInterface* control_interface, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const std::string& link_name, const std::string& address, int interface_index, Technology::Identifier technology) argument
|
H A D | mock_device.cc | 41 int interface_index) 48 interface_index, 35 MockDevice(ControlInterface* control_interface, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const string& link_name, const string& address, int interface_index) argument
|
H A D | virtual_device.cc | 43 int interface_index, 46 kHardwareAddressEmpty, interface_index, technology) {} 62 rtnl_handler()->SetInterfaceFlags(interface_index(), IFF_UP, IFF_UP); 38 VirtualDevice(ControlInterface* control, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const string& link_name, int interface_index, Technology::Identifier technology) argument
|
/system/connectivity/shill/ethernet/ |
H A D | mock_ethernet.cc | 31 int interface_index) 38 interface_index) {} 25 MockEthernet(ControlInterface* control_interface, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const string& link_name, const string& address, int interface_index) argument
|
H A D | virtio_ethernet.cc | 43 int interface_index) 50 interface_index) { 37 VirtioEthernet(ControlInterface* control_interface, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const string& link_name, const string& address, int interface_index) argument
|
H A D | virtio_ethernet.h | 34 int interface_index);
|
/system/connectivity/shill/wifi/ |
H A D | mock_wifi.cc | 31 int interface_index) 38 interface_index) {} 25 MockWiFi(ControlInterface* control_interface, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const string& link_name, const string& address, int interface_index) argument
|
/system/connectivity/shill/wimax/ |
H A D | mock_wimax.cc | 31 int interface_index, 34 interface_index, path) { 25 MockWiMax(ControlInterface* control, EventDispatcher* dispatcher, Metrics* metrics, Manager* manager, const string& link_name, const string& address, int interface_index, const RpcIdentifier& path) argument
|
/system/connectivity/shill/net/ |
H A D | mock_rtnl_handler.h | 37 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));
|
H A D | rtnl_handler.h | 78 // 'interface_index'. Only the flags bits set in 'change' will 80 virtual void SetInterfaceFlags(int interface_index, 85 // has a kernel index of |interface_index|. 86 virtual void SetInterfaceMTU(int interface_index, unsigned int mtu); 89 // 'interface_index'. 90 virtual bool AddInterfaceAddress(int interface_index, 96 // 'interface_index'. 97 virtual bool RemoveInterfaceAddress(int interface_index, 101 virtual bool RemoveInterface(int interface_index); 159 bool AddressRequest(int interface_index, [all...] |
/system/connectivity/shill/cellular/ |
H A D | mock_cellular.cc | 31 int interface_index, 35 : Cellular(modem_info, link_name, address, interface_index, type, 28 MockCellular(ModemInfo* modem_info, const std::string& link_name, const std::string& address, int interface_index, Type type, const std::string& service, const std::string& path) argument
|
H A D | modem.cc | 95 int interface_index) { 97 << " interface index " << interface_index << "."; local 101 interface_index, 123 int interface_index = -1; local 125 GetDeviceParams(&mac_address, &interface_index); 126 if (interface_index < 0) { 145 interface_index = kFakeDevInterfaceIndex; 154 device_ = ConstructCellular(link_name_, mac_address, interface_index); 165 bool Modem::GetDeviceParams(string* mac_address, int* interface_index) { argument 168 *interface_index 93 ConstructCellular(const string& link_name, const string& address, int interface_index) argument [all...] |
/system/connectivity/dhcp_client/ |
H A D | device_info_unittest.cc | 79 unsigned int interface_index; local 92 &interface_index)); 93 EXPECT_EQ(interface_index, kFakeInterfaceIndex); 101 unsigned int interface_index; local 104 &interface_index)); 109 unsigned int interface_index; local 113 &interface_index)); 118 unsigned int interface_index; local 124 &interface_index)); 129 unsigned int interface_index; local [all...] |
/system/connectivity/shill/vpn/ |
H A D | mock_vpn_provider.h | 37 int interface_index));
|
/system/connectivity/apmanager/ |
H A D | dhcp_server.cc | 92 int interface_index = rtnl_handler_->GetInterfaceIndex(interface_name_); local 94 interface_index, 98 rtnl_handler_->SetInterfaceFlags(interface_index, IFF_UP, IFF_UP); 112 rtnl_handler_->RemoveInterfaceAddress(interface_index, server_address_);
|