summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2018-06-23 06:53:53 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2018-06-23 06:53:53 +0000
commita00f4ac22fc56e7b627db40c6fef8d417ec8f74c (patch)
treebea3f6d6ade4b5a938eb8b5ede8c11a241441b0d /sys/netinet/tcp_output.c
parentbecfb1625ca1422613dd3004b6c427ea5a024cc8 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 719781272c1f..78e0db8044c0 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -72,6 +72,7 @@ __FBSDID("$FreeBSD$");
#include <netinet6/ip6_var.h>
#endif
#include <netinet/tcp.h>
+#define TCPOUTFLAGS
#include <netinet/tcp_fsm.h>
#include <netinet/tcp_log_buf.h>
#include <netinet/tcp_seq.h>
@@ -168,26 +169,6 @@ hhook_run_tcp_est_out(struct tcpcb *tp, struct tcphdr *th,
#endif
/*
- * Flags used when sending segments in tcp_output. Basic flags (TH_RST,
- * TH_ACK,TH_SYN,TH_FIN) are totally determined by state, with the proviso
- * that TH_FIN is sent only if all data queued for output is included in the
- * segment.
- */
-u_char tcp_outflags[TCP_NSTATES] = {
- TH_RST|TH_ACK, /* 0, CLOSED */
- 0, /* 1, LISTEN */
- TH_SYN, /* 2, SYN_SENT */
- TH_SYN|TH_ACK, /* 3, SYN_RECEIVED */
- TH_ACK, /* 4, ESTABLISHED */
- TH_ACK, /* 5, CLOSE_WAIT */
- TH_FIN|TH_ACK, /* 6, FIN_WAIT_1 */
- TH_FIN|TH_ACK, /* 7, CLOSING */
- TH_FIN|TH_ACK, /* 8, LAST_ACK */
- TH_ACK, /* 9, FIN_WAIT_2 */
- TH_ACK, /* 10, TIME_WAIT */
-};
-
-/*
* CC wrapper hook functions
*/
static void inline