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 | |
TCPSOCKET * | tcpSocketList |
UDPSOCKET * | udpSocketList |
FILE * | __tcp_trs |
TCP trace output stream. | |
uint_fast8_t | __tcp_trf |
TCP trace flags. |
void NutDumpTcpHeader | ( | FILE * | stream, | |
char * | ds, | |||
TCPSOCKET * | sock, | |||
NETBUF * | nb | |||
) |
Definition at line 105 of file netdebug.c.
References fprintf(), fprintf_P, fputs(), ntohl, prog_char, TCPHDR::th_ack, TH_ACK, TH_FIN, TCPHDR::th_flags, TH_PUSH, TH_RST, TCPHDR::th_seq, TH_SYN, and TH_URG.
Referenced by NutTcpOutput(), NutTcpReject(), NutTcpSm(), and NutTcpStateRetranTimeout().
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().
void NutDumpSocketList | ( | FILE * | stream | ) |
Definition at line 173 of file netdebug.c.
References fprintf(), fprintf_P, fputs(), inet_ntoa(), ntohs, NutDumpSockState(), prog_char, tcpSocketList, and udpSocketList.
Control TCP tracing.
stream | Pointer to a previously opened stream or null to leave it unchanged. | |
flags | Flags to enable specific traces. |
Definition at line 202 of file netdebug.c.
References __tcp_trf, and __tcp_trs.
Referenced by main().
TCP trace output stream.
Definition at line 102 of file netdebug.c.
Referenced by NutArpCacheQuery(), NutArpCacheUpdate(), NutDhcpClient(), NutDhcpIfConfig(), NutTcpOutput(), NutTcpReject(), NutTcpSm(), NutTcpStateRetranTimeout(), and NutTraceTcp().
TCP trace flags.
Definition at line 103 of file netdebug.c.
Referenced by NutArpCacheQuery(), NutArpCacheUpdate(), NutDhcpClient(), NutDhcpIfConfig(), NutTcpOutput(), NutTcpReject(), NutTcpSm(), NutTcpStateRetranTimeout(), and NutTraceTcp().