Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_syncache.c
Show First 20 Lines • Show All 1,515 Lines • ▼ Show 20 Lines | #endif | ||||
sc->sc_ip_tos = ip_tos; | sc->sc_ip_tos = ip_tos; | ||||
sc->sc_ip_ttl = ip_ttl; | sc->sc_ip_ttl = ip_ttl; | ||||
} | } | ||||
#ifdef TCP_OFFLOAD | #ifdef TCP_OFFLOAD | ||||
sc->sc_tod = tod; | sc->sc_tod = tod; | ||||
sc->sc_todctx = todctx; | sc->sc_todctx = todctx; | ||||
#endif | #endif | ||||
sc->sc_irs = th->th_seq; | sc->sc_irs = th->th_seq; | ||||
KASSERT(is_random_seeded(), ("%s: syncache_init() already relies on " | |||||
"arc4random being available, so it must be here as well.", | |||||
__func__)); | |||||
sc->sc_iss = arc4random(); | sc->sc_iss = arc4random(); | ||||
sc->sc_flags = 0; | sc->sc_flags = 0; | ||||
sc->sc_flowlabel = 0; | sc->sc_flowlabel = 0; | ||||
/* | /* | ||||
* Initial receive window: clip sbspace to [0 .. TCP_MAXWIN]. | * Initial receive window: clip sbspace to [0 .. TCP_MAXWIN]. | ||||
* win was derived from socket earlier in the function. | * win was derived from socket earlier in the function. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 769 Lines • Show Last 20 Lines |