Lines Matching defs:vhdr
934 struct radius_attr_vendor *vhdr;
953 while (left >= sizeof(*vhdr)) {
954 vhdr = (struct radius_attr_vendor *) pos;
955 if (vhdr->vendor_length > left ||
956 vhdr->vendor_length < sizeof(*vhdr)) {
959 if (vhdr->vendor_type != subtype) {
960 pos += vhdr->vendor_length;
961 left -= vhdr->vendor_length;
965 len = vhdr->vendor_length - sizeof(*vhdr);
966 data = os_memdup(pos + sizeof(*vhdr), len);
1193 struct radius_attr_vendor *vhdr;
1199 hlen = sizeof(vendor_id) + sizeof(*vhdr) + 2;
1209 vhdr = (struct radius_attr_vendor *) pos;
1210 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY;
1211 pos = (u8 *) (vhdr + 1);
1221 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);
1238 vhdr = (struct radius_attr_vendor *) pos;
1239 vhdr->vendor_type = RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY;
1240 pos = (u8 *) (vhdr + 1);
1246 vhdr->vendor_length = hlen + elen - sizeof(vendor_id);