Data logging functions for debugging purpose (DHCP) More...
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL DHCP_TRACE_LEVEL |
Functions | |
error_t | dhcpDumpMessage (const DhcpMessage *message, size_t length) |
Dump DHCP message for debugging purpose. More... | |
error_t | dhcpDumpMessageType (const DhcpOption *option) |
Dump Message Type option. More... | |
error_t | dhcpDumpParamRequestList (const DhcpOption *option) |
Dump Parameter Request List option. More... | |
error_t | dhcpDumpBoolean (const DhcpOption *option) |
Dump an option containing a boolean. More... | |
error_t | dhcpDumpInt8 (const DhcpOption *option) |
Dump an option containing a 8-bit integer. More... | |
error_t | dhcpDumpInt16 (const DhcpOption *option) |
Dump an option containing a 16-bit integer. More... | |
error_t | dhcpDumpInt32 (const DhcpOption *option) |
Dump an option containing a 32-bit integer. More... | |
error_t | dhcpDumpString (const DhcpOption *option) |
Dump an option containing a string. More... | |
error_t | dhcpDumpIpv4Addr (const DhcpOption *option) |
Dump an option containing an IPv4 address. More... | |
error_t | dhcpDumpIpv4AddrList (const DhcpOption *option) |
Dump an option containing a list of IPv4 addresses. More... | |
error_t | dhcpDumpRawData (const DhcpOption *option) |
Dump an option containing raw data. More... | |
Detailed Description
Data logging functions for debugging purpose (DHCP)
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 dhcp_debug.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL DHCP_TRACE_LEVEL |
Definition at line 32 of file dhcp_debug.c.
Function Documentation
◆ dhcpDumpBoolean()
error_t dhcpDumpBoolean | ( | const DhcpOption * | option | ) |
Dump an option containing a boolean.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 424 of file dhcp_debug.c.
◆ dhcpDumpInt16()
error_t dhcpDumpInt16 | ( | const DhcpOption * | option | ) |
Dump an option containing a 16-bit integer.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 464 of file dhcp_debug.c.
◆ dhcpDumpInt32()
error_t dhcpDumpInt32 | ( | const DhcpOption * | option | ) |
Dump an option containing a 32-bit integer.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 488 of file dhcp_debug.c.
◆ dhcpDumpInt8()
error_t dhcpDumpInt8 | ( | const DhcpOption * | option | ) |
Dump an option containing a 8-bit integer.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 444 of file dhcp_debug.c.
◆ dhcpDumpIpv4Addr()
error_t dhcpDumpIpv4Addr | ( | const DhcpOption * | option | ) |
Dump an option containing an IPv4 address.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 539 of file dhcp_debug.c.
◆ dhcpDumpIpv4AddrList()
error_t dhcpDumpIpv4AddrList | ( | const DhcpOption * | option | ) |
Dump an option containing a list of IPv4 addresses.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 563 of file dhcp_debug.c.
◆ dhcpDumpMessage()
error_t dhcpDumpMessage | ( | const DhcpMessage * | message, |
size_t | length | ||
) |
Dump DHCP message for debugging purpose.
- Parameters
-
[in] message Pointer to the DHCP message to dump [in] length Length of the message
- Returns
- Error code
Definition at line 158 of file dhcp_debug.c.
◆ dhcpDumpMessageType()
error_t dhcpDumpMessageType | ( | const DhcpOption * | option | ) |
Dump Message Type option.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 369 of file dhcp_debug.c.
◆ dhcpDumpParamRequestList()
error_t dhcpDumpParamRequestList | ( | const DhcpOption * | option | ) |
Dump Parameter Request List option.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 396 of file dhcp_debug.c.
◆ dhcpDumpRawData()
error_t dhcpDumpRawData | ( | const DhcpOption * | option | ) |
Dump an option containing raw data.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 592 of file dhcp_debug.c.
◆ dhcpDumpString()
error_t dhcpDumpString | ( | const DhcpOption * | option | ) |
Dump an option containing a string.
- Parameters
-
[in] option Pointer to the option to dump
- Returns
- Error code
Definition at line 512 of file dhcp_debug.c.