/system/connectivity/wificond/net/ |
D | nl80211_packet.cpp | 44 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data_.data()); in NL80211Packet() 66 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in IsValid() 90 nl_header->nlmsg_len < sizeof(nlmsghdr)) { in IsValid() 112 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in GetFlags() 117 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in GetMessageType() 122 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in GetMessageSequence() 127 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in GetPortId() 146 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data_.data()); in AddFlag() 151 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data_.data()); in SetFlags() 156 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data_.data()); in SetMessageType() [all …]
|
D | netlink_manager.cpp | 109 if (ptr + sizeof(nlmsghdr) > ReceiveBuffer + len) { in ReceivePacketAndRunHandler() 113 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(ptr); in ReceivePacketAndRunHandler()
|
/system/core/libsysutils/include/sysutils/ |
D | NetlinkEvent.h | 61 bool parseIfInfoMessage(const struct nlmsghdr *nh); 62 bool parseIfAddrMessage(const struct nlmsghdr *nh); 63 bool parseUlogPacketMessage(const struct nlmsghdr *nh); 64 bool parseNfPacketMessage(struct nlmsghdr *nh); 65 bool parseRtMessage(const struct nlmsghdr *nh); 66 bool parseNdUserOptMessage(const struct nlmsghdr *nh); 67 struct nlattr* findNlAttr(const nlmsghdr* nl, size_t hdrlen, uint16_t attr);
|
/system/netd/server/ |
D | NetlinkCommands.h | 42 typedef std::function<void(nlmsghdr *)> NetlinkDumpCallback; 43 typedef std::function<bool(nlmsghdr *)> NetlinkDumpFilter; 69 uint32_t getRtmU32Attribute(const nlmsghdr *nlh, int attribute);
|
D | NetlinkCommands.cpp | 48 nlmsghdr msg; in recvNetlinkAck() 87 nlmsghdr nlmsg = { in sendNetlinkRequest() 138 for (nlmsghdr *nlh = reinterpret_cast<nlmsghdr *>(buf); in processNetlinkDump() 170 NetlinkDumpCallback callback = [writeSock, deleteAction, shouldDelete, what] (nlmsghdr *nlh) { in rtNetlinkFlush() 212 uint32_t getRtmU32Attribute(const nlmsghdr* nlh, int attribute) { in getRtmU32Attribute()
|
D | NFLogListenerTest.cpp | 85 nlmsghdr nlmsg; in sendEmptyMsg() 104 const auto dispatchFn = [](const nlmsghdr&, const nfgenmsg&, const Slice) {}; in TEST_F() argument 110 const auto dispatchFn = [](const nlmsghdr&, const nfgenmsg&, const Slice) {}; in TEST_F() argument 118 const auto dispatchFn = [&invocations, kType](const nlmsghdr&, const nfgenmsg& nfmsg, in TEST_F() 131 const auto dispatchFn = [](const nlmsghdr&, const nfgenmsg&, const Slice) { in TEST_F() argument
|
D | NFLogListener.cpp | 51 const NFLogListener::DispatchFn kDefaultDispatchFn = [](const nlmsghdr& nlmsg, 63 nlmsghdr nlhdr; in cfgCmdPfUnbind() 84 nlmsghdr nlhdr; in cfgMode() 105 nlmsghdr nlhdr; in cfgCmdBind() 125 nlmsghdr nlhdr; in cfgCmdUnbind() 147 const auto rxHandler = [this](const nlmsghdr& nlmsg, const Slice msg) { in NFLogListener() 157 const auto rxDoneHandler = [](const nlmsghdr&, const Slice msg) { in NFLogListener() argument
|
D | NetlinkListener.cpp | 52 const NetlinkListener::DispatchFn kDefaultDispatchFn = [](const nlmsghdr& nlmsg, const Slice) { in __anon58b9c2bf0202() 62 const auto rxErrorHandler = [](const nlmsghdr& nlmsg, const Slice msg) { in NetlinkListener() 113 const auto rxHandler = [this](const nlmsghdr& nlmsg, const Slice& buf) { in run()
|
D | OffloadUtils.cpp | 119 nlmsghdr h; in sendAndProcessNetlinkResponse() 162 nlmsghdr n; in doTcQdiscClsact() 274 nlmsghdr n; in tcFilterAddDevBpf() 368 nlmsghdr n; in tcFilterDelDev()
|
D | WakeupControllerTest.cpp | 101 nlmsghdr nlmsg; in TEST_F() 151 nlmsghdr nlmsg; in TEST_F() 220 nlmsghdr nlmsg; in TEST_F() 267 nlmsghdr nlmsg; in TEST_F()
|
D | NFLogListener.h | 31 std::function<void(const nlmsghdr& nlmsg, const nfgenmsg& nfmsg,
|
D | NetlinkListener.h | 36 using DispatchFn = std::function<void(const nlmsghdr& nlmsg, const netdutils::Slice msg)>;
|
D | SockDiag.h | 58 nlmsghdr nlh;
|
D | SockDiag.cpp | 57 nlmsghdr h; in checkError() 101 nlmsghdr nlh; in sendDumpRequest() 208 NetlinkDumpCallback callback = [this, proto, shouldDestroy] (nlmsghdr *nlh) { in readDiagMsg() 219 NetlinkDumpCallback callback = [tcpInfoReader] (nlmsghdr *nlh) { in readDiagMsgWithTcpInfo()
|
D | RouteControllerTest.cpp | 54 NetlinkDumpCallback callback = [&expectedPriorities] (const nlmsghdr *nlh) { in TEST_F()
|
D | RouteController.h | 149 uint32_t getRulePriority(const nlmsghdr *nlh);
|
D | RouteController.cpp | 967 uint32_t getRulePriority(const nlmsghdr *nlh) { in getRulePriority() 971 uint32_t getRouteTable(const nlmsghdr *nlh) { in getRouteTable() 976 NetlinkDumpFilter shouldDelete = [] (nlmsghdr *nlh) { in flushRules() 984 NetlinkDumpFilter shouldDelete = [table] (nlmsghdr *nlh) { in flushRoutes()
|
D | WakeupController.cpp | 122 const auto msgHandler = [this](const nlmsghdr&, const nfgenmsg&, const Slice msg) { in init() argument
|
/system/netd/libnetdutils/ |
D | Netlink.cpp | 27 const std::function<void(const nlmsghdr&, const Slice)>& onMsg) { in forEachNetlinkMessage() argument 29 while (tail.size() >= sizeof(nlmsghdr)) { in forEachNetlinkMessage() 30 nlmsghdr hdr = {}; in forEachNetlinkMessage() 62 std::ostream& operator<<(std::ostream& os, const nlmsghdr& hdr) { in operator <<()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Netlink.h | 35 const std::function<void(const nlmsghdr&, const Slice)>& onMsg); 51 std::ostream& operator<<(std::ostream& os, const nlmsghdr& hdr);
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 120 static bool checkRtNetlinkLength(const struct nlmsghdr *nh, size_t size) { in checkRtNetlinkLength() 144 bool NetlinkEvent::parseIfInfoMessage(const struct nlmsghdr *nh) { in parseIfInfoMessage() 178 bool NetlinkEvent::parseIfAddrMessage(const struct nlmsghdr *nh) { in parseIfAddrMessage() 282 bool NetlinkEvent::parseUlogPacketMessage(const struct nlmsghdr *nh) { in parseUlogPacketMessage() 311 bool NetlinkEvent::parseNfPacketMessage(struct nlmsghdr *nh) { in parseNfPacketMessage() 347 bool NetlinkEvent::parseRtMessage(const struct nlmsghdr *nh) { in parseRtMessage() 439 bool NetlinkEvent::parseNdUserOptMessage(const struct nlmsghdr *nh) { in parseNdUserOptMessage() 561 struct nlmsghdr *nh; in parseBinaryNetlinkMessage() 563 for (nh = (struct nlmsghdr *) buffer; in parseBinaryNetlinkMessage() 699 nlattr* NetlinkEvent::findNlAttr(const nlmsghdr* nh, size_t hdrlen, uint16_t attr) { in findNlAttr()
|
/system/core/logd/ |
D | libaudit.h | 44 struct nlmsghdr nlh;
|
/system/netd/tests/ |
D | tun_interface.cpp | 169 nlmsghdr* nlmsg = reinterpret_cast<nlmsghdr*>(buf); in addAddress()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 268 struct nlmsghdr n; in ifc_act_on_address() 275 struct nlmsghdr *nh; in ifc_act_on_address() 355 nh = (struct nlmsghdr *) buf; in ifc_act_on_address()
|
/system/connectivity/wificond/tests/ |
D | scan_utils_unittest.cpp | 69 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data.data()); in CreateControlMessageError()
|