diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-04 14:53:06 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-04 14:53:06 +0000 |
commit | 7c7fd4de931ab2ca213df1d146cdfdf565388d56 (patch) | |
tree | d23b58d710c454c1e73ab4692b8b0886fef369f3 /c | |
parent | Patch from John S Gwynne <jsg@donet.com> for malloctest. His comments: (diff) | |
download | rtems-7c7fd4de931ab2ca213df1d146cdfdf565388d56.tar.bz2 |
Modified to include comments on how to get TCPDEBUG turned on and
printing messages.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/exec/libnetworking/netinet/tcp_debug.c | 2 | ||||
-rw-r--r-- | c/src/exec/libnetworking/opt_tcpdebug.h | 10 | ||||
-rw-r--r-- | c/src/lib/libnetworking/netinet/tcp_debug.c | 2 | ||||
-rw-r--r-- | c/src/lib/libnetworking/opt_tcpdebug.h | 10 | ||||
-rw-r--r-- | c/src/libnetworking/netinet/tcp_debug.c | 2 | ||||
-rw-r--r-- | c/src/libnetworking/opt_tcpdebug.h | 10 |
6 files changed, 33 insertions, 3 deletions
diff --git a/c/src/exec/libnetworking/netinet/tcp_debug.c b/c/src/exec/libnetworking/netinet/tcp_debug.c index 864a01cb1a..2f88ae658e 100644 --- a/c/src/exec/libnetworking/netinet/tcp_debug.c +++ b/c/src/exec/libnetworking/netinet/tcp_debug.c @@ -70,7 +70,7 @@ #include <netinet/tcp_debug.h> #ifdef TCPDEBUG -static int tcpconsdebug = 0; +static int tcpconsdebug = 0; /* set to 1 to enable prints */ #endif static struct tcp_debug tcp_debug[TCP_NDEBUG]; diff --git a/c/src/exec/libnetworking/opt_tcpdebug.h b/c/src/exec/libnetworking/opt_tcpdebug.h index 5a6ee0337b..4c10d1bac2 100644 --- a/c/src/exec/libnetworking/opt_tcpdebug.h +++ b/c/src/exec/libnetworking/opt_tcpdebug.h @@ -4,3 +4,13 @@ /* intentionally empty file */ +/* + * Uncomment the following line to turn on debug code. When you define + * this symbol, tcp_trace() is called. If you want tcp_trace() to + * print, then you need to edit netinet/tcp_debug to set the variable + * "tcpconsdebug" to 1. + */ + +/* +#define TCPDEBUG +*/ diff --git a/c/src/lib/libnetworking/netinet/tcp_debug.c b/c/src/lib/libnetworking/netinet/tcp_debug.c index 864a01cb1a..2f88ae658e 100644 --- a/c/src/lib/libnetworking/netinet/tcp_debug.c +++ b/c/src/lib/libnetworking/netinet/tcp_debug.c @@ -70,7 +70,7 @@ #include <netinet/tcp_debug.h> #ifdef TCPDEBUG -static int tcpconsdebug = 0; +static int tcpconsdebug = 0; /* set to 1 to enable prints */ #endif static struct tcp_debug tcp_debug[TCP_NDEBUG]; diff --git a/c/src/lib/libnetworking/opt_tcpdebug.h b/c/src/lib/libnetworking/opt_tcpdebug.h index 5a6ee0337b..4c10d1bac2 100644 --- a/c/src/lib/libnetworking/opt_tcpdebug.h +++ b/c/src/lib/libnetworking/opt_tcpdebug.h @@ -4,3 +4,13 @@ /* intentionally empty file */ +/* + * Uncomment the following line to turn on debug code. When you define + * this symbol, tcp_trace() is called. If you want tcp_trace() to + * print, then you need to edit netinet/tcp_debug to set the variable + * "tcpconsdebug" to 1. + */ + +/* +#define TCPDEBUG +*/ diff --git a/c/src/libnetworking/netinet/tcp_debug.c b/c/src/libnetworking/netinet/tcp_debug.c index 864a01cb1a..2f88ae658e 100644 --- a/c/src/libnetworking/netinet/tcp_debug.c +++ b/c/src/libnetworking/netinet/tcp_debug.c @@ -70,7 +70,7 @@ #include <netinet/tcp_debug.h> #ifdef TCPDEBUG -static int tcpconsdebug = 0; +static int tcpconsdebug = 0; /* set to 1 to enable prints */ #endif static struct tcp_debug tcp_debug[TCP_NDEBUG]; diff --git a/c/src/libnetworking/opt_tcpdebug.h b/c/src/libnetworking/opt_tcpdebug.h index 5a6ee0337b..4c10d1bac2 100644 --- a/c/src/libnetworking/opt_tcpdebug.h +++ b/c/src/libnetworking/opt_tcpdebug.h @@ -4,3 +4,13 @@ /* intentionally empty file */ +/* + * Uncomment the following line to turn on debug code. When you define + * this symbol, tcp_trace() is called. If you want tcp_trace() to + * print, then you need to edit netinet/tcp_debug to set the variable + * "tcpconsdebug" to 1. + */ + +/* +#define TCPDEBUG +*/ |