projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
847b4c6
)
off by one
author
Brendan O'Dea
<bod@optus.net>
Mon, 16 May 2005 05:50:54 +0000
(
05:50
+0000)
committer
Brendan O'Dea
<bod@optus.net>
Mon, 16 May 2005 05:50:54 +0000
(
05:50
+0000)
l2tpns.h
patch
|
blob
|
history
diff --git
a/l2tpns.h
b/l2tpns.h
index
3406afd
..
908180f
100644
(file)
--- a/
l2tpns.h
+++ b/
l2tpns.h
@@
-1,5
+1,5
@@
// L2TPNS Global Stuff
// L2TPNS Global Stuff
-// $Id: l2tpns.h,v 1.
69 2005-05-16 04:51:16
bodea Exp $
+// $Id: l2tpns.h,v 1.
70 2005-05-16 05:50:54
bodea Exp $
#ifndef __L2TPNS_H__
#define __L2TPNS_H__
#ifndef __L2TPNS_H__
#define __L2TPNS_H__
@@
-24,7
+24,7
@@
#define RADIUS_SHIFT 6
#define RADIUS_MASK ((1 << RADIUS_SHIFT) - 1)
#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.
#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.