Nut/OS  4.10.3
API Reference
netdebug.c File Reference
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/icmp.h>
#include <netinet/ip_icmp.h>
#include <netinet/ipcsum.h>
#include <net/netdebug.h>
#include <sys/socket.h>
Include dependency graph for netdebug.c:

Go to the source code of this file.

Functions

void NutDumpTcpHeader (FILE *stream, char *ds, TCPSOCKET *sock, NETBUF *nb)
void NutDumpSockState (FILE *stream, uint8_t state, char *lead, char *trail)
void NutDumpSocketList (FILE *stream)
void NutTraceTcp (FILE *stream, uint8_t flags)
 Control TCP tracing.

Variables

TCPSOCKETtcpSocketList
UDPSOCKETudpSocketList
FILE__tcp_trs
 TCP trace output stream.
uint_fast8_t __tcp_trf
 TCP trace flags.

Function Documentation

void NutDumpTcpHeader ( FILE stream,
char *  ds,
TCPSOCKET sock,
NETBUF nb 
)
void NutDumpSockState ( FILE stream,
uint8_t  state,
char *  lead,
char *  trail 
)

Definition at line 126 of file netdebug.c.

References fputs(), TCPS_CLOSE_WAIT, TCPS_CLOSED, TCPS_CLOSING, TCPS_ESTABLISHED, TCPS_FIN_WAIT_1, TCPS_FIN_WAIT_2, TCPS_LAST_ACK, TCPS_LISTEN, TCPS_SYN_RECEIVED, TCPS_SYN_SENT, and TCPS_TIME_WAIT.

Referenced by NutDumpSocketList().

Here is the call graph for this function:

void NutTraceTcp ( FILE stream,
uint8_t  flags 
)

Control TCP tracing.

Parameters:
streamPointer to a previously opened stream or null to leave it unchanged.
flagsFlags to enable specific traces.

Definition at line 202 of file netdebug.c.

References __tcp_trf, and __tcp_trs.

Referenced by main().


Variable Documentation