diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2021-12-19 16:22:12 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2021-12-19 16:22:12 +0000 |
commit | cb3772639fd0eb74961ff94248d448f5c7f035a9 (patch) | |
tree | 1371e3280f12cb80747da748cf9f5494bbe04da5 | |
parent | 8c22023ca5e18d5e4b01b66cf5fae770f12253ad (diff) | |
download | src-cb3772639fd0eb74961ff94248d448f5c7f035a9.tar.gz src-cb3772639fd0eb74961ff94248d448f5c7f035a9.zip |
tcptw: remove unused fields
The structure goes away anyway, but it would be interesting to know
how much memory we used to save with it. So for the record, structure
size with this revision is 64 bytes.
-rw-r--r-- | sys/netinet/tcp_timewait.c | 3 | ||||
-rw-r--r-- | sys/netinet/tcp_var.h | 5 |
2 files changed, 0 insertions, 8 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index b0ab3e02c61f..f0ab77100336 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -324,9 +324,6 @@ tcp_twstart(struct tcpcb *tp) tw->snd_nxt = tp->snd_nxt; tw->t_port = tp->t_port; tw->rcv_nxt = tp->rcv_nxt; - tw->iss = tp->iss; - tw->irs = tp->irs; - tw->t_starttime = tp->t_starttime; tw->tw_time = 0; /* XXX diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index 57d7352b8f11..6b121a7fd311 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -528,18 +528,13 @@ struct tcptw { t_unused:16; tcp_seq snd_nxt; tcp_seq rcv_nxt; - tcp_seq iss; - tcp_seq irs; u_short last_win; /* cached window value */ short tw_so_options; /* copy of so_options */ struct ucred *tw_cred; /* user credentials */ u_int32_t t_recent; u_int32_t ts_offset; /* our timestamp offset */ - u_int t_starttime; int tw_time; TAILQ_ENTRY(tcptw) tw_2msl; - void *tw_pspare; /* TCP_SIGNATURE */ - u_int *tw_spare; /* TCP_SIGNATURE */ }; #define intotcpcb(ip) ((struct tcpcb *)(ip)->inp_ppcb) |