aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2024-09-24 21:36:10 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2024-09-24 21:36:10 +0000
commita00c3a94bf6436f1c412cd8fe66ef224621dab11 (patch)
treefd123d975ad01af8971cb189bc5bc55341f16590
parente3b12ef6f74e72e8250bcf55e5bcdfc029857913 (diff)
downloadsrc-a00c3a94bf64.tar.gz
src-a00c3a94bf64.zip
tcp: remove remnants of 20+ year old disabled code from d912c694ee00
Fixes: 90ad2dc28747a3a5036d68ccc87d2352459f5cb1
-rw-r--r--sys/netinet/tcp.h2
-rw-r--r--sys/netinet/tcp_output.c3
2 files changed, 0 insertions, 5 deletions
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h
index f789898e5785..794bfc62eca5 100644
--- a/sys/netinet/tcp.h
+++ b/sys/netinet/tcp.h
@@ -166,8 +166,6 @@ __tcp_set_flags(struct tcphdr *th, uint16_t flags)
#define TCP_MAX_WINSHIFT 14 /* maximum window shift */
-#define TCP_MAXBURST 4 /* maximum segments in a burst */
-
#define TCP_MAXHLEN (0xf<<2) /* max length of header in bytes */
#define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
/* max space left for options */
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 080dabf3232f..fe1f15c26338 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -211,9 +211,6 @@ tcp_default_output(struct tcpcb *tp)
struct tcp_log_buffer *lgb;
unsigned int wanted_cookie = 0;
unsigned int dont_sendalot = 0;
-#if 0
- int maxburst = TCP_MAXBURST;
-#endif
#ifdef INET6
struct ip6_hdr *ip6 = NULL;
const bool isipv6 = (inp->inp_vflag & INP_IPV6) != 0;