Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159434560
D50897.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
555 B
Referenced Files
None
Subscribers
None
D50897.diff
View Options
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -1113,8 +1113,10 @@
goto failed;
}
bzero(&scs, sizeof(scs));
- if (syncookie_expand(inc, sch, &scs, th, to, *lsop, port))
+ if (syncookie_expand(inc, sch, &scs, th, to, *lsop, port)) {
sc = &scs;
+ TCPSTAT_INC(tcps_sc_recvcookie);
+ }
if (locked)
SCH_UNLOCK(sch);
if (sc == NULL) {
@@ -2344,7 +2346,6 @@
sc->sc_port = port;
- TCPSTAT_INC(tcps_sc_recvcookie);
return (true);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 15, 1:25 AM (7 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33962166
Default Alt Text
D50897.diff (555 B)
Attached To
Mode
D50897: tcp: increase tcps_sc_recvcookie only in the syncache_expand()
Attached
Detach File
Event Timeline
Log In to Comment