Sergey Pastor / 1

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

ppp_debug.c File Reference

ppp_debug.c File Reference

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

Go to the source code of this file.

Functions

error_t pppDumpPacket (const PppPacket *packet, size_t length, PppProtocol protocol)
 Dump LCP/NCP packet for debugging purpose.
error_t lcpDumpPacket (const PppPacket *packet, size_t length)
 Dump LCP packet for debugging purpose.
error_t ncpDumpPacket (const PppPacket *packet, size_t length, PppProtocol protocol)
 Dump NCP packet for debugging purpose.
error_t papDumpPacket (const PppPacket *packet, size_t length)
 Dump PAP packet for debugging purpose.
error_t chapDumpPacket (const PppPacket *packet, size_t length)
 Dump CHAP packet for debugging purpose.
error_t lcpDumpOptions (const PppOption *option, size_t length)
 Dump LCP options for debugging purpose.
error_t ipcpDumpOptions (const PppOption *option, size_t length)
 Dump IPCP options for debugging purpose.
error_t ipv6cpDumpOptions (const PppOption *option, size_t length)
 Dump IPV6CP options for debugging purpose.

Detailed Description

Data logging functions for debugging purpose (PPP)

License

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

Definition in file ppp_debug.c.


Function Documentation

error_t chapDumpPacket ( const PppPacket *  packet,
size_t  length 
)

Dump CHAP packet for debugging purpose.

Parameters:
[in]packetPointer to the PAP packet
[in]lengthLength of the packet, in bytes
Returns:
Error code

Definition at line 591 of file ppp_debug.c.

error_t ipcpDumpOptions ( const PppOption *  option,
size_t  length 
)

Dump IPCP options for debugging purpose.

Parameters:
[in]optionPointer to the option list
[in]lengthLength of the option list, in bytes
Returns:
Error code

Definition at line 773 of file ppp_debug.c.

error_t ipv6cpDumpOptions ( const PppOption *  option,
size_t  length 
)

Dump IPV6CP options for debugging purpose.

Parameters:
[in]optionPointer to the option list
[in]lengthLength of the option list, in bytes
Returns:
Error code

Definition at line 844 of file ppp_debug.c.

error_t lcpDumpOptions ( const PppOption *  option,
size_t  length 
)

Dump LCP options for debugging purpose.

Parameters:
[in]optionPointer to the option list
[in]lengthLength of the option list, in bytes
Returns:
Error code

Definition at line 700 of file ppp_debug.c.

error_t lcpDumpPacket ( const PppPacket *  packet,
size_t  length 
)

Dump LCP packet for debugging purpose.

Parameters:
[in]packetPointer to the LCP packet
[in]lengthLength of the packet, in bytes
Returns:
Error code

Definition at line 183 of file ppp_debug.c.

error_t ncpDumpPacket ( const PppPacket *  packet,
size_t  length,
PppProtocol  protocol 
)

Dump NCP packet for debugging purpose.

Parameters:
[in]packetPointer to the NCP packet
[in]lengthLength of the packet, in bytes
[in]protocolProtocol field
Returns:
Error code

Definition at line 341 of file ppp_debug.c.

error_t papDumpPacket ( const PppPacket *  packet,
size_t  length 
)

Dump PAP packet for debugging purpose.

Parameters:
[in]packetPointer to the PAP packet
[in]lengthLength of the packet, in bytes
Returns:
Error code

Definition at line 471 of file ppp_debug.c.

error_t pppDumpPacket ( const PppPacket *  packet,
size_t  length,
PppProtocol  protocol 
)

Dump LCP/NCP packet for debugging purpose.

Parameters:
[in]packetPointer to the LCP packet
[in]lengthLength of the packet, in bytes
[in]protocolProtocol field
Returns:
Error code

Definition at line 141 of file ppp_debug.c.