inet: remove tcp_debug from netinet/tcp_debug.h

It was a hack only needed for trpt, which can just define it locally.

This makes it possible to fix up systat which also includes the file.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-11-01 21:28:54 +00:00
parent 8f3d786cb3
commit 8e27968786
2 changed files with 3 additions and 6 deletions

View File

@ -73,10 +73,4 @@ static const char *tanames[] =
#define TCP_NDEBUG 100
#ifndef _KERNEL
/* XXX common variables for broken applications. */
struct tcp_debug tcp_debug[TCP_NDEBUG];
int tcp_debx;
#endif
#endif /* !_NETINET_TCP_DEBUG_H_ */

View File

@ -85,6 +85,9 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <unistd.h>
static struct tcp_debug tcp_debug[TCP_NDEBUG];
static int tcp_debx;
static struct nlist nl[3];
#define N_TCP_DEBUG 0
#define N_TCP_DEBX 1