Home
last modified time | relevance | path

Searched refs:NetlinkMessage (Results 1 – 25 of 36) sorted by relevance

12

/system/connectivity/shill/net/
Dnetlink_message.h79 class SHILL_EXPORT NetlinkMessage {
92 explicit NetlinkMessage(uint16_t message_type) : in NetlinkMessage() function
95 virtual ~NetlinkMessage() {} in ~NetlinkMessage()
142 DISALLOW_COPY_AND_ASSIGN(NetlinkMessage);
153 class SHILL_EXPORT ErrorAckMessage : public NetlinkMessage {
157 ErrorAckMessage() : NetlinkMessage(kMessageType), error_(0) {} in ErrorAckMessage()
159 : NetlinkMessage(kMessageType), error_(err) {} in ErrorAckMessage()
174 class SHILL_EXPORT NoopMessage : public NetlinkMessage {
178 NoopMessage() : NetlinkMessage(kMessageType) {} in NoopMessage()
189 class SHILL_EXPORT DoneMessage : public NetlinkMessage {
[all …]
Dnetlink_message.cc41 const uint32_t NetlinkMessage::kBroadcastSequenceNumber = 0;
42 const uint16_t NetlinkMessage::kIllegalMessageType = UINT16_MAX;
46 ByteString NetlinkMessage::EncodeHeader(uint32_t sequence_number) { in EncodeHeader()
74 bool NetlinkMessage::InitAndStripHeader(NetlinkPacket* packet) { in InitAndStripHeader()
83 bool NetlinkMessage::InitFromPacket(NetlinkPacket* packet, in InitFromPacket()
84 NetlinkMessage::MessageContext context) { in InitFromPacket()
96 void NetlinkMessage::PrintBytes(int log_level, const unsigned char* buf, in PrintBytes()
118 void NetlinkMessage::PrintPacket(int log_level, const NetlinkPacket& packet) { in PrintPacket()
131 void NetlinkMessage::PrintHeader(int log_level, const nlmsghdr* header) { in PrintHeader()
155 void NetlinkMessage::PrintPayload(int log_level, const unsigned char* buf, in PrintPayload()
[all …]
Dnetlink_message_unittest.cc449 unique_ptr<NetlinkMessage> netlink_message( in TEST_F()
451 &trigger_scan_packet, NetlinkMessage::MessageContext())); in TEST_F()
503 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( in TEST_F()
504 &new_scan_results_packet, NetlinkMessage::MessageContext())); in TEST_F()
556 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( in TEST_F()
557 &netlink_packet, NetlinkMessage::MessageContext())); in TEST_F()
597 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( in TEST_F()
598 &netlink_packet, NetlinkMessage::MessageContext())); in TEST_F()
637 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( in TEST_F()
638 &netlink_packet, NetlinkMessage::MessageContext())); in TEST_F()
[all …]
Dnetlink_manager.h116 typedef base::Callback<void(const NetlinkMessage&)> NetlinkMessageHandler;
126 const NetlinkMessage*)>
154 virtual bool HandleMessage(const NetlinkMessage& netlink_message) const = 0;
156 const NetlinkMessage* netlink_message) const;
252 const NetlinkMessage* raw_message);
261 bool RemoveMessageHandler(const NetlinkMessage& message);
363 const NetlinkMessage* netlink_message);
383 NetlinkMessage* message,
402 NetlinkMessage::MessageContext InferMessageContext(
Dnetlink_manager.cc76 AuxilliaryMessageType type, const NetlinkMessage* netlink_message) const { in HandleError()
107 bool HandleMessage(const NetlinkMessage& netlink_message) const override { in HandleMessage()
149 bool HandleMessage(const NetlinkMessage& netlink_message) const override { in HandleMessage()
183 family_id(NetlinkMessage::kIllegalMessageType) {} in MessageType()
264 const NetlinkMessage* raw_message) { in OnNetlinkMessageError()
336 if (message_type.family_id != NetlinkMessage::kIllegalMessageType) { in GetFamily()
389 return NetlinkMessage::kIllegalMessageType; in GetFamily()
394 return NetlinkMessage::kIllegalMessageType; in GetFamily()
402 if (message_type.family_id != NetlinkMessage::kIllegalMessageType) { in GetFamily()
404 if (family_id != NetlinkMessage::kIllegalMessageType) { in GetFamily()
[all …]
Dgeneric_netlink_message.cc33 ByteString result(NetlinkMessage::EncodeHeader(sequence_number)); in EncodeHeader()
80 if (!NetlinkMessage::InitAndStripHeader(packet)) { in InitAndStripHeader()
110 NetlinkPacket* packet, NetlinkMessage::MessageContext context) { in InitFromPacket()
139 NetlinkMessage* ControlNetlinkMessage::CreateMessage( in CreateMessage()
Dgeneric_netlink_message.h68 class SHILL_EXPORT GenericNetlinkMessage : public NetlinkMessage {
72 : NetlinkMessage(my_message_type), in GenericNetlinkMessage()
116 static NetlinkMessage* CreateMessage(const NetlinkPacket& packet);
Dnl80211_message.cc86 if (message_type == NetlinkMessage::kIllegalMessageType) { in SetMessageType()
93 NetlinkMessage::MessageContext context) { in InitFromPacket()
483 NetlinkMessage::MessageContext())); in GetStationMessage()
486 NetlinkMessage::MessageContext())); in GetStationMessage()
503 NetlinkMessage::MessageContext())); in GetWiphyMessage()
555 NetlinkMessage::MessageContext())); in GetScanMessage()
565 NetlinkMessage::MessageContext())); in TriggerScanMessage()
582 NetlinkMessage::MessageContext())); in GetInterfaceMessage()
598 NetlinkMessage::MessageContext())); in GetSurveyMessage()
607 NetlinkMessage* Nl80211Message::CreateMessage(const NetlinkPacket& packet) { in CreateMessage()
[all …]
Dmock_netlink_manager.h29 class NetlinkMessage; variable
Dnetlink_socket_unittest.cc174 netlink_socket_.sequence_number_ = NetlinkMessage::kBroadcastSequenceNumber; in TEST_F()
175 EXPECT_NE(NetlinkMessage::kBroadcastSequenceNumber, in TEST_F()
Dnetlink_socket.cc150 if (++sequence_number_ == NetlinkMessage::kBroadcastSequenceNumber) in GetSequenceNumber()
Dattribute_list.h58 bool CreateNl80211Attribute(int id, NetlinkMessage::MessageContext context);
/system/connectivity/shill/wifi/
Dcallback80211_metrics_unittest.cc160 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( in TEST_F()
161 &packet, NetlinkMessage::MessageContext())); in TEST_F()
169 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( in TEST_F()
170 &packet, NetlinkMessage::MessageContext())); in TEST_F()
180 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( in TEST_F()
181 &packet, NetlinkMessage::MessageContext())); in TEST_F()
189 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( in TEST_F()
190 &packet, NetlinkMessage::MessageContext())); in TEST_F()
198 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( in TEST_F()
199 &packet, NetlinkMessage::MessageContext())); in TEST_F()
[all …]
Dcallback80211_metrics.h33 class NetlinkMessage; variable
44 void CollectDisconnectStatistics(const NetlinkMessage& msg);
Dscan_session.h39 class NetlinkMessage; variable
196 const NetlinkMessage* netlink_message);
Dscan_session.cc168 NL80211_ATTR_SCAN_FREQUENCIES, NetlinkMessage::MessageContext()); in DoScan()
170 NL80211_ATTR_SCAN_SSIDS, NetlinkMessage::MessageContext()); in DoScan()
232 const NetlinkMessage* netlink_message) { in OnTriggerScanErrorResponse()
Dwake_on_wifi_unittest.cc984 void OnWakeupReasonReceived(const NetlinkMessage& netlink_message) { in OnWakeupReasonReceived()
992 NetlinkMessage::MessageContext GetWakeupReportMsgContext() { in GetWakeupReportMsgContext()
993 NetlinkMessage::MessageContext context; in GetWakeupReportMsgContext()
1232 msg0.InitFromPacket(&packet0, NetlinkMessage::MessageContext()); in TEST_F()
1241 msg1.InitFromPacket(&packet1, NetlinkMessage::MessageContext()); in TEST_F()
1252 msg2.InitFromPacket(&packet2, NetlinkMessage::MessageContext()); in TEST_F()
1265 msg3.InitFromPacket(&packet3, NetlinkMessage::MessageContext()); in TEST_F()
1279 msg4.InitFromPacket(&packet4, NetlinkMessage::MessageContext()); in TEST_F()
1295 msg5.InitFromPacket(&packet5, NetlinkMessage::MessageContext()); in TEST_F()
1317 msg6.InitFromPacket(&packet6, NetlinkMessage::MessageContext()); in TEST_F()
[all …]
Dmock_wake_on_wifi.h60 void(const NetlinkMessage& netlink_message));
Dcallback80211_metrics.cc60 const NetlinkMessage& netlink_message) { in CollectDisconnectStatistics()
Dwake_on_wifi.h224 virtual void OnWakeupReasonReceived(const NetlinkMessage& netlink_message);
447 const NetlinkMessage* raw_message);
Dwifi.h119 class NetlinkMessage; variable
606 virtual void OnScanStarted(const NetlinkMessage& netlink_message);
/system/connectivity/apmanager/
Ddevice_info_unittest.cc201 NL80211_ATTR_WIPHY_NAME, shill::NetlinkMessage::MessageContext()); in TEST_F()
308 NL80211_ATTR_IFINDEX, shill::NetlinkMessage::MessageContext()); in TEST_F()
320 NL80211_ATTR_IFTYPE, shill::NetlinkMessage::MessageContext()); in TEST_F()
338 NL80211_ATTR_WIPHY_NAME, shill::NetlinkMessage::MessageContext()); in TEST_F()
372 NL80211_ATTR_WIPHY_NAME, shill::NetlinkMessage::MessageContext()); in TEST_F()
Ddevice_info.cc40 using shill::NetlinkMessage;
71 if (nl80211_family_id == NetlinkMessage::kIllegalMessageType) { in Start()
/system/connectivity/shill/
DNETLINK_MESSAGES.txt12 NetlinkMessage (and its children such as ControlNetlinkMessage and
30 class of the NetlinkMessage type. For example:
157 const NetlinkMessage* netlink_message) {
Ddaemon_task.cc179 if (nl80211_family_id == NetlinkMessage::kIllegalMessageType) { in Start()

12