summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Scheffenegger <rscheff@FreeBSD.org>2020-10-09 10:55:19 +0000
committerRichard Scheffenegger <rscheff@FreeBSD.org>2020-10-09 10:55:19 +0000
commit5432120028ea76c9647c12733baeebb5f18e4634 (patch)
treef27bbbedbadb2762e608c19a09999b58c6e152a2
parent0e5e35e32239e0aa67726b6ff6fcaa86a79aff56 (diff)
Notes
-rw-r--r--sys/netinet/tcp_subr.c7
-rw-r--r--sys/netinet/tcp_var.h8
2 files changed, 14 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index a99898b8081ed..7bb6bc3db1095 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -3437,6 +3437,13 @@ tcp_inptoxtp(const struct inpcb *inp, struct xtcpcb *xt)
xt->t_sndzerowin = tp->t_sndzerowin;
xt->t_sndrexmitpack = tp->t_sndrexmitpack;
xt->t_rcvoopack = tp->t_rcvoopack;
+ xt->t_rcv_wnd = tp->rcv_wnd;
+ xt->t_snd_wnd = tp->snd_wnd;
+ xt->t_snd_cwnd = tp->snd_cwnd;
+ xt->t_snd_ssthresh = tp->snd_ssthresh;
+ xt->t_maxseg = tp->t_maxseg;
+ xt->xt_ecn = (tp->t_flags2 & TF2_ECN_PERMIT) ? 1 : 0 +
+ (tp->t_flags2 & TF2_ACE_PERMIT) ? 2 : 0;
now = getsbinuptime();
#define COPYTIMER(ttt) do { \
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index bc9e8e323dcbd..9b1d0295b8607 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -768,7 +768,13 @@ struct xtcpcb {
int32_t tt_2msl; /* (s) */
int32_t tt_delack; /* (s) */
int32_t t_logstate; /* (3) */
- int32_t spare32[32];
+ uint32_t t_snd_cwnd; /* (s) */
+ uint32_t t_snd_ssthresh; /* (s) */
+ uint32_t t_maxseg; /* (s) */
+ uint32_t t_rcv_wnd; /* (s) */
+ uint32_t t_snd_wnd; /* (s) */
+ uint32_t xt_ecn; /* (s) */
+ int32_t spare32[26];
} __aligned(8);
#ifdef _KERNEL