Searched refs:nlh (Results 1 – 10 of 10) sorted by relevance
/system/netd/server/ |
D | NetlinkCommands.cpp | 129 for (nlmsghdr *nlh = reinterpret_cast<nlmsghdr *>(buf); in processNetlinkDump() local 130 NLMSG_OK(nlh, len); in processNetlinkDump() 131 nlh = NLMSG_NEXT(nlh, len)) { in processNetlinkDump() 132 switch (nlh->nlmsg_type) { in processNetlinkDump() 136 nlmsgerr *err = reinterpret_cast<nlmsgerr *>(NLMSG_DATA(nlh)); in processNetlinkDump() 140 callback(nlh); in processNetlinkDump() 161 NetlinkDumpCallback callback = [writeSock, deleteAction, shouldDelete, what] (nlmsghdr *nlh) { in rtNetlinkFlush() argument 162 if (!shouldDelete(nlh)) return; in rtNetlinkFlush() 164 nlh->nlmsg_type = deleteAction; in rtNetlinkFlush() 165 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in rtNetlinkFlush() [all …]
|
D | RouteControllerTest.cpp | 45 NetlinkDumpCallback callback = [&expectedPriorities] (const nlmsghdr *nlh) { in TEST_F() argument 46 expectedPriorities.erase(getRulePriority(nlh)); in TEST_F()
|
D | SockDiag.cpp | 99 nlmsghdr nlh; in sendDumpRequest() member 102 .nlh = { in sendDumpRequest() 119 request.nlh.nlmsg_len = len; in sendDumpRequest() 207 NetlinkDumpCallback callback = [this, proto, shouldDestroy] (nlmsghdr *nlh) { in readDiagMsg() argument 208 const inet_diag_msg *msg = reinterpret_cast<inet_diag_msg *>(NLMSG_DATA(nlh)); in readDiagMsg() 245 .nlh = { in sockDestroy() 256 request.nlh.nlmsg_len = sizeof(request); in sockDestroy()
|
D | NetlinkCommands.h | 73 uint32_t getRtmU32Attribute(const nlmsghdr *nlh, int attribute);
|
D | RouteController.cpp | 908 uint32_t getRulePriority(const nlmsghdr *nlh) { in getRulePriority() argument 909 return getRtmU32Attribute(nlh, FRA_PRIORITY); in getRulePriority() 912 uint32_t getRouteTable(const nlmsghdr *nlh) { in getRouteTable() argument 913 return getRtmU32Attribute(nlh, RTA_TABLE); in getRouteTable() 917 NetlinkDumpFilter shouldDelete = [] (nlmsghdr *nlh) { in flushRules() argument 919 return getRulePriority(nlh) != 0; in flushRules() 925 NetlinkDumpFilter shouldDelete = [table] (nlmsghdr *nlh) { in flushRoutes() argument 926 return getRouteTable(nlh) == table; in flushRoutes()
|
D | SockDiag.h | 50 nlmsghdr nlh; member
|
D | RouteController.h | 108 uint32_t getRulePriority(const nlmsghdr *nlh);
|
/system/core/logd/ |
D | libaudit.c | 48 if (rep.nlh.nlmsg_type == NLMSG_ERROR) { in get_ack() 85 req.nlh.nlmsg_type = type; in audit_send() 86 req.nlh.nlmsg_len = NLMSG_SPACE(size); in audit_send() 87 req.nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in audit_send() 104 memcpy(NLMSG_DATA(&req.nlh), data, size); in audit_send() 119 req.nlh.nlmsg_seq = ++sequence; in audit_send() 123 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, in audit_send() 130 } else if ((uint32_t)rc != req.nlh.nlmsg_len) { in audit_send() 256 if (!NLMSG_OK(&rep->nlh, (size_t)len)) { in audit_get_reply()
|
D | LogAudit.cpp | 127 rep.nlh.nlmsg_type = 0; in onDataAvailable() 128 rep.nlh.nlmsg_len = 0; in onDataAvailable() 136 logPrint("type=%d %.*s", rep.nlh.nlmsg_type, rep.nlh.nlmsg_len, rep.data); in onDataAvailable()
|
D | libaudit.h | 45 struct nlmsghdr nlh; member
|