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