From 6657f01bfd009bbf4ec0481a17712259abf8ea77 Mon Sep 17 00:00:00 2001 From: dg Date: Fri, 12 Jul 1996 17:28:47 +0000 Subject: Fixed two bugs in previous commit: be sure to include tcp_debug.h when TCPDEBUG is defined, and fix typo in TCPDEBUG2() macro. --- sys/netinet/tcp_timer.c | 5 ++++- sys/netinet/tcp_usrreq.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index a1c3d13..73396b3 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_timer.c 8.2 (Berkeley) 5/24/95 - * $Id: tcp_timer.c,v 1.17 1996/06/03 15:37:52 jdp Exp $ + * $Id: tcp_timer.c,v 1.18 1996/07/11 16:32:35 wollman Exp $ */ #ifndef TUBA_INCLUDE @@ -63,6 +63,9 @@ #include #include #include +#ifdef TCPDEBUG +#include +#endif int tcp_keepidle = TCPTV_KEEP_IDLE; SYSCTL_INT(_net_inet_tcp, TCPCTL_KEEPIDLE, keepidle, diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index c7c62b2..9fb4d48 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94 - * $Id: tcp_usrreq.c,v 1.22 1996/03/11 15:13:37 davidg Exp $ + * $Id: tcp_usrreq.c,v 1.23 1996/07/11 16:32:38 wollman Exp $ */ #include @@ -398,7 +398,7 @@ tcp_usrreq(so, req, m, nam, control) #ifdef TCPDEBUG #define TCPDEBUG0 int ostate #define TCPDEBUG1() ostate = tp ? tp->t_state : 0 -#define TCPDEBUG2(req) if (tp && (so->so_options & SO_DEBUG)) && \ +#define TCPDEBUG2(req) if (tp && (so->so_options & SO_DEBUG)) \ tcp_trace(TA_USER, ostate, tp, 0, req) #else #define TCPDEBUG0 -- cgit v1.1