Lines Matching refs:nlh
130 for (nlmsghdr *nlh = reinterpret_cast<nlmsghdr *>(buf); in processNetlinkDump() local
131 NLMSG_OK(nlh, len); in processNetlinkDump()
132 nlh = NLMSG_NEXT(nlh, len)) { in processNetlinkDump()
133 switch (nlh->nlmsg_type) { in processNetlinkDump()
137 nlmsgerr *err = reinterpret_cast<nlmsgerr *>(NLMSG_DATA(nlh)); in processNetlinkDump()
141 callback(nlh); in processNetlinkDump()
162 NetlinkDumpCallback callback = [writeSock, deleteAction, shouldDelete, what] (nlmsghdr *nlh) { in rtNetlinkFlush() argument
163 if (!shouldDelete(nlh)) return; in rtNetlinkFlush()
165 nlh->nlmsg_type = deleteAction; in rtNetlinkFlush()
166 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in rtNetlinkFlush()
167 if (write(writeSock, nlh, nlh->nlmsg_len) == -1) { in rtNetlinkFlush()
204 uint32_t getRtmU32Attribute(const nlmsghdr *nlh, int attribute) { in getRtmU32Attribute() argument
205 uint32_t rta_len = RTM_PAYLOAD(nlh); in getRtmU32Attribute()
206 rtmsg *msg = reinterpret_cast<rtmsg *>(NLMSG_DATA(nlh)); in getRtmU32Attribute()