Home | History | Annotate | Download | only in lib

Lines Matching refs:nlmsghdr

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