summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-09-15 10:36:56 +0000
committerdg <dg@FreeBSD.org>1994-09-15 10:36:56 +0000
commit309f1c3e76c2387d9c0b40d97bc3c6e31557667d (patch)
treed47f6ab43cb414b48eac3683ce89037221a981eb /sys/netinet/tcp_output.c
parenta3e0f2ece44d911e2820a240798d72b627fd4450 (diff)
downloadFreeBSD-src-309f1c3e76c2387d9c0b40d97bc3c6e31557667d.zip
FreeBSD-src-309f1c3e76c2387d9c0b40d97bc3c6e31557667d.tar.gz
Made TCPDEBUG truely optional. Based on changes I made in FreeBSD 1.1.5.
Fixed somebody's idea of a joke - about the first half of the lines in in_proto.c were spaced over by one space.
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 92ad379..797a496 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_output.c 8.3 (Berkeley) 12/30/93
- * $Id$
+ * $Id: tcp_output.c,v 1.2 1994/08/02 07:49:03 davidg Exp $
*/
#include <sys/param.h>
@@ -57,7 +57,9 @@
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
#include <netinet/tcpip.h>
+#ifdef TCPDEBUG
#include <netinet/tcp_debug.h>
+#endif
#ifdef notyet
extern struct mbuf *m_copypack();
@@ -521,11 +523,13 @@ send:
if (SEQ_GT(tp->snd_nxt + len, tp->snd_max))
tp->snd_max = tp->snd_nxt + len;
+#ifdef TCPDEBUG
/*
* Trace.
*/
if (so->so_options & SO_DEBUG)
tcp_trace(TA_OUTPUT, tp->t_state, tp, ti, 0);
+#endif
/*
* Fill in IP length and desired time to live and
OpenPOWER on IntegriCloud