Lines Matching defs:vhdr
936 struct radius_attr_vendor *vhdr;
955 while (left >= sizeof(*vhdr)) {
956 vhdr = (struct radius_attr_vendor *) pos;
957 if (vhdr->vendor_length > left ||
958 vhdr->vendor_length < sizeof(*vhdr)) {
961 if (vhdr->vendor_type != subtype) {
962 pos += vhdr->vendor_length;
963 left -= vhdr->vendor_length;
967 len = vhdr->vendor_length - sizeof(*vhdr);
968 data = os_memdup(pos + sizeof(*vhdr), len);
1195 struct radius_attr_vendor *vhdr;
1201 hlen = sizeof(vendor_id) + sizeof(*vhdr) + 2;
1211 vhdr = (struct radius_attr_vendor *) pos;
1212 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY;
1213 pos = (u8 *) (vhdr + 1);
1223 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);
1240 vhdr = (struct radius_attr_vendor *) pos;
1241 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY;
1242 pos = (u8 *) (vhdr + 1);
1248 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);