/system/connectivity/shill/net/ |
D | rtnl_message_unittest.cc | 388 RTNLMessage::Mode mode, in TestParseLink() 397 RTNLMessage msg; in TestParseLink() 400 EXPECT_EQ(RTNLMessage::kTypeLink, msg.type()); in TestParseLink() 404 RTNLMessage::LinkStatus status = msg.link_status(); in TestParseLink() 430 RTNLMessage::Mode mode, in TestParseAddress() 434 RTNLMessage msg; in TestParseAddress() 437 EXPECT_EQ(RTNLMessage::kTypeAddress, msg.type()); in TestParseAddress() 442 RTNLMessage::AddressStatus status = msg.address_status(); in TestParseAddress() 454 RTNLMessage::Mode /*mode*/, in TestParseRoute() 465 RTNLMessage msg; in TestParseRoute() [all …]
|
D | rtnl_handler.cc | 160 RTNLMessage msg( in SetInterfaceFlags() 161 RTNLMessage::kTypeLink, in SetInterfaceFlags() 162 RTNLMessage::kModeAdd, in SetInterfaceFlags() 169 msg.set_link_status(RTNLMessage::LinkStatus(ARPHRD_VOID, flags, change)); in SetInterfaceFlags() 180 RTNLMessage msg( in SetInterfaceMTU() 181 RTNLMessage::kTypeLink, in SetInterfaceMTU() 182 RTNLMessage::kModeAdd, in SetInterfaceMTU() 215 void RTNLHandler::DispatchEvent(int type, const RTNLMessage& msg) { in DispatchEvent() 223 RTNLMessage::Type type; in NextRequest() 236 type = RTNLMessage::kTypeAddress; in NextRequest() [all …]
|
D | rtnl_handler_unittest.cc | 72 dummy_message_(RTNLMessage::kTypeLink, in RTNLHandlerTest() 73 RTNLMessage::kModeGet, in RTNLHandlerTest() 115 MOCK_METHOD1(HandlerCallback, void(const RTNLMessage&)); 130 Callback<void(const RTNLMessage&)> callback_; 131 RTNLMessage dummy_message_; 154 RTNLMessage message(RTNLMessage::kTypeLink, in AddLink() 155 RTNLMessage::kModeAdd, in AddLink() 169 RTNLMessage message(RTNLMessage::kTypeNeighbor, in AddNeighbor() 170 RTNLMessage::kModeAdd, in AddNeighbor() 205 EXPECT_CALL(*this, HandlerCallback(A<const RTNLMessage&>())) in TEST_F() [all …]
|
D | rtnl_listener.h | 27 class RTNLMessage; variable 32 const base::Callback<void(const RTNLMessage&)>& callback); 34 const base::Callback<void(const RTNLMessage&)>& callback, 38 void NotifyEvent(int type, const RTNLMessage& msg); 42 base::Callback<void(const RTNLMessage&)> callback_;
|
D | rtnl_listener_unittest.cc | 44 MOCK_METHOD1(ListenerCallback, void(const RTNLMessage&)); 54 Callback<void(const RTNLMessage&)> callback_; 61 RTNLMessage message; in TEST_F() 74 RTNLMessage message; in TEST_F() 75 EXPECT_CALL(*this, ListenerCallback(A<const RTNLMessage&>())).Times(1); in TEST_F()
|
D | rtnl_message.cc | 45 RTNLMessage::RTNLMessage() in RTNLMessage() function in shill::RTNLMessage 54 RTNLMessage::RTNLMessage(Type type, in RTNLMessage() function in shill::RTNLMessage 69 bool RTNLMessage::Decode(const ByteString& msg) { in Decode() 77 bool RTNLMessage::DecodeInternal(const ByteString& msg) { in DecodeInternal() 164 bool RTNLMessage::DecodeLink(const RTNLHeader* hdr, in DecodeLink() 185 bool RTNLMessage::DecodeAddress(const RTNLHeader* hdr, in DecodeAddress() 205 bool RTNLMessage::DecodeRoute(const RTNLHeader* hdr, in DecodeRoute() 228 bool RTNLMessage::DecodeNdUserOption(const RTNLHeader* hdr, in DecodeNdUserOption() 281 bool RTNLMessage::ParseRdnssOption(const uint8_t* data, in ParseRdnssOption() 304 bool RTNLMessage::DecodeNeighbor(const RTNLHeader* hdr, in DecodeNeighbor() [all …]
|
D | rtnl_listener.cc | 26 const Callback<void(const RTNLMessage&)>& callback) in RTNLListener() 30 const Callback<void(const RTNLMessage&)>& callback, in RTNLListener() 42 void RTNLListener::NotifyEvent(int type, const RTNLMessage& msg) { in NotifyEvent()
|
D | rtnl_handler.h | 118 virtual bool SendMessageWithErrorMask(RTNLMessage* message, 123 virtual bool SendMessage(RTNLMessage* message); 153 void DispatchEvent(int type, const RTNLMessage& msg); 160 RTNLMessage::Mode mode,
|
D | mock_rtnl_handler.h | 50 MOCK_METHOD2(SendMessageWithErrorMask, bool(RTNLMessage* message, 52 MOCK_METHOD1(SendMessage, bool(RTNLMessage* message));
|
D | rtnl_message.h | 36 class SHILL_EXPORT RTNLMessage { 148 RTNLMessage(); 150 RTNLMessage(Type type, 253 DISALLOW_COPY_AND_ASSIGN(RTNLMessage);
|
/system/connectivity/shill/ |
D | device_info_unittest.cc | 179 RTNLMessage* BuildLinkMessage(RTNLMessage::Mode mode); 180 RTNLMessage* BuildLinkMessageWithInterfaceName(RTNLMessage::Mode mode, 182 RTNLMessage* BuildAddressMessage(RTNLMessage::Mode mode, 186 RTNLMessage* BuildRdnssMessage(RTNLMessage::Mode mode, 189 void SendMessageToDeviceInfo(const RTNLMessage& message); 222 RTNLMessage* DeviceInfoTest::BuildLinkMessageWithInterfaceName( in BuildLinkMessageWithInterfaceName() 223 RTNLMessage::Mode mode, const string& interface_name) { in BuildLinkMessageWithInterfaceName() 224 RTNLMessage* message = new RTNLMessage( in BuildLinkMessageWithInterfaceName() 225 RTNLMessage::kTypeLink, in BuildLinkMessageWithInterfaceName() 239 RTNLMessage* DeviceInfoTest::BuildLinkMessage(RTNLMessage::Mode mode) { in BuildLinkMessage() [all …]
|
D | routing_table_unittest.cc | 88 void SendRouteEntry(RTNLMessage::Mode mode, 92 void SendRouteEntryWithSeqAndProto(RTNLMessage::Mode mode, 98 void SendRouteMessage(const RTNLMessage& msg); 100 bool SetSequenceForMessage(RTNLMessage* message) { in SetSequenceForMessage() 181 const RTNLMessage::RouteStatus& status = arg->route_status(); 187 arg->type() == RTNLMessage::kTypeRoute && 204 const RTNLMessage::RouteStatus& status = arg->route_status(); 210 arg->type() == RTNLMessage::kTypeRoute && 237 void RoutingTableTest::SendRouteEntry(RTNLMessage::Mode mode, in SendRouteEntry() 244 RTNLMessage::Mode mode, in SendRouteEntryWithSeqAndProto() [all …]
|
D | routing_table.cc | 108 RTNLMessage::kModeAdd, in AddRoute() 174 RTNLMessage::kModeDelete, in SetDefaultRoute() 248 ApplyRoute(interface_index, nent, RTNLMessage::kModeDelete, 0); in FlushRoutes() 259 ApplyRoute(table.first, *nent, RTNLMessage::kModeDelete, 0); in FlushRoutesWithTag() 291 bool RoutingTable::ParseRoutingTableMessage(const RTNLMessage& message, in ParseRoutingTableMessage() 294 if (message.type() != RTNLMessage::kTypeRoute || in ParseRoutingTableMessage() 300 const RTNLMessage::RouteStatus& route_status = message.route_status(); in ParseRoutingTableMessage() 344 void RoutingTable::RouteMsgHandler(const RTNLMessage& message) { in RouteMsgHandler() 406 if (message.mode() == RTNLMessage::kModeDelete && in RouteMsgHandler() 409 } else if (message.mode() == RTNLMessage::kModeAdd) { in RouteMsgHandler() [all …]
|
D | device_info.h | 46 class RTNLMessage; variable 274 bool GetLinkNameFromMessage(const RTNLMessage& msg, std::string* link_name); 278 bool IsRenamedBlacklistedDevice(const RTNLMessage& msg); 280 void AddLinkMsgHandler(const RTNLMessage& msg); 281 void DelLinkMsgHandler(const RTNLMessage& msg); 282 void LinkMsgHandler(const RTNLMessage& msg); 283 void AddressMsgHandler(const RTNLMessage& msg); 284 void RdnssMsgHandler(const RTNLMessage& msg); 290 void RetrieveLinkStatistics(int interface_index, const RTNLMessage& msg); 309 base::Callback<void(const RTNLMessage&)> link_callback_; [all …]
|
D | routing_table.h | 152 static bool ParseRoutingTableMessage(const RTNLMessage& message, 155 void RouteMsgHandler(const RTNLMessage& msg); 158 RTNLMessage::Mode mode, 175 base::Callback<void(const RTNLMessage&)> route_callback_;
|
D | device_info.cc | 581 bool DeviceInfo::GetLinkNameFromMessage(const RTNLMessage& msg, in GetLinkNameFromMessage() 593 bool DeviceInfo::IsRenamedBlacklistedDevice(const RTNLMessage& msg) { in IsRenamedBlacklistedDevice() 615 void DeviceInfo::AddLinkMsgHandler(const RTNLMessage& msg) { in AddLinkMsgHandler() 616 DCHECK(msg.type() == RTNLMessage::kTypeLink && in AddLinkMsgHandler() 617 msg.mode() == RTNLMessage::kModeAdd); in AddLinkMsgHandler() 687 void DeviceInfo::DelLinkMsgHandler(const RTNLMessage& msg) { in DelLinkMsgHandler() 690 DCHECK(msg.type() == RTNLMessage::kTypeLink && in DelLinkMsgHandler() 691 msg.mode() == RTNLMessage::kModeDelete); in DelLinkMsgHandler() 1043 void DeviceInfo::LinkMsgHandler(const RTNLMessage& msg) { in LinkMsgHandler() 1044 DCHECK(msg.type() == RTNLMessage::kTypeLink); in LinkMsgHandler() [all …]
|
D | connection_diagnostics.h | 49 class RTNLMessage; variable 308 const RTNLMessage& msg);
|
D | connection_diagnostics_unittest.cc | 532 RTNLMessage msg(RTNLMessage::kTypeNeighbor, RTNLMessage::kModeAdd, 0, 0, 0, in ExpectNeighborTableLookupEndSuccess() 535 RTNLMessage::NeighborStatus(NUD_REACHABLE, 0, NDA_DST)); in ExpectNeighborTableLookupEndSuccess() 805 RTNLMessage msg(RTNLMessage::kTypeNeighbor, RTNLMessage::kModeAdd, 0, 0, in ExpectNeighborTableLookupEndFailure() 809 RTNLMessage::NeighborStatus(NUD_FAILED, 0, NDA_DST)); in ExpectNeighborTableLookupEndFailure()
|
D | connection_diagnostics.cc | 790 const IPAddress& address_queried, const RTNLMessage& msg) { in OnNeighborMsgReceived() 793 DCHECK(msg.type() == RTNLMessage::kTypeNeighbor); in OnNeighborMsgReceived() 794 const RTNLMessage::NeighborStatus& neighbor = msg.neighbor_status(); in OnNeighborMsgReceived()
|
/system/connectivity/apmanager/ |
D | device_info_unittest.cc | 44 using shill::RTNLMessage; 97 void SendLinkMsg(RTNLMessage::Mode mode, in SendLinkMsg() 100 RTNLMessage message(RTNLMessage::kTypeLink, in SendLinkMsg() 230 SendLinkMsg(RTNLMessage::kModeAdd, in TEST_F() 240 SendLinkMsg(RTNLMessage::kModeAdd, in TEST_F() 253 SendLinkMsg(RTNLMessage::kModeAdd, in TEST_F() 264 SendLinkMsg(RTNLMessage::kModeAdd, in TEST_F() 271 SendLinkMsg(RTNLMessage::kModeDelete, in TEST_F() 280 SendLinkMsg(RTNLMessage::kModeDelete, in TEST_F() 286 SendLinkMsg(RTNLMessage::kModeDelete, in TEST_F()
|
D | device_info.h | 36 class RTNLMessage; variable 70 void LinkMsgHandler(const shill::RTNLMessage& msg); 104 base::Callback<void(const shill::RTNLMessage&)> link_callback_;
|
D | device_info.cc | 43 using shill::RTNLMessage; 134 void DeviceInfo::LinkMsgHandler(const RTNLMessage& msg) { in LinkMsgHandler() 135 DCHECK(msg.type() == RTNLMessage::kTypeLink); in LinkMsgHandler() 146 if (msg.mode() == RTNLMessage::kModeAdd) { in LinkMsgHandler() 148 } else if (msg.mode() == RTNLMessage::kModeDelete) { in LinkMsgHandler()
|