Lines Matching refs:nlh
197 static int __dump_class_nlmsg(struct nlmsghdr *nlh,
202 struct tcmsg *t = NLMSG_DATA(nlh);
205 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t));
217 struct nlmsghdr nlh;
220 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)),
221 .nlh.nlmsg_type = RTM_GETTCLASS,
222 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
228 req.nlh.nlmsg_seq = seq;
229 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
236 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh,
241 struct tcmsg *t = NLMSG_DATA(nlh);
244 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t));
256 struct nlmsghdr nlh;
259 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)),
260 .nlh.nlmsg_type = RTM_GETQDISC,
261 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
267 req.nlh.nlmsg_seq = seq;
268 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
275 static int __dump_filter_nlmsg(struct nlmsghdr *nlh,
280 struct tcmsg *t = NLMSG_DATA(nlh);
283 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t));
295 struct nlmsghdr nlh;
298 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)),
299 .nlh.nlmsg_type = RTM_GETTFILTER,
300 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
307 req.nlh.nlmsg_seq = seq;
308 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
315 static int __dump_link_nlmsg(struct nlmsghdr *nlh,
319 struct ifinfomsg *ifi = NLMSG_DATA(nlh);
322 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi));
334 struct nlmsghdr nlh;
337 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)),
338 .nlh.nlmsg_type = RTM_GETLINK,
339 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
344 req.nlh.nlmsg_seq = seq;
345 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)