Lines Matching refs:nlh
210 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg() argument
215 struct tcmsg *t = NLMSG_DATA(nlh); in __dump_class_nlmsg()
218 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_class_nlmsg()
230 struct nlmsghdr nlh; in netlink_get_class() member
233 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_class()
234 .nlh.nlmsg_type = RTM_GETTCLASS, in netlink_get_class()
235 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_class()
241 req.nlh.nlmsg_seq = seq; in netlink_get_class()
242 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in netlink_get_class()
249 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg() argument
254 struct tcmsg *t = NLMSG_DATA(nlh); in __dump_qdisc_nlmsg()
257 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_qdisc_nlmsg()
269 struct nlmsghdr nlh; in netlink_get_qdisc() member
272 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_qdisc()
273 .nlh.nlmsg_type = RTM_GETQDISC, in netlink_get_qdisc()
274 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_qdisc()
280 req.nlh.nlmsg_seq = seq; in netlink_get_qdisc()
281 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in netlink_get_qdisc()
288 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg() argument
293 struct tcmsg *t = NLMSG_DATA(nlh); in __dump_filter_nlmsg()
296 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_filter_nlmsg()
308 struct nlmsghdr nlh; in netlink_get_filter() member
311 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_filter()
312 .nlh.nlmsg_type = RTM_GETTFILTER, in netlink_get_filter()
313 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_filter()
320 req.nlh.nlmsg_seq = seq; in netlink_get_filter()
321 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in netlink_get_filter()
328 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg() argument
332 struct ifinfomsg *ifi = NLMSG_DATA(nlh); in __dump_link_nlmsg()
335 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in __dump_link_nlmsg()
347 struct nlmsghdr nlh; in netlink_get_link() member
350 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in netlink_get_link()
351 .nlh.nlmsg_type = RTM_GETLINK, in netlink_get_link()
352 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_link()
357 req.nlh.nlmsg_seq = seq; in netlink_get_link()
358 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in netlink_get_link()