mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
tcp: improve initializing the fields in tcp_log_buffer
Initialize the fields in the tcp_log_buffer in the sequence they
appear in the structure and add the initialization of tlb_flex1,
tlb_flex2, and _pad[].
Reviewed by: rrs, Peter Lei
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D49652
(cherry picked from commit 94acddd2ad)
This commit is contained in:
parent
47c7dcfe2b
commit
b95d16f39d
1 changed files with 8 additions and 3 deletions
|
|
@ -1857,16 +1857,21 @@ retry:
|
|||
COPY_STAT_T(rttvar);
|
||||
COPY_STAT(rcv_up);
|
||||
COPY_STAT(rcv_adv);
|
||||
COPY_STAT_T(flags2);
|
||||
COPY_STAT(rcv_nxt);
|
||||
COPY_STAT(rcv_wnd);
|
||||
COPY_STAT_T(dupacks);
|
||||
COPY_STAT_T(segqlen);
|
||||
COPY_STAT(snd_numholes);
|
||||
COPY_STAT(snd_scale);
|
||||
COPY_STAT(rcv_scale);
|
||||
COPY_STAT_T(flags2);
|
||||
log_buf->tlb_flex1 = 0;
|
||||
log_buf->tlb_flex2 = 0;
|
||||
COPY_STAT_T(fbyte_in);
|
||||
COPY_STAT_T(fbyte_out);
|
||||
COPY_STAT(snd_scale);
|
||||
COPY_STAT(rcv_scale);
|
||||
log_buf->_pad[0] = 0;
|
||||
log_buf->_pad[1] = 0;
|
||||
log_buf->_pad[2] = 0;
|
||||
#undef COPY_STAT
|
||||
#undef COPY_STAT_T
|
||||
/* Copy stack-specific info. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue