Lines Matching refs:nlmsghdr
105 void *nlmsg_data(const struct nlmsghdr *nlh)
110 void *nlmsg_tail(const struct nlmsghdr *nlh)
121 int nlmsg_datalen(const struct nlmsghdr *nlh)
126 static int nlmsg_len(const struct nlmsghdr *nlh)
143 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen)
154 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen)
166 int nlmsg_valid_hdr(const struct nlmsghdr *nlh, int hdrlen)
179 int nlmsg_ok(const struct nlmsghdr *nlh, int remaining)
181 return (remaining >= (int)sizeof(struct nlmsghdr) &&
182 nlh->nlmsg_len >= sizeof(struct nlmsghdr) &&
194 struct nlmsghdr *nlmsg_next(struct nlmsghdr *nlh, int *remaining)
200 return (struct nlmsghdr *) ((unsigned char *) nlh + totlen);
213 int nlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[],
231 struct nlattr *nlmsg_find_attr(struct nlmsghdr *nlh, int hdrlen, int attrtype)
244 int nlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype,
265 if (len < sizeof(struct nlmsghdr))
266 len = sizeof(struct nlmsghdr);
322 struct nl_msg *nlmsg_inherit(struct nlmsghdr *hdr)
328 struct nlmsghdr *new = nm->nm_nlh;
349 struct nlmsghdr nlh = {
382 struct nl_msg *nlmsg_convert(struct nlmsghdr *hdr)
506 struct nlmsghdr *nlmsg_put(struct nl_msg *n, uint32_t pid, uint32_t seq,
509 struct nlmsghdr *nlh;
514 nlh = (struct nlmsghdr *) n->nm_nlh;
539 struct nlmsghdr *nlmsg_hdr(struct nl_msg *n)
798 struct nlmsghdr *nlh = nlmsg_hdr(msg);
834 static void *print_genl_msg(struct nl_msg *msg, FILE *ofd, struct nlmsghdr *hdr,
913 struct nlmsghdr *hdr = nlmsg_hdr(msg);
932 static void print_msg(struct nl_msg *msg, FILE *ofd, struct nlmsghdr *hdr)
975 struct nlmsghdr *hdr = nlmsg_hdr(msg);
980 fprintf(ofd, " [NETLINK HEADER] %zu octets\n", sizeof(struct nlmsghdr));