Lines Matching refs:hdrlen

603 					    int hdrlen)  in nlmsg_attrdata()  argument
606 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata()
614 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() argument
616 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()
737 static inline int __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in __nlmsg_parse() argument
743 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) { in __nlmsg_parse()
748 return __nla_parse(tb, maxtype, nlmsg_attrdata(nlh, hdrlen), in __nlmsg_parse()
749 nlmsg_attrlen(nlh, hdrlen), policy, validate, in __nlmsg_parse()
764 static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse() argument
769 return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy, in nlmsg_parse()
784 static inline int nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse_deprecated() argument
789 return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy, in nlmsg_parse_deprecated()
805 nlmsg_parse_deprecated_strict(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse_deprecated_strict() argument
810 return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy, in nlmsg_parse_deprecated_strict()
823 int hdrlen, int attrtype) in nlmsg_find_attr() argument
825 return nla_find(nlmsg_attrdata(nlh, hdrlen), in nlmsg_find_attr()
826 nlmsg_attrlen(nlh, hdrlen), attrtype); in nlmsg_find_attr()
883 int hdrlen, int maxtype, in nlmsg_validate_deprecated() argument
887 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) in nlmsg_validate_deprecated()
890 return __nla_validate(nlmsg_attrdata(nlh, hdrlen), in nlmsg_validate_deprecated()
891 nlmsg_attrlen(nlh, hdrlen), maxtype, in nlmsg_validate_deprecated()
915 #define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \ argument
916 nla_for_each_attr(pos, nlmsg_attrdata(nlh, hdrlen), \
917 nlmsg_attrlen(nlh, hdrlen), rem)