Home
last modified time | relevance | path

Searched refs:nlmsg (Results 1 – 7 of 7) sorted by relevance

/system/netd/server/
DNetlinkListener.cpp52 const NetlinkListener::DispatchFn kDefaultDispatchFn = [](const nlmsghdr& nlmsg, const Slice) { in __anoncbe671fe0202() argument
54 ss << nlmsg; in __anoncbe671fe0202()
62 const auto rxErrorHandler = [](const nlmsghdr& nlmsg, const Slice msg) { in __anoncbe671fe0402() argument
64 ss << nlmsg << " " << msg << " " << netdutils::toHex(msg, 32); in __anoncbe671fe0402()
102 const auto rxHandler = [this](const nlmsghdr& nlmsg, const Slice& buf) { in run() argument
104 const auto& fn = findWithDefault(mDispatchMap, nlmsg.nlmsg_type, kDefaultDispatchFn); in run()
105 fn(nlmsg, buf); in run()
DNFLogListenerTest.cpp89 nlmsghdr nlmsg; in sendEmptyMsg() member
93 msg.nlmsg.nlmsg_type = kNFLogPacketMsgType; in sendEmptyMsg()
94 msg.nlmsg.nlmsg_len = sizeof(msg); in sendEmptyMsg()
96 mPacketFn(msg.nlmsg, drop(makeSlice(msg), sizeof(msg.nlmsg))); in sendEmptyMsg()
DWakeupControllerTest.cpp85 nlmsghdr nlmsg; in TEST_F() member
116 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F()
127 nlmsghdr nlmsg; in TEST_F() member
165 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F()
173 nlmsghdr nlmsg; in TEST_F() member
186 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F()
DNetlinkCommands.cpp78 nlmsghdr nlmsg = { in sendNetlinkRequest() local
82 iov[0].iov_base = &nlmsg; in sendNetlinkRequest()
83 iov[0].iov_len = sizeof(nlmsg); in sendNetlinkRequest()
85 nlmsg.nlmsg_len += iov[i].iov_len; in sendNetlinkRequest()
DNFLogListener.cpp54 const NFLogListener::DispatchFn kDefaultDispatchFn = [](const nlmsghdr& nlmsg,
57 ss << nlmsg << " " << nfmsg << " " << msg << " " << netdutils::toHex(msg, 32); in __anon5a1cf7df0202()
150 const auto rxHandler = [this](const nlmsghdr& nlmsg, const Slice msg) { in NFLogListener() argument
155 fn(nlmsg, nfmsg, drop(msg, sizeof(nfmsg))); in NFLogListener()
DNFLogListener.h30 std::function<void(const nlmsghdr& nlmsg, const nfgenmsg& nfmsg,
DNetlinkListener.h35 using DispatchFn = std::function<void(const nlmsghdr& nlmsg, const netdutils::Slice msg)>;