diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2014-03-28 21:09:58 +0100 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-04-01 06:48:02 +0400 |
commit | f6bad674803eb1a6205ed9c440992aa0af7e535a (patch) | |
tree | a567c01f1157f82fbdbc129ce777805386984b0a /accel-pppd/ctrl/l2tp/l2tp.h | |
parent | a801c89a0bfc83a7026f822e9b429cf6e331bcc8 (diff) | |
download | accel-ppp-f6bad674803eb1a6205ed9c440992aa0af7e535a.tar.gz accel-ppp-f6bad674803eb1a6205ed9c440992aa0af7e535a.zip |
l2tp: use random Tunnel IDs
Re-use the Session ID selection algorithm for generating Tunnel IDs.
When a peer always uses the same source port for establishing tunnels,
and if ephemeral ports aren't activated (default), then Tunnel IDs are
the only way to identify tunnels. Using ramdom Tunnel IDs then
minimises the risk of re-using IDs of half-closed tunnels (i.e. tunnels
closed locally, but still existing on the peer side).
As a minor side effect, the maximum value of a Tunnel ID is now
2^16 - 1.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ctrl/l2tp/l2tp.h')
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.h b/accel-pppd/ctrl/l2tp/l2tp.h index 91844c6c..1b7e4cea 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.h +++ b/accel-pppd/ctrl/l2tp/l2tp.h @@ -14,7 +14,6 @@ #define ATTR_TYPE_STRING 5 #define L2TP_MAX_PACKET_SIZE 65536 -#define L2TP_MAX_TID 65534 #define L2TP_V2_PROTOCOL_VERSION ( 1 << 8 | 0 ) |