Lines Matching refs:nlh
198 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg() argument
203 struct tcmsg *t = NLMSG_DATA(nlh); in __dump_class_nlmsg()
206 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_class_nlmsg()
218 struct nlmsghdr nlh; in netlink_get_class() member
221 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_class()
222 .nlh.nlmsg_type = RTM_GETTCLASS, in netlink_get_class()
223 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_class()
229 req.nlh.nlmsg_seq = seq; in netlink_get_class()
230 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in netlink_get_class()
237 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg() argument
242 struct tcmsg *t = NLMSG_DATA(nlh); in __dump_qdisc_nlmsg()
245 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_qdisc_nlmsg()
257 struct nlmsghdr nlh; in netlink_get_qdisc() member
260 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_qdisc()
261 .nlh.nlmsg_type = RTM_GETQDISC, in netlink_get_qdisc()
262 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_qdisc()
268 req.nlh.nlmsg_seq = seq; in netlink_get_qdisc()
269 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in netlink_get_qdisc()
276 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg() argument
281 struct tcmsg *t = NLMSG_DATA(nlh); in __dump_filter_nlmsg()
284 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_filter_nlmsg()
296 struct nlmsghdr nlh; in netlink_get_filter() member
299 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_filter()
300 .nlh.nlmsg_type = RTM_GETTFILTER, in netlink_get_filter()
301 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_filter()
308 req.nlh.nlmsg_seq = seq; in netlink_get_filter()
309 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in netlink_get_filter()
316 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg() argument
320 struct ifinfomsg *ifi = NLMSG_DATA(nlh); in __dump_link_nlmsg()
323 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in __dump_link_nlmsg()
335 struct nlmsghdr nlh; in netlink_get_link() member
338 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in netlink_get_link()
339 .nlh.nlmsg_type = RTM_GETLINK, in netlink_get_link()
340 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_link()
345 req.nlh.nlmsg_seq = seq; in netlink_get_link()
346 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in netlink_get_link()