Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136354580
D21591.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
529 B
Referenced Files
None
Subscribers
None
D21591.diff
View Options
Index: head/sys/netinet/tcp_syncache.c
===================================================================
--- head/sys/netinet/tcp_syncache.c
+++ head/sys/netinet/tcp_syncache.c
@@ -1543,7 +1543,6 @@
sc->sc_todctx = todctx;
#endif
sc->sc_irs = th->th_seq;
- sc->sc_iss = arc4random();
sc->sc_flags = 0;
sc->sc_flowlabel = 0;
@@ -1617,6 +1616,8 @@
if (V_tcp_syncookies)
sc->sc_iss = syncookie_generate(sch, sc);
+ else
+ sc->sc_iss = arc4random();
#ifdef INET6
if (autoflowlabel) {
if (V_tcp_syncookies)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 18, 9:38 AM (5 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25491038
Default Alt Text
D21591.diff (529 B)
Attached To
Mode
D21591: avoid unneeded call to arc4random() in syncache_add()
Attached
Detach File
Event Timeline
Log In to Comment