Skip to content

Commit

Permalink
Don't include two header files when not needed.
Browse files Browse the repository at this point in the history
This allows the part of the rewrite of TCP reassembly in this
files to be MFCed to stable/11 with manual change.

MFC after:		3 days
Sponsored by:		Netflix, Inc.
  • Loading branch information
tuexen committed Jan 25, 2019
1 parent a5486cb commit 98afe6e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sys/netinet/tcp_reass.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ __FBSDID("$FreeBSD$");
#include "opt_inet6.h"
#include "opt_tcpdebug.h"

/* For debugging we want counters and BB logging */
/* #define TCP_REASS_COUNTERS 1 */
/* #define TCP_REASS_LOGGING 1 */

#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/eventhandler.h>
Expand Down Expand Up @@ -72,8 +76,10 @@ __FBSDID("$FreeBSD$");
#include <netinet/tcp_seq.h>
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
#ifdef TCP_REASS_LOGGING
#include <netinet/tcp_log_buf.h>
#include <netinet/tcp_hpts.h>
#endif
#include <netinet6/tcp6_var.h>
#include <netinet/tcpip.h>
#ifdef TCPDEBUG
Expand All @@ -92,10 +98,6 @@ __FBSDID("$FreeBSD$");
#define TCP_R_LOG_DUMP 10
#define TCP_R_LOG_TRIM 11

/* For debugging we want counters and BB logging */
/* #define TCP_REASS_COUNTERS 1 */
/* #define TCP_REASS_LOGGING 1 */

static SYSCTL_NODE(_net_inet_tcp, OID_AUTO, reass, CTLFLAG_RW, 0,
"TCP Segment Reassembly Queue");

Expand Down

0 comments on commit 98afe6e

Please sign in to comment.