Lines Matching defs:maxtype
26 static int validate_nla(struct nlattr *nla, int maxtype,
32 if (type <= 0 || type > maxtype)
109 * @maxtype: maximum attribute type to be expected
113 * specified policy. Attributes with a type exceeding maxtype will be
118 int nla_validate(struct nlattr *head, int len, int maxtype,
125 err = validate_nla(nla, maxtype, policy);
163 * @tb: destination array with maxtype+1 elements
164 * @maxtype: maximum attribute type to be expected
171 * exceeding maxtype will be silently ignored for backwards compatibility
176 int nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len,
182 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1));
187 if (type > 0 && type <= maxtype) {
189 err = validate_nla(nla, maxtype, policy);