svn commit: r277938 - head/sys/netinet

Hiren Panchasara hiren at FreeBSD.org
Fri Jan 30 17:29:09 UTC 2015


Author: hiren
Date: Fri Jan 30 17:29:07 2015
New Revision: 277938
URL: https://svnweb.freebsd.org/changeset/base/277938

Log:
  Make syncookie_mac() use 'tcp_seq irs' in computing hash.
  This fixes what seems like a simple oversight when the function was added in
  r253210.
  
  Reported by:            Daniel Borkmann <dborkman at redhat.com>
                          Florian Westphal <fw at strlen.de>
  Differential Revision:  https://reviews.freebsd.org/D1628
  Reviewed by:            gnn
  MFC after:              1 month
  Sponsored by:           Limelight Networks

Modified:
  head/sys/netinet/tcp_syncache.c

Modified: head/sys/netinet/tcp_syncache.c
==============================================================================
--- head/sys/netinet/tcp_syncache.c	Fri Jan 30 15:42:52 2015	(r277937)
+++ head/sys/netinet/tcp_syncache.c	Fri Jan 30 17:29:07 2015	(r277938)
@@ -1742,6 +1742,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-all mailing list