Lines Matching defs:vhdr
1093 struct radius_attr_vendor *vhdr;
1112 while (left >= sizeof(*vhdr)) {
1113 vhdr = (struct radius_attr_vendor *) pos;
1114 if (vhdr->vendor_length > left ||
1115 vhdr->vendor_length < sizeof(*vhdr)) {
1118 if (vhdr->vendor_type != subtype) {
1119 pos += vhdr->vendor_length;
1120 left -= vhdr->vendor_length;
1124 len = vhdr->vendor_length - sizeof(*vhdr);
1125 data = os_memdup(pos + sizeof(*vhdr), len);
1352 struct radius_attr_vendor *vhdr;
1358 hlen = sizeof(vendor_id) + sizeof(*vhdr) + 2;
1368 vhdr = (struct radius_attr_vendor *) pos;
1369 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY;
1370 pos = (u8 *) (vhdr + 1);
1380 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);
1397 vhdr = (struct radius_attr_vendor *) pos;
1398 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY;
1399 pos = (u8 *) (vhdr + 1);
1405 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);