Go to the documentation of this file.
32 #define TRACE_LEVEL EAP_TRACE_LEVEL
40 #if (EAP_SUPPORT == ENABLED)
42 #if(EAP_TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
87 const char_t *packetTypeName;
90 packetTypeName =
eapGetParamName(header->packetType, eapolPacketTypeList,
94 TRACE_DEBUG(
" Protocol Version = %" PRIu8
"\r\n", header->protocolVersion);
95 TRACE_DEBUG(
" Packet Type = %" PRIu8
" (%s)\r\n", header->packetType, packetTypeName);
96 TRACE_DEBUG(
" Packet Body Length = %" PRIu16
"\r\n",
ntohs(header->packetBodyLen));
108 const char_t *methodTypeName;
115 TRACE_DEBUG(
" Code = %" PRIu8
" (%s)\r\n", header->code, codeName);
116 TRACE_DEBUG(
" Identifier = %" PRIu8
"\r\n", header->identifier);
128 TRACE_DEBUG(
" Method Type = %" PRIu8
" (%s)\r\n", header->data[0],
163 if(
l != 0 ||
m != 0 ||
s != 0)
190 if(
l != 0 ||
m != 0 ||
s != 0)
225 static const char_t defaultName[] =
"Unknown";
228 for(i = 0; i < paramListLen; i++)
231 return paramList[i].
name;
@ EAP_METHOD_TYPE_TLS
EAP-TLS.
@ EAP_TLS_FLAGS_L
Length included.
void eapDumpHeader(const EapPacket *header)
Dump EAP header for debugging purpose.
@ EAP_METHOD_TYPE_OTP
One-Time Password (OTP)
@ EAP_CODE_RESPONSE
Response.
const char_t * eapGetParamName(uint_t value, const EapParamName *paramList, size_t paramListLen)
Convert a parameter to string representation.
@ EAP_CODE_FAILURE
Failure.
@ EAP_METHOD_TYPE_NAK
Legacy Nak.
void eapolDumpHeader(const EapolPdu *header)
Dump EAPOL header for debugging purpose.
@ EAP_METHOD_TYPE_IDENTITY
Identity.
@ EAPOL_TYPE_EAP
EAPOL-EAP.
@ EAP_CODE_SUCCESS
Success.
@ EAPOL_TYPE_ENCAPSULATED_ASF_ALERT
EAPOL-Encapsulated-ASF-Alert.
void eapDumpTlsFlags(uint8_t flags)
Dump EAP-TLS flags.
@ EAP_METHOD_TYPE_MSCHAP_V2
EAP-MSCHAP-V2.
@ EAP_TLS_FLAGS_S
EAP-TLS start.
@ EAPOL_TYPE_KEY
EAPOL-Key.
@ EAP_CODE_REQUEST
Request.
@ EAP_METHOD_TYPE_TTLS
EAP-TTLS.
@ EAP_METHOD_TYPE_EXPANDED_NAK
Expanded NAK.
@ EAP_METHOD_TYPE_NOTIFICATION
Notification.
Data logging functions for debugging purpose (EAP)
@ EAP_METHOD_TYPE_PEAP
PEAP.
@ EAP_TLS_FLAGS_M
More fragments.
@ EAP_METHOD_TYPE_GTC
Generic Token Card (GTC)
@ EAPOL_TYPE_LOGOFF
EAPOL-Logoff.
@ EAPOL_TYPE_START
EAPOL-Start.
EAP (Extensible Authentication Protocol)
Parameter value/name binding.
@ EAP_METHOD_TYPE_MD5_CHALLENGE
MD5-Challenge.