Lines Matching refs:nlmsghdr
27 /* Whole page will store nl_msg + nlmsghdr + genlmsghdr + payload */
30 struct nlmsghdr *nlh;
38 nlh = (struct nlmsghdr *) ((char *) nm + sizeof(struct nl_msg));
62 void *nlmsg_data(const struct nlmsghdr *nlh)
85 struct nlmsghdr *nlmsg_hdr(struct nl_msg *n)
91 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen)
98 void *nlmsg_tail(const struct nlmsghdr *nlh)
104 struct nlmsghdr *nlmsg_next(struct nlmsghdr *nlh, int *remaining)
106 struct nlmsghdr *next_nlh = NULL;
112 len >= (int) sizeof(struct nlmsghdr)) {
113 next_nlh = (struct nlmsghdr *)((char *)nlh + len);
120 int nlmsg_datalen(const struct nlmsghdr *nlh)
126 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen)
132 int nlmsg_len(const struct nlmsghdr *nlh)
138 int nlmsg_ok(const struct nlmsghdr *nlh, int rem)
140 return rem >= (int)sizeof(struct nlmsghdr) &&
142 nlmsg_len(nlh) >= (int) sizeof(struct nlmsghdr) &&