- printf("%s (%u) v%u, len %u",
- tok2str(eap_frame_type_values, "unknown", eap->type),
- eap->type,
- eap->version,
- EXTRACT_16BITS(eap->length));
-
- tptr += sizeof(const struct eap_frame_t);
- tlen -= sizeof(const struct eap_frame_t);
-
- switch (eap->type) {
- case EAP_FRAME_TYPE_PACKET:
- type = *(tptr);
- len = EXTRACT_16BITS(tptr+2);
- printf(", %s (%u), id %u, len %u",
- tok2str(eap_code_values, "unknown", type),
- type,
- *(tptr+1),
- len);
-
- if (!TTEST2(*tptr, len))
- goto trunc;