Lines Matching defs:vhdr
925 struct radius_attr_vendor *vhdr;
944 while (left >= sizeof(*vhdr)) {
945 vhdr = (struct radius_attr_vendor *) pos;
946 if (vhdr->vendor_length > left ||
947 vhdr->vendor_length < sizeof(*vhdr)) {
950 if (vhdr->vendor_type != subtype) {
951 pos += vhdr->vendor_length;
952 left -= vhdr->vendor_length;
956 len = vhdr->vendor_length - sizeof(*vhdr);
960 os_memcpy(data, pos + sizeof(*vhdr), len);
1183 struct radius_attr_vendor *vhdr;
1189 hlen = sizeof(vendor_id) + sizeof(*vhdr) + 2;
1199 vhdr = (struct radius_attr_vendor *) pos;
1200 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY;
1201 pos = (u8 *) (vhdr + 1);
1209 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);
1226 vhdr = (struct radius_attr_vendor *) pos;
1227 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY;
1228 pos = (u8 *) (vhdr + 1);
1234 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);