Lines Matching refs:nlh

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