Lines Matching refs:nlmsghdr
69 static int nl_dump_ext_err(const struct nlmsghdr *nlh, nl_ext_ack_fn_t errfn) in nl_dump_ext_err()
73 const struct nlmsghdr *err_nlh = NULL; in nl_dump_ext_err()
123 static int nl_dump_ext_err(const struct nlmsghdr *nlh, nl_ext_ack_fn_t errfn) in nl_dump_ext_err()
211 struct nlmsghdr nlh; in rtnl_wilddump_req_filter()
234 struct nlmsghdr nlh; in rtnl_wilddump_req_filter_fn()
260 struct nlmsghdr nlh; in rtnl_wilddump_stats_req_filter()
283 struct nlmsghdr *h; in rtnl_send_check()
299 for (h = (struct nlmsghdr *)resp; NLMSG_OK(h, status); in rtnl_send_check()
317 struct nlmsghdr nlh = { in rtnl_dump_request()
338 int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n) in rtnl_dump_request_n()
359 static int rtnl_dump_done(struct nlmsghdr *h) in rtnl_dump_done()
388 struct nlmsghdr *h) in rtnl_dump_error()
448 struct nlmsghdr *h = (struct nlmsghdr *)buf; in rtnl_dump_filter_l()
520 static void rtnl_talk_error(struct nlmsghdr *h, struct nlmsgerr *err, in rtnl_talk_error()
530 static int __rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, in __rtnl_talk()
531 struct nlmsghdr *answer, size_t maxlen, in __rtnl_talk()
536 struct nlmsghdr *h; in __rtnl_talk()
583 for (h = (struct nlmsghdr *)buf; status >= sizeof(*h); ) { in __rtnl_talk()
603 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in __rtnl_talk()
636 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in __rtnl_talk()
651 int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, in rtnl_talk()
652 struct nlmsghdr *answer, size_t maxlen) in rtnl_talk()
657 int rtnl_talk_extack(struct rtnl_handle *rtnl, struct nlmsghdr *n, in rtnl_talk_extack()
658 struct nlmsghdr *answer, size_t maxlen, in rtnl_talk_extack()
664 int rtnl_talk_suppress_rtnl_errmsg(struct rtnl_handle *rtnl, struct nlmsghdr *n, in rtnl_talk_suppress_rtnl_errmsg()
665 struct nlmsghdr *answer, size_t maxlen) in rtnl_talk_suppress_rtnl_errmsg()
688 struct nlmsghdr *h; in rtnl_listen()
747 for (h = (struct nlmsghdr *)buf; status >= sizeof(*h); ) { in rtnl_listen()
768 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in rtnl_listen()
787 struct nlmsghdr *h = (struct nlmsghdr *)buf; in rtnl_from_file()
830 int addattr(struct nlmsghdr *n, int maxlen, int type) in addattr()
835 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data) in addattr8()
840 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data) in addattr16()
845 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data) in addattr32()
850 int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data) in addattr64()
855 int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *str) in addattrstrz()
860 int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, in addattr_l()
881 int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len) in addraw_l()
896 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type) in addattr_nest()
904 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest) in addattr_nest_end()
910 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, in addattr_nest_compat()
920 int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *start) in addattr_nest_compat_end()