Searched refs:nlmsg (Results 1 – 8 of 8) sorted by relevance
/system/netd/server/ |
D | NetlinkListener.cpp | 52 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()
|
D | NFLogListenerTest.cpp | 85 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()
|
D | NetlinkCommands.cpp | 87 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()
|
D | WakeupControllerTest.cpp | 101 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()
|
D | NFLogListener.cpp | 51 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()
|
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)>;
|
/system/netd/tests/ |
D | tun_interface.cpp | 169 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()
|