Home
last modified time | relevance | path

Searched refs:nlmsghdr (Results 1 – 25 of 30) sorted by relevance

12

/system/connectivity/wificond/net/
Dnl80211_packet.cpp44 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 …]
Dnetlink_manager.cpp109 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/
DNetlinkEvent.h61 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/
DNetlinkCommands.h42 typedef std::function<void(nlmsghdr *)> NetlinkDumpCallback;
43 typedef std::function<bool(nlmsghdr *)> NetlinkDumpFilter;
69 uint32_t getRtmU32Attribute(const nlmsghdr *nlh, int attribute);
DNetlinkCommands.cpp48 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()
DNFLogListenerTest.cpp85 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
DNFLogListener.cpp51 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
DNetlinkListener.cpp52 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()
DOffloadUtils.cpp119 nlmsghdr h; in sendAndProcessNetlinkResponse()
162 nlmsghdr n; in doTcQdiscClsact()
274 nlmsghdr n; in tcFilterAddDevBpf()
368 nlmsghdr n; in tcFilterDelDev()
DWakeupControllerTest.cpp101 nlmsghdr nlmsg; in TEST_F()
151 nlmsghdr nlmsg; in TEST_F()
220 nlmsghdr nlmsg; in TEST_F()
267 nlmsghdr nlmsg; in TEST_F()
DNFLogListener.h31 std::function<void(const nlmsghdr& nlmsg, const nfgenmsg& nfmsg,
DNetlinkListener.h36 using DispatchFn = std::function<void(const nlmsghdr& nlmsg, const netdutils::Slice msg)>;
DSockDiag.h58 nlmsghdr nlh;
DSockDiag.cpp57 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()
DRouteControllerTest.cpp54 NetlinkDumpCallback callback = [&expectedPriorities] (const nlmsghdr *nlh) { in TEST_F()
DRouteController.h149 uint32_t getRulePriority(const nlmsghdr *nlh);
DRouteController.cpp967 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()
DWakeupController.cpp122 const auto msgHandler = [this](const nlmsghdr&, const nfgenmsg&, const Slice msg) { in init() argument
/system/netd/libnetdutils/
DNetlink.cpp27 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/
DNetlink.h35 const std::function<void(const nlmsghdr&, const Slice)>& onMsg);
51 std::ostream& operator<<(std::ostream& os, const nlmsghdr& hdr);
/system/core/libsysutils/src/
DNetlinkEvent.cpp120 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/
Dlibaudit.h44 struct nlmsghdr nlh;
/system/netd/tests/
Dtun_interface.cpp169 nlmsghdr* nlmsg = reinterpret_cast<nlmsghdr*>(buf); in addAddress()
/system/core/libnetutils/
Difc_utils.c268 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/
Dscan_utils_unittest.cpp69 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data.data()); in CreateControlMessageError()

12