Searched refs:nlh (Results 1 - 10 of 10) sorted by relevance

/system/netd/server/
H A DNetlinkCommands.cpp129 for (nlmsghdr *nlh = reinterpret_cast<nlmsghdr *>(buf);
130 NLMSG_OK(nlh, len);
131 nlh = NLMSG_NEXT(nlh, len)) {
132 switch (nlh->nlmsg_type) {
136 nlmsgerr *err = reinterpret_cast<nlmsgerr *>(NLMSG_DATA(nlh));
140 callback(nlh);
161 NetlinkDumpCallback callback = [writeSock, deleteAction, shouldDelete, what] (nlmsghdr *nlh) {
162 if (!shouldDelete(nlh)) return;
164 nlh
203 getRtmU32Attribute(const nlmsghdr *nlh, int attribute) argument
[all...]
H A DRouteControllerTest.cpp54 NetlinkDumpCallback callback = [&expectedPriorities] (const nlmsghdr *nlh) {
55 expectedPriorities.erase(getRulePriority(nlh));
H A DSockDiag.cpp98 nlmsghdr nlh; member in struct:android::net::__anon2099
101 .nlh = {
119 request.nlh.nlmsg_len = len;
207 NetlinkDumpCallback callback = [this, proto, shouldDestroy] (nlmsghdr *nlh) {
208 const inet_diag_msg *msg = reinterpret_cast<inet_diag_msg *>(NLMSG_DATA(nlh));
218 NetlinkDumpCallback callback = [tcpInfoReader] (nlmsghdr *nlh) {
219 if (nlh->nlmsg_type != SOCK_DIAG_BY_FAMILY) {
220 ALOGE("expected nlmsg_type=SOCK_DIAG_BY_FAMILY, got nlmsg_type=%d", nlh->nlmsg_type);
226 inet_diag_msg *msg = reinterpret_cast<inet_diag_msg *>(NLMSG_DATA(nlh));
227 uint32_t attr_len = nlh
[all...]
H A DNetlinkCommands.h79 uint32_t getRtmU32Attribute(const nlmsghdr *nlh, int attribute);
H A DSockDiag.h59 nlmsghdr nlh; member in struct:android::net::SockDiag::DestroyRequest
H A DRouteController.cpp904 uint32_t getRulePriority(const nlmsghdr *nlh) { argument
905 return getRtmU32Attribute(nlh, FRA_PRIORITY);
908 uint32_t getRouteTable(const nlmsghdr *nlh) { argument
909 return getRtmU32Attribute(nlh, RTA_TABLE);
913 NetlinkDumpFilter shouldDelete = [] (nlmsghdr *nlh) {
915 return getRulePriority(nlh) != 0;
921 NetlinkDumpFilter shouldDelete = [table] (nlmsghdr *nlh) {
922 return getRouteTable(nlh) == table;
H A DRouteController.h144 uint32_t getRulePriority(const nlmsghdr *nlh);
/system/core/logd/
H A Dlibaudit.c48 if (rep.nlh.nlmsg_type == NLMSG_ERROR) {
85 req.nlh.nlmsg_type = type;
86 req.nlh.nlmsg_len = NLMSG_SPACE(size);
87 req.nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
104 memcpy(NLMSG_DATA(&req.nlh), data, size);
119 req.nlh.nlmsg_seq = ++sequence;
123 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0,
130 } else if ((uint32_t)rc != req.nlh.nlmsg_len) {
237 if (!NLMSG_OK(&rep->nlh, (size_t)len)) {
H A Dlibaudit.h45 struct nlmsghdr nlh; member in struct:audit_message
H A DLogAudit.cpp88 rep.nlh.nlmsg_type = 0;
89 rep.nlh.nlmsg_len = 0;
97 logPrint("type=%d %.*s", rep.nlh.nlmsg_type, rep.nlh.nlmsg_len, rep.data);

Completed in 430 milliseconds