Data logging functions for debugging purpose (RADIUS) More...
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL RADIUS_TRACE_LEVEL |
Functions | |
void | radiusDumpPacket (const RadiusPacket *packet, size_t length) |
Dump RADIUS packet for debugging purpose. More... | |
void | radiusDumpAttribute (const RadiusAttribute *attribute) |
Dump RADIUS attribute. More... | |
void | radiusDumpInt32 (const uint8_t *data, size_t length) |
Dump an attribute containing a 32-bit integer. More... | |
void | radiusDumpString (const uint8_t *data, size_t length) |
Dump an attribute containing a string. More... | |
void | radiusDumpIpv4Addr (const uint8_t *data, size_t length) |
Dump an attribute containing an IPv4 address. More... | |
void | radiusDumpIpv6Addr (const uint8_t *data, size_t length) |
Dump an attribute containing an IPv6 address. More... | |
void | radiusDumpRawData (const uint8_t *data, size_t length) |
Dump an attribute containing raw data. More... | |
const char_t * | radiusGetParamName (uint_t value, const RadiusParamName *paramList, size_t paramListLen) |
Convert a parameter to string representation. More... | |
Detailed Description
Data logging functions for debugging purpose (RADIUS)
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.
- Version
- 2.4.4
Definition in file radius_debug.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL RADIUS_TRACE_LEVEL |
Definition at line 32 of file radius_debug.c.
Function Documentation
◆ radiusDumpAttribute()
void radiusDumpAttribute | ( | const RadiusAttribute * | attribute | ) |
Dump RADIUS attribute.
- Parameters
-
[in] attribute Pointer to the RADIUS attribute
Definition at line 307 of file radius_debug.c.
◆ radiusDumpInt32()
void radiusDumpInt32 | ( | const uint8_t * | data, |
size_t | length | ||
) |
Dump an attribute containing a 32-bit integer.
- Parameters
-
[in] data Attribute value [in] length Attribute length
Definition at line 455 of file radius_debug.c.
◆ radiusDumpIpv4Addr()
void radiusDumpIpv4Addr | ( | const uint8_t * | data, |
size_t | length | ||
) |
Dump an attribute containing an IPv4 address.
- Parameters
-
[in] data Attribute value [in] length Attribute length
Definition at line 500 of file radius_debug.c.
◆ radiusDumpIpv6Addr()
void radiusDumpIpv6Addr | ( | const uint8_t * | data, |
size_t | length | ||
) |
Dump an attribute containing an IPv6 address.
- Parameters
-
[in] data Attribute value [in] length Attribute length
Definition at line 523 of file radius_debug.c.
◆ radiusDumpPacket()
void radiusDumpPacket | ( | const RadiusPacket * | packet, |
size_t | length | ||
) |
Dump RADIUS packet for debugging purpose.
- Parameters
-
[in] packet Pointer to the RADIUS packet [in] length Length of the RADIUS packet, in bytes
Definition at line 259 of file radius_debug.c.
◆ radiusDumpRawData()
void radiusDumpRawData | ( | const uint8_t * | data, |
size_t | length | ||
) |
Dump an attribute containing raw data.
- Parameters
-
[in] data Attribute value [in] length Attribute length
Definition at line 546 of file radius_debug.c.
◆ radiusDumpString()
void radiusDumpString | ( | const uint8_t * | data, |
size_t | length | ||
) |
Dump an attribute containing a string.
- Parameters
-
[in] data Attribute value [in] length Attribute length
Definition at line 476 of file radius_debug.c.
◆ radiusGetParamName()
const char_t* radiusGetParamName | ( | uint_t | value, |
const RadiusParamName * | 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 568 of file radius_debug.c.