Data logging functions for debugging purpose (LLDP) More...
#include "core/net.h"
#include "lldp/lldp.h"
#include "lldp/lldp_ext_dot1.h"
#include "lldp/lldp_ext_dot3.h"
#include "lldp/lldp_ext_med.h"
#include "lldp/lldp_ext_pno.h"
#include "lldp/lldp_debug.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL LLDP_TRACE_LEVEL |
Functions | |
void | lldpDumpDataUnit (LldpDataUnit *lldpdu) |
Dump LLDP data unit. More... | |
void | lldpDumpTlv (const LldpTlv *tlv) |
Dump TLV structure. More... | |
const char_t * | lldpGetParamName (uint_t value, const LldpParamName *paramList, size_t paramListLen) |
Convert a parameter to string representation. More... | |
Variables | |
const LldpParamName | lldpTlvTypeList [] |
const LldpParamName | lldpOuiList [] |
const LldpParamName | lldpDot1SubtypeList [] |
const LldpParamName | lldpDot3SubtypeList [] |
const LldpParamName | lldpMedSubtypeList [] |
const LldpParamName | lldpPnoSubtypeList [] |
Detailed Description
Data logging functions for debugging purpose (LLDP)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP 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.
- Version
- 2.4.4
Definition in file lldp_debug.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL LLDP_TRACE_LEVEL |
Definition at line 32 of file lldp_debug.c.
Function Documentation
◆ lldpDumpDataUnit()
void lldpDumpDataUnit | ( | LldpDataUnit * | lldpdu | ) |
Dump LLDP data unit.
- Parameters
-
[in] lldpdu Pointer to the LLDPDU
Definition at line 126 of file lldp_debug.c.
◆ lldpDumpTlv()
void lldpDumpTlv | ( | const LldpTlv * | tlv | ) |
Dump TLV structure.
- Parameters
-
[in] tlv Pointer to the TLV
Definition at line 153 of file lldp_debug.c.
◆ lldpGetParamName()
const char_t* lldpGetParamName | ( | uint_t | value, |
const LldpParamName * | paramList, | ||
size_t | paramListLen | ||
) |
Convert a parameter to string representation.
- Parameters
-
[in] value Parameter value [in] paramList List of acceptable parameters [in] paramListLen Number of entries in the list
- Returns
- NULL-terminated string describing the parameter
Definition at line 245 of file lldp_debug.c.
Variable Documentation
◆ lldpDot1SubtypeList
const LldpParamName lldpDot1SubtypeList[] |
Definition at line 72 of file lldp_debug.c.
◆ lldpDot3SubtypeList
const LldpParamName lldpDot3SubtypeList[] |
Definition at line 82 of file lldp_debug.c.
◆ lldpMedSubtypeList
const LldpParamName lldpMedSubtypeList[] |
Definition at line 92 of file lldp_debug.c.
◆ lldpOuiList
const LldpParamName lldpOuiList[] |
Definition at line 63 of file lldp_debug.c.
◆ lldpPnoSubtypeList
const LldpParamName lldpPnoSubtypeList[] |
Definition at line 109 of file lldp_debug.c.
◆ lldpTlvTypeList
const LldpParamName lldpTlvTypeList[] |
Definition at line 48 of file lldp_debug.c.