eap_debug.c File Reference

Data logging functions for debugging purpose (EAP) More...

#include "eap/eap.h"
#include "eap/eap_debug.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   EAP_TRACE_LEVEL
 

Functions

void eapolDumpHeader (const EapolPdu *header)
 Dump EAPOL header for debugging purpose. More...
 
void eapDumpHeader (const EapPacket *header)
 Dump EAP header for debugging purpose. More...
 
void eapDumpTlsFlags (uint8_t flags)
 Dump EAP-TLS flags. More...
 
const char_teapGetParamName (uint_t value, const EapParamName *paramList, size_t paramListLen)
 Convert a parameter to string representation. More...
 

Detailed Description

Data logging functions for debugging purpose (EAP)

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2022-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneEAP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file eap_debug.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   EAP_TRACE_LEVEL

Definition at line 32 of file eap_debug.c.

Function Documentation

◆ eapDumpHeader()

void eapDumpHeader ( const EapPacket header)

Dump EAP header for debugging purpose.

Parameters
[in]headerPointer to the EAP header

Definition at line 105 of file eap_debug.c.

◆ eapDumpTlsFlags()

void eapDumpTlsFlags ( uint8_t  flags)

Dump EAP-TLS flags.

Parameters
[in]flagsEAP-TLS specific options

Definition at line 146 of file eap_debug.c.

◆ eapGetParamName()

const char_t* eapGetParamName ( uint_t  value,
const EapParamName paramList,
size_t  paramListLen 
)

Convert a parameter to string representation.

Parameters
[in]valueParameter value
[in]paramListList of acceptable parameters
[in]paramListLenNumber of entries in the list
Returns
NULL-terminated string describing the parameter

Definition at line 219 of file eap_debug.c.

◆ eapolDumpHeader()

void eapolDumpHeader ( const EapolPdu header)

Dump EAPOL header for debugging purpose.

Parameters
[in]headerPointer to the EAPOL header

Definition at line 85 of file eap_debug.c.