svn commit: r293402 - stable/10/sys/netinet
Stanislav Sedov
stas at FreeBSD.org
Fri Jan 8 00:46:29 UTC 2016
Author: stas
Date: Fri Jan 8 00:46:28 2016
New Revision: 293402
URL: https://svnweb.freebsd.org/changeset/base/293402
Log:
MFC r277938 (by hiren): make syncookie_mac() use 'tcp_seq irs' in computing hash.
Modified:
stable/10/sys/netinet/tcp_syncache.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/netinet/tcp_syncache.c
==============================================================================
--- stable/10/sys/netinet/tcp_syncache.c Fri Jan 8 00:21:55 2016 (r293401)
+++ stable/10/sys/netinet/tcp_syncache.c Fri Jan 8 00:46:28 2016 (r293402)
@@ -1852,6 +1852,7 @@ syncookie_mac(struct in_conninfo *inc, t
}
SipHash_Update(&ctx, &inc->inc_fport, sizeof(inc->inc_fport));
SipHash_Update(&ctx, &inc->inc_lport, sizeof(inc->inc_lport));
+ SipHash_Update(&ctx, &irs, sizeof(irs));
SipHash_Update(&ctx, &flags, sizeof(flags));
SipHash_Update(&ctx, &secmod, sizeof(secmod));
SipHash_Final((u_int8_t *)&siphash, &ctx);
More information about the svn-src-stable
mailing list