mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
tcp: initialize V_ts_offset_secret for all vnets
Initialize V_ts_offset_secret for each vnet, not only for the default vnet, since it is vnet specific. Reviewed by: Peter Lei Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D46246 (cherry picked from commit 9b569353e0b073a513cf10debbe634c2ceb29fdf)
This commit is contained in:
parent
6bf5c32ad8
commit
ce42e0ed03
1 changed files with 1 additions and 1 deletions
|
|
@ -1508,6 +1508,7 @@ tcp_vnet_init(void *arg __unused)
|
|||
VNET_PCPUSTAT_ALLOC(tcpstat, M_WAITOK);
|
||||
|
||||
V_tcp_msl = TCPTV_MSL;
|
||||
arc4rand(&V_ts_offset_secret, sizeof(V_ts_offset_secret), 0);
|
||||
}
|
||||
VNET_SYSINIT(tcp_vnet_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_FOURTH,
|
||||
tcp_vnet_init, NULL);
|
||||
|
|
@ -1545,7 +1546,6 @@ tcp_init(void *arg __unused)
|
|||
/* Initialize the TCP logging data. */
|
||||
tcp_log_init();
|
||||
#endif
|
||||
arc4rand(&V_ts_offset_secret, sizeof(V_ts_offset_secret), 0);
|
||||
|
||||
if (tcp_soreceive_stream) {
|
||||
#ifdef INET
|
||||
|
|
|
|||
Loading…
Reference in a new issue