Fixed two bugs in previous commit: be sure to include tcp_debug.h when

TCPDEBUG is defined, and fix typo in TCPDEBUG2() macro.
This commit is contained in:
David Greenman 1996-07-12 17:28:47 +00:00
parent 32bd8943f8
commit af7a299930
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17138
2 changed files with 6 additions and 3 deletions

View File

@ -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 <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
#include <netinet/tcpip.h>
#ifdef TCPDEBUG
#include <netinet/tcp_debug.h>
#endif
int tcp_keepidle = TCPTV_KEEP_IDLE;
SYSCTL_INT(_net_inet_tcp, TCPCTL_KEEPIDLE, keepidle,

View File

@ -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 <sys/param.h>
@ -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