Home
last modified time | relevance | path

Searched refs:RTNLMessage (Results 1 – 22 of 22) sorted by relevance

/system/connectivity/shill/net/
Drtnl_message_unittest.cc388 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 …]
Drtnl_handler.cc160 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 …]
Drtnl_handler_unittest.cc72 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 …]
Drtnl_listener.h27 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_;
Drtnl_listener_unittest.cc44 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()
Drtnl_message.cc45 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 …]
Drtnl_listener.cc26 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()
Drtnl_handler.h118 virtual bool SendMessageWithErrorMask(RTNLMessage* message,
123 virtual bool SendMessage(RTNLMessage* message);
153 void DispatchEvent(int type, const RTNLMessage& msg);
160 RTNLMessage::Mode mode,
Dmock_rtnl_handler.h50 MOCK_METHOD2(SendMessageWithErrorMask, bool(RTNLMessage* message,
52 MOCK_METHOD1(SendMessage, bool(RTNLMessage* message));
Drtnl_message.h36 class SHILL_EXPORT RTNLMessage {
148 RTNLMessage();
150 RTNLMessage(Type type,
253 DISALLOW_COPY_AND_ASSIGN(RTNLMessage);
/system/connectivity/shill/
Ddevice_info_unittest.cc179 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 …]
Drouting_table_unittest.cc88 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 …]
Drouting_table.cc108 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 …]
Ddevice_info.h46 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 …]
Drouting_table.h152 static bool ParseRoutingTableMessage(const RTNLMessage& message,
155 void RouteMsgHandler(const RTNLMessage& msg);
158 RTNLMessage::Mode mode,
175 base::Callback<void(const RTNLMessage&)> route_callback_;
Ddevice_info.cc581 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 …]
Dconnection_diagnostics.h49 class RTNLMessage; variable
308 const RTNLMessage& msg);
Dconnection_diagnostics_unittest.cc532 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()
Dconnection_diagnostics.cc790 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/
Ddevice_info_unittest.cc44 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()
Ddevice_info.h36 class RTNLMessage; variable
70 void LinkMsgHandler(const shill::RTNLMessage& msg);
104 base::Callback<void(const shill::RTNLMessage&)> link_callback_;
Ddevice_info.cc43 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()