summaryrefslogtreecommitdiff
path: root/accel-pppd/CMakeLists.txt
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2012-09-07 12:34:26 +0200
committerKozlov Dmitry <xeb@mail.ru>2012-09-07 14:48:48 +0400
commiteff719a6d3fd9005a7ee551a0ae53cfa69644de4 (patch)
tree43f8791c031f78b1ddf07a081c1de4ded571b958 /accel-pppd/CMakeLists.txt
parent24d4a04aa76c87898f9d0b16ad43fc8d667432ae (diff)
downloadaccel-ppp-eff719a6d3fd9005a7ee551a0ae53cfa69644de4.tar.gz
accel-ppp-eff719a6d3fd9005a7ee551a0ae53cfa69644de4.zip
L2TP: Use different states for handling sessions and tunnels
Use the "state" field (struct l2tp_conn_t) for tracking tunnel states and "state1" (struct l2tp_sess_t) for sessions. The meaning of the STATE_* has been slightly modified: * STATE_WAIT_SCCN (tunnel): no modification. * STATE_WAIT_ICRQ (session): now unused. Acceptation of ICRQ messages now depend on the tunnel state (STATE_ESTB). * STATE_WAIT_ICCN (session): no modification. * STATE_ESTB (tunnel and session): for tunnels, means that the tunnel is ready to accept new sessions. For sessions, means that the L2TP session is established, but that it doesn't carry any PPP session yet. * STATE_PPP (session): the session is in use (i.e. it is established and carries a PPP session). * STATE_FIN (tunnel): the tunnel is being closed. * STATE_CLOSE (tunnel and session): default state after allocation/free. For session, this is also the state used once disconnected. Since outgoing calls are not implemented yet, STATE_WAIT_OCRP and STATE_WAIT_OCCN are not used. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions