Home
last modified time | relevance | path

Searched refs:attrlen (Results 1 – 1 of 1) sorted by relevance

/lib/
Dnlattr.c163 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla() local
176 if ((nla_attr_len[pt->type] && attrlen != nla_attr_len[pt->type]) || in validate_nla()
177 (pt->type == NLA_EXACT_LEN_WARN && attrlen != pt->len)) { in validate_nla()
204 if (attrlen != pt->len) in validate_nla()
218 if (attrlen > 0) in validate_nla()
223 if (attrlen != sizeof(struct nla_bitfield32)) in validate_nla()
233 minlen = min_t(int, attrlen, pt->len + 1); in validate_nla()
235 minlen = attrlen; in validate_nla()
244 if (attrlen < 1) in validate_nla()
250 if (buf[attrlen - 1] == '\0') in validate_nla()
[all …]