Lines Matching defs:nlh

204 static int __dump_class_nlmsg(struct nlmsghdr *nlh,
209 struct tcmsg *t = NLMSG_DATA(nlh);
212 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t));
224 struct nlmsghdr nlh;
227 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)),
228 .nlh.nlmsg_type = RTM_GETTCLASS,
229 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
235 req.nlh.nlmsg_seq = seq;
236 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
243 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh,
248 struct tcmsg *t = NLMSG_DATA(nlh);
251 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t));
263 struct nlmsghdr nlh;
266 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)),
267 .nlh.nlmsg_type = RTM_GETQDISC,
268 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
274 req.nlh.nlmsg_seq = seq;
275 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
282 static int __dump_filter_nlmsg(struct nlmsghdr *nlh,
287 struct tcmsg *t = NLMSG_DATA(nlh);
290 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t));
302 struct nlmsghdr nlh;
305 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)),
306 .nlh.nlmsg_type = RTM_GETTFILTER,
307 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
314 req.nlh.nlmsg_seq = seq;
315 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
322 static int __dump_link_nlmsg(struct nlmsghdr *nlh,
326 struct ifinfomsg *ifi = NLMSG_DATA(nlh);
329 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi));
341 struct nlmsghdr nlh;
344 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)),
345 .nlh.nlmsg_type = RTM_GETLINK,
346 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
351 req.nlh.nlmsg_seq = seq;
352 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)