svn commit: r261010 - stable/9/sys/netgraph
Gleb Smirnoff
glebius at FreeBSD.org
Wed Jan 22 09:23:30 UTC 2014
Author: glebius
Date: Wed Jan 22 09:23:30 2014
New Revision: 261010
URL: http://svnweb.freebsd.org/changeset/base/261010
Log:
Merge 260225:
Fix circular math macro.
PR: 146082
Modified:
stable/9/sys/netgraph/ng_l2tp.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/netgraph/ng_l2tp.c
==============================================================================
--- stable/9/sys/netgraph/ng_l2tp.c Wed Jan 22 09:22:39 2014 (r261009)
+++ stable/9/sys/netgraph/ng_l2tp.c Wed Jan 22 09:23:30 2014 (r261010)
@@ -98,7 +98,7 @@ static MALLOC_DEFINE(M_NETGRAPH_L2TP, "n
#define L2TP_ENABLE_DSEQ 1 /* enable data seq # */
/* Compare sequence numbers using circular math */
-#define L2TP_SEQ_DIFF(x, y) ((int)((int16_t)(x) - (int16_t)(y)))
+#define L2TP_SEQ_DIFF(x, y) ((int16_t)((x) - (y)))
#define SESSHASHSIZE 0x0020
#define SESSHASH(x) (((x) ^ ((x) >> 8)) & (SESSHASHSIZE - 1))
More information about the svn-src-stable-9
mailing list