Home | History | Annotate | Download | only in server

Lines Matching refs:nlh

129         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->nlmsg_type = deleteAction;
165 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
166 if (write(writeSock, nlh, nlh->nlmsg_len) == -1) {
203 uint32_t getRtmU32Attribute(const nlmsghdr *nlh, int attribute) {
204 uint32_t rta_len = RTM_PAYLOAD(nlh);
205 rtmsg *msg = reinterpret_cast<rtmsg *>(NLMSG_DATA(nlh));