Lines Matching refs:nlmsghdr
28 /* Whole page will store nl_msg + nlmsghdr + genlmsghdr + payload */
31 struct nlmsghdr *nlh;
39 nlh = (struct nlmsghdr *) ((char *) nm + sizeof(struct nl_msg));
63 void *nlmsg_data(const struct nlmsghdr *nlh)
86 struct nlmsghdr *nlmsg_hdr(struct nl_msg *n)
92 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen)
99 void *nlmsg_tail(const struct nlmsghdr *nlh)
105 struct nlmsghdr *nlmsg_next(struct nlmsghdr *nlh, int *remaining)
107 struct nlmsghdr *next_nlh = NULL;
113 len >= (int) sizeof(struct nlmsghdr)) {
114 next_nlh = (struct nlmsghdr *)((char *)nlh + len);
121 int nlmsg_datalen(const struct nlmsghdr *nlh)
127 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen)
133 int nlmsg_len(const struct nlmsghdr *nlh)
139 int nlmsg_ok(const struct nlmsghdr *nlh, int rem)
141 return rem >= (int)sizeof(struct nlmsghdr) &&
143 nlmsg_len(nlh) >= (int) sizeof(struct nlmsghdr) &&