Date: Fri, 8 Jan 2016 00:46:28 +0000 (UTC) From: Stanislav Sedov <stas@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r293402 - stable/10/sys/netinet Message-ID: <201601080046.u080kSaE015726@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601080046.u080kSaE015726>