From 7c7fd4de931ab2ca213df1d146cdfdf565388d56 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 4 Feb 1999 14:53:06 +0000 Subject: Modified to include comments on how to get TCPDEBUG turned on and printing messages. --- c/src/exec/libnetworking/netinet/tcp_debug.c | 2 +- c/src/exec/libnetworking/opt_tcpdebug.h | 10 ++++++++++ c/src/lib/libnetworking/netinet/tcp_debug.c | 2 +- c/src/lib/libnetworking/opt_tcpdebug.h | 10 ++++++++++ c/src/libnetworking/netinet/tcp_debug.c | 2 +- c/src/libnetworking/opt_tcpdebug.h | 10 ++++++++++ cpukit/libnetworking/netinet/tcp_debug.c | 2 +- cpukit/libnetworking/opt_tcpdebug.h | 10 ++++++++++ 8 files changed, 44 insertions(+), 4 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 #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 #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 #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 +*/ diff --git a/cpukit/libnetworking/netinet/tcp_debug.c b/cpukit/libnetworking/netinet/tcp_debug.c index 864a01cb1a..2f88ae658e 100644 --- a/cpukit/libnetworking/netinet/tcp_debug.c +++ b/cpukit/libnetworking/netinet/tcp_debug.c @@ -70,7 +70,7 @@ #include #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/cpukit/libnetworking/opt_tcpdebug.h b/cpukit/libnetworking/opt_tcpdebug.h index 5a6ee0337b..4c10d1bac2 100644 --- a/cpukit/libnetworking/opt_tcpdebug.h +++ b/cpukit/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 +*/ -- cgit v1.2.3