Lines Matching defs:vhdr
773 struct radius_attr_vendor *vhdr;
791 while (left >= sizeof(*vhdr)) {
792 vhdr = (struct radius_attr_vendor *) pos;
793 if (vhdr->vendor_length > left ||
794 vhdr->vendor_length < sizeof(*vhdr)) {
798 if (vhdr->vendor_type != subtype) {
799 pos += vhdr->vendor_length;
800 left -= vhdr->vendor_length;
804 len = vhdr->vendor_length - sizeof(*vhdr);
808 os_memcpy(data, pos + sizeof(*vhdr), len);
1019 struct radius_attr_vendor *vhdr;
1025 hlen = sizeof(vendor_id) + sizeof(*vhdr) + 2;
1035 vhdr = (struct radius_attr_vendor *) pos;
1036 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY;
1037 pos = (u8 *) (vhdr + 1);
1043 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);
1060 vhdr = (struct radius_attr_vendor *) pos;
1061 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY;
1062 pos = (u8 *) (vhdr + 1);
1068 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);