Lines Matching refs:attrlen
20 static void rc_extract_vendor_specific_attributes(int attrlen,
157 int attrlen; in rc_avpair_gen() local
177 attrlen = *ptr++; in rc_avpair_gen()
178 attrlen -= 2; in rc_avpair_gen()
179 if (attrlen < 0) in rc_avpair_gen()
187 rc_extract_vendor_specific_attributes(attrlen, ptr, &vp); in rc_avpair_gen()
188 ptr += attrlen; in rc_avpair_gen()
189 length -= (attrlen + 2); in rc_avpair_gen()
195 for (x_ptr = ptr, x_len = attrlen ; in rc_avpair_gen()
203 attribute, attrlen, buffer); in rc_avpair_gen()
225 memcpy (pair->strvalue, (char *) ptr, (size_t) attrlen); in rc_avpair_gen()
226 pair->strvalue[attrlen] = '\0'; in rc_avpair_gen()
227 pair->lvalue = attrlen; in rc_avpair_gen()
246 ptr += attrlen; in rc_avpair_gen()
247 length -= attrlen + 2; in rc_avpair_gen()
261 static void rc_extract_vendor_specific_attributes(int attrlen, in rc_extract_vendor_specific_attributes() argument
273 if (attrlen < 8) { in rc_extract_vendor_specific_attributes()
292 attrlen -= 4; in rc_extract_vendor_specific_attributes()
293 for (; attrlen; attrlen -= vlen+2, ptr += vlen) { in rc_extract_vendor_specific_attributes()
297 if (vlen < 0 || vlen > attrlen - 2) { in rc_extract_vendor_specific_attributes()