Home
last modified time | relevance | path

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

/system/netd/server/
DNetlinkListener.cpp52 const NetlinkListener::DispatchFn kDefaultDispatchFn = [](const nlmsghdr& nlmsg, const Slice) { in __anonacb8a4e60202() argument
54 ss << nlmsg; in __anonacb8a4e60202()
62 const auto rxErrorHandler = [](const nlmsghdr& nlmsg, const Slice msg) { in NetlinkListener() argument
64 ss << nlmsg << " " << msg << " " << netdutils::toHex(msg, 32); in NetlinkListener()
113 const auto rxHandler = [this](const nlmsghdr& nlmsg, const Slice& buf) { in run() argument
115 const auto& fn = findWithDefault(mDispatchMap, nlmsg.nlmsg_type, kDefaultDispatchFn); in run()
116 fn(nlmsg, buf); in run()
DNFLogListenerTest.cpp85 nlmsghdr nlmsg; in sendEmptyMsg() member
89 msg.nlmsg.nlmsg_type = kNFLogPacketMsgType; in sendEmptyMsg()
90 msg.nlmsg.nlmsg_len = sizeof(msg); in sendEmptyMsg()
92 mPacketFn(msg.nlmsg, drop(makeSlice(msg), sizeof(msg.nlmsg))); in sendEmptyMsg()
DNetlinkCommands.cpp87 nlmsghdr nlmsg = { in sendNetlinkRequest() local
91 iov[0].iov_base = &nlmsg; in sendNetlinkRequest()
92 iov[0].iov_len = sizeof(nlmsg); in sendNetlinkRequest()
94 nlmsg.nlmsg_len += iov[i].iov_len; in sendNetlinkRequest()
DWakeupControllerTest.cpp101 nlmsghdr nlmsg; in TEST_F() member
133 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F()
151 nlmsghdr nlmsg; in TEST_F() member
209 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F()
220 nlmsghdr nlmsg; in TEST_F() member
259 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F()
267 nlmsghdr nlmsg; in TEST_F() member
281 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F()
DNFLogListener.cpp51 const NFLogListener::DispatchFn kDefaultDispatchFn = [](const nlmsghdr& nlmsg,
54 ss << nlmsg << " " << nfmsg << " " << msg << " " << netdutils::toHex(msg, 32); in __anon837550c70202()
147 const auto rxHandler = [this](const nlmsghdr& nlmsg, const Slice msg) { in NFLogListener() argument
152 fn(nlmsg, nfmsg, drop(msg, sizeof(nfmsg))); in NFLogListener()
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)>;
/system/netd/tests/
Dtun_interface.cpp169 nlmsghdr* nlmsg = reinterpret_cast<nlmsghdr*>(buf); in addAddress() local
170 if (nlmsg->nlmsg_type != RTM_NEWADDR) continue; in addAddress()
172 ifaddrmsg* ifaddr = reinterpret_cast<ifaddrmsg*>(NLMSG_DATA(nlmsg)); in addAddress()
177 int ifalen = IFA_PAYLOAD(nlmsg); in addAddress()