summaryrefslogtreecommitdiff
path: root/accel-pppd/triton
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2014-03-28 21:09:58 +0100
committerDmitry Kozlov <xeb@mail.ru>2014-04-01 06:48:02 +0400
commitf6bad674803eb1a6205ed9c440992aa0af7e535a (patch)
treea567c01f1157f82fbdbc129ce777805386984b0a /accel-pppd/triton
parenta801c89a0bfc83a7026f822e9b429cf6e331bcc8 (diff)
downloadaccel-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/triton')
0 files changed, 0 insertions, 0 deletions