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.
This commit is contained in:
parent
8c22023ca5
commit
cb3772639f
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user