/system/connectivity/shill/net/ |
netlink_message.h | 40 // different payload format. The NetlinkMessage class represents that which 75 // NetlinkMessage can be instantiated with a valid |message_type_|. 79 class SHILL_EXPORT NetlinkMessage { 92 explicit NetlinkMessage(uint16_t message_type) : 95 virtual ~NetlinkMessage() {} 102 // Initializes the |NetlinkMessage| from a complete and legal message 142 DISALLOW_COPY_AND_ASSIGN(NetlinkMessage); 153 class SHILL_EXPORT ErrorAckMessage : public NetlinkMessage { 157 ErrorAckMessage() : NetlinkMessage(kMessageType), error_(0) {} 159 : NetlinkMessage(kMessageType), error_(err) { [all...] |
netlink_message.cc | 41 const uint32_t NetlinkMessage::kBroadcastSequenceNumber = 0; 42 const uint16_t NetlinkMessage::kIllegalMessageType = UINT16_MAX; 44 // NetlinkMessage 46 ByteString NetlinkMessage::EncodeHeader(uint32_t sequence_number) { 74 bool NetlinkMessage::InitAndStripHeader(NetlinkPacket* packet) { 83 bool NetlinkMessage::InitFromPacket(NetlinkPacket* packet, 84 NetlinkMessage::MessageContext context) { 96 void NetlinkMessage::PrintBytes(int log_level, const unsigned char* buf, 118 void NetlinkMessage::PrintPacket(int log_level, const NetlinkPacket& packet) { 131 void NetlinkMessage::PrintHeader(int log_level, const nlmsghdr* header) [all...] |
generic_netlink_message.h | 68 class SHILL_EXPORT GenericNetlinkMessage : public NetlinkMessage { 72 : NetlinkMessage(my_message_type), 116 static NetlinkMessage* CreateMessage(const NetlinkPacket& packet);
|
generic_netlink_message.cc | 33 ByteString result(NetlinkMessage::EncodeHeader(sequence_number)); 80 if (!NetlinkMessage::InitAndStripHeader(packet)) { 110 NetlinkPacket* packet, NetlinkMessage::MessageContext context) { 139 NetlinkMessage* ControlNetlinkMessage::CreateMessage(
|
netlink_manager.h | 36 // static void MyMessageHandler(const NetlinkMessage& raw) { 116 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; 211 // |NetlinkMessage::kIllegalMessageType| if the message type could not be 225 // Uninstall a NetlinkMessage Handler. 252 const NetlinkMessage* raw_message); 261 bool RemoveMessageHandler(const NetlinkMessage& message); 268 // Gets the next sequence number for a NetlinkMessage to be sent ove [all...] |
netlink_manager.cc | 76 AuxilliaryMessageType type, const NetlinkMessage* netlink_message) const { 107 bool HandleMessage(const NetlinkMessage& netlink_message) const override { 149 bool HandleMessage(const NetlinkMessage& netlink_message) const override { 183 family_id(NetlinkMessage::kIllegalMessageType) {} 264 const NetlinkMessage* raw_message) { 336 if (message_type.family_id != NetlinkMessage::kIllegalMessageType) { 389 return NetlinkMessage::kIllegalMessageType; 394 return NetlinkMessage::kIllegalMessageType; 402 if (message_type.family_id != NetlinkMessage::kIllegalMessageType) { 404 if (family_id != NetlinkMessage::kIllegalMessageType) [all...] |
mock_netlink_manager.h | 29 class NetlinkMessage;
|
netlink_message_unittest.cc | 19 // tests the various NetlinkMessage types' ability to parse those 22 // This file tests the public interface to NetlinkMessage. 449 unique_ptr<NetlinkMessage> netlink_message( 451 &trigger_scan_packet, NetlinkMessage::MessageContext())); 503 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( 504 &new_scan_results_packet, NetlinkMessage::MessageContext())); 556 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( 557 &netlink_packet, NetlinkMessage::MessageContext())); 597 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( 598 &netlink_packet, NetlinkMessage::MessageContext())) [all...] |
nl80211_message.cc | 86 if (message_type == NetlinkMessage::kIllegalMessageType) { 93 NetlinkMessage::MessageContext context) { 483 NetlinkMessage::MessageContext())); 486 NetlinkMessage::MessageContext())); 503 NetlinkMessage::MessageContext())); 555 NetlinkMessage::MessageContext())); 565 NetlinkMessage::MessageContext())); 582 NetlinkMessage::MessageContext())); 598 NetlinkMessage::MessageContext())); 607 NetlinkMessage* Nl80211Message::CreateMessage(const NetlinkPacket& packet) [all...] |
netlink_socket.cc | 150 if (++sequence_number_ == NetlinkMessage::kBroadcastSequenceNumber)
|
/frameworks/base/services/net/java/android/net/netlink/ |
NetlinkMessage.java | 30 * NetlinkMessage base class for other, more specific netlink message types. 32 * Classes that extend NetlinkMessage should: 35 * type (cast-able to NetlinkMessage) 37 * NetlinkMessage.parse() should be updated to know which nlmsg_type values 42 public class NetlinkMessage { 43 private final static String TAG = "NetlinkMessage"; 45 public static NetlinkMessage parse(ByteBuffer byteBuffer) { 63 return (NetlinkMessage) NetlinkErrorMessage.parse(nlmsghdr, byteBuffer); 66 return new NetlinkMessage(nlmsghdr); 71 return (NetlinkMessage) RtNetlinkNeighborMessage.parse(nlmsghdr, byteBuffer) [all...] |
NetlinkErrorMessage.java | 20 import android.net.netlink.NetlinkMessage; 26 * A NetlinkMessage subclass for netlink error messages. 30 public class NetlinkErrorMessage extends NetlinkMessage {
|
/system/connectivity/shill/wifi/ |
callback80211_metrics.h | 33 class NetlinkMessage; 44 void CollectDisconnectStatistics(const NetlinkMessage& msg);
|
callback80211_metrics_unittest.cc | 160 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( 161 &packet, NetlinkMessage::MessageContext())); 169 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( 170 &packet, NetlinkMessage::MessageContext())); 180 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( 181 &packet, NetlinkMessage::MessageContext())); 189 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( 190 &packet, NetlinkMessage::MessageContext())); 198 unique_ptr<NetlinkMessage> netlink_message(message_factory_.CreateMessage( 199 &packet, NetlinkMessage::MessageContext())) [all...] |
scan_session.h | 39 class NetlinkMessage; 196 const NetlinkMessage* netlink_message);
|
mock_wake_on_wifi.h | 60 void(const NetlinkMessage& netlink_message));
|
callback80211_metrics.cc | 60 const NetlinkMessage& netlink_message) {
|
/frameworks/base/services/tests/servicestests/src/android/net/netlink/ |
RtNetlinkNeighborMessageTest.java | 20 import android.net.netlink.NetlinkMessage; 141 final NetlinkMessage msg = NetlinkMessage.parse(byteBuffer); 167 final NetlinkMessage msg = NetlinkMessage.parse(byteBuffer); 196 final NetlinkMessage msg = NetlinkMessage.parse(byteBuffer);
|
NetlinkErrorMessageTest.java | 25 import android.net.netlink.NetlinkMessage; 59 final NetlinkMessage msg = NetlinkMessage.parse(byteBuffer);
|
NetlinkSocketTest.java | 67 final NetlinkMessage msg = NetlinkMessage.parse(response);
|
/prebuilts/go/darwin-x86/src/syscall/ |
netlink_linux.go | 108 // NetlinkMessage represents a netlink message. 109 type NetlinkMessage struct { 115 // returns the slice containing the NetlinkMessage structures. 116 func ParseNetlinkMessage(b []byte) ([]NetlinkMessage, error) { 117 var msgs []NetlinkMessage 123 m := NetlinkMessage{Header: *h, Data: dbuf[:int(h.Len)-NLMSG_HDRLEN]} 147 func ParseNetlinkRouteAttr(m *NetlinkMessage) ([]NetlinkRouteAttr, error) {
|
/prebuilts/go/linux-x86/src/syscall/ |
netlink_linux.go | 108 // NetlinkMessage represents a netlink message. 109 type NetlinkMessage struct { 115 // returns the slice containing the NetlinkMessage structures. 116 func ParseNetlinkMessage(b []byte) ([]NetlinkMessage, error) { 117 var msgs []NetlinkMessage 123 m := NetlinkMessage{Header: *h, Data: dbuf[:int(h.Len)-NLMSG_HDRLEN]} 147 func ParseNetlinkRouteAttr(m *NetlinkMessage) ([]NetlinkRouteAttr, error) {
|
/bionic/libc/bionic/ |
bionic_netlink.cpp | 67 struct NetlinkMessage {
|
/frameworks/base/services/net/java/android/net/ip/ |
IpReachabilityMonitor.java | 31 import android.net.netlink.NetlinkMessage; 189 final NetlinkMessage response = NetlinkMessage.parse(bytes); 508 final NetlinkMessage nlMsg = NetlinkMessage.parse(byteBuffer);
|
/system/connectivity/apmanager/ |
device_info_unittest.cc | 201 NL80211_ATTR_WIPHY_NAME, shill::NetlinkMessage::MessageContext()); 308 NL80211_ATTR_IFINDEX, shill::NetlinkMessage::MessageContext()); 320 NL80211_ATTR_IFTYPE, shill::NetlinkMessage::MessageContext()); 338 NL80211_ATTR_WIPHY_NAME, shill::NetlinkMessage::MessageContext()); 372 NL80211_ATTR_WIPHY_NAME, shill::NetlinkMessage::MessageContext());
|