From 831cd6119f71b09f9e2e1885df0dc1dd19be281f Mon Sep 17 00:00:00 2001 From: bodea Date: Mon, 16 May 2005 05:50:32 +0000 Subject: [PATCH] off by one --- l2tpns.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l2tpns.h b/l2tpns.h index 9fe044a..ef89f16 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -1,5 +1,5 @@ // L2TPNS Global Stuff -// $Id: l2tpns.h,v 1.49.2.9 2005/05/16 05:01:51 bodea Exp $ +// $Id: l2tpns.h,v 1.49.2.10 2005/05/16 05:50:32 bodea Exp $ #ifndef __L2TPNS_H__ #define __L2TPNS_H__ @@ -24,7 +24,7 @@ #define RADIUS_SHIFT 6 #define RADIUS_MASK ((1 << RADIUS_SHIFT) - 1) -#define MAXRADIUS ((1 << (RADIUS_SHIFT + 8)) - 1) +#define MAXRADIUS (1 << 8 + RADIUS_SHIFT) #define T_UNDEF (0xffff) // A tunnel ID that won't ever be used. Mark session as undefined. #define T_FREE (0) // A tunnel ID that won't ever be used. Mark session as free. -- 2.20.1