Searched refs:hdrlen (Results 1 – 2 of 2) sorted by relevance
92 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrdata() argument95 return (struct nlattr *)(data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata()127 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() argument129 return nlmsg_datalen(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()
30 struct nlattr *genlmsg_attrdata(const struct genlmsghdr *gnlh, int hdrlen) in genlmsg_attrdata() argument33 ((char *) gnlh + GENL_HDRLEN + NLMSG_ALIGN(hdrlen)); in genlmsg_attrdata()38 int genlmsg_attrlen(const struct genlmsghdr *gnlh, int hdrlen) in genlmsg_attrlen() argument43 nla = genlmsg_attrdata(gnlh, hdrlen); in genlmsg_attrlen()50 int hdrlen, int flags, uint8_t cmd, uint8_t version) in genlmsg_put() argument58 new_size = NLMSG_HDRLEN + GENL_HDRLEN + hdrlen; in genlmsg_put()