dhcp_debug.h File Reference

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

#include "core/net.h"
#include "dhcp/dhcp_common.h"
#include "debug.h"

Go to the source code of this file.

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

Copyright (C) 2010-2018 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.

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

Definition in file dhcp_debug.h.

Function Documentation

◆ dhcpDumpBoolean()

error_t dhcpDumpBoolean ( const DhcpOption option)

Dump an option containing a boolean.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 405 of file dhcp_debug.c.

◆ dhcpDumpInt16()

error_t dhcpDumpInt16 ( const DhcpOption option)

Dump an option containing a 16-bit integer.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 445 of file dhcp_debug.c.

◆ dhcpDumpInt32()

error_t dhcpDumpInt32 ( const DhcpOption option)

Dump an option containing a 32-bit integer.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 469 of file dhcp_debug.c.

◆ dhcpDumpInt8()

error_t dhcpDumpInt8 ( const DhcpOption option)

Dump an option containing a 8-bit integer.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 425 of file dhcp_debug.c.

◆ dhcpDumpIpv4Addr()

error_t dhcpDumpIpv4Addr ( const DhcpOption option)

Dump an option containing an IPv4 address.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 516 of file dhcp_debug.c.

◆ dhcpDumpIpv4AddrList()

error_t dhcpDumpIpv4AddrList ( const DhcpOption option)

Dump an option containing a list of IPv4 addresses.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 540 of file dhcp_debug.c.

◆ dhcpDumpMessage()

error_t dhcpDumpMessage ( const DhcpMessage message,
size_t  length 
)

Dump DHCP message for debugging purpose.

Parameters
[in]messagePointer to the DHCP message to dump
[in]lengthLength of the message
Returns
Error code

Definition at line 156 of file dhcp_debug.c.

◆ dhcpDumpMessageType()

error_t dhcpDumpMessageType ( const DhcpOption option)

Dump Message Type option.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 350 of file dhcp_debug.c.

◆ dhcpDumpParamRequestList()

error_t dhcpDumpParamRequestList ( const DhcpOption option)

Dump Parameter Request List option.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 377 of file dhcp_debug.c.

◆ dhcpDumpRawData()

error_t dhcpDumpRawData ( const DhcpOption option)

Dump an option containing raw data.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 569 of file dhcp_debug.c.

◆ dhcpDumpString()

error_t dhcpDumpString ( const DhcpOption option)

Dump an option containing a string.

Parameters
[in]optionPointer to the option to dump
Returns
Error code

Definition at line 493 of file dhcp_debug.c.