Lines Matching refs:hdr
831 const struct eap_hdr *hdr = (const struct eap_hdr *) req;
832 const u8 *pos = (const u8 *) (hdr + 1);
848 pos, be_to_host16(hdr->length) - 5);
1010 const struct eap_hdr *hdr = (const struct eap_hdr *) req;
1015 pos = (const u8 *) (hdr + 1);
1018 msg_len = be_to_host16(hdr->length);
1060 const struct eap_hdr *hdr;
1070 if (req == NULL || len < sizeof(*hdr))
1073 hdr = (const struct eap_hdr *) req;
1074 plen = be_to_host16(hdr->length);
1082 sm->reqId = hdr->identifier;
1088 switch (hdr->code) {
1090 if (plen < sizeof(*hdr) + 1) {
1096 pos = (const u8 *) (hdr + 1);
1099 if (plen < sizeof(*hdr) + 8) {
1121 if (plen < sizeof(*hdr) + 1) {
1127 pos = (const u8 *) (hdr + 1);
1146 "code %d", hdr->code);
1969 const struct eap_hdr *hdr;
1973 hdr = (const struct eap_hdr *) msg;
1975 if (msglen < sizeof(*hdr)) {
1980 len = be_to_host16(hdr->length);
1981 if (len < sizeof(*hdr) + 1 || len > msglen) {
1986 pos = (const u8 *) (hdr + 1);
1991 if (len < sizeof(*hdr) + 8) {
2007 *plen = len - sizeof(*hdr) - 8;
2014 *plen = len - sizeof(*hdr) - 1;
2083 struct eap_hdr *hdr;
2088 hdr = os_malloc(*len);
2089 if (hdr) {
2090 hdr->code = code;
2091 hdr->identifier = identifier;
2092 hdr->length = host_to_be16(*len);
2093 pos = (u8 *) (hdr + 1);
2107 return hdr;