git: a00c3a94bf64 - main - tcp: remove remnants of 20+ year old disabled code from d912c694ee00
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Sep 2024 21:43:45 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=a00c3a94bf6436f1c412cd8fe66ef224621dab11
commit a00c3a94bf6436f1c412cd8fe66ef224621dab11
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-09-24 21:36:10 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-09-24 21:36:10 +0000
tcp: remove remnants of 20+ year old disabled code from d912c694ee00
Fixes: 90ad2dc28747a3a5036d68ccc87d2352459f5cb1
---
sys/netinet/tcp.h | 2 --
sys/netinet/tcp_output.c | 3 ---
2 files changed, 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;