summaryrefslogtreecommitdiff
path: root/crypto/des.c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-03-15 21:47:15 +0100
committerKozlov Dmitry <xeb@mail.ru>2013-03-16 08:34:46 +0400
commit3c69e63ba31aed28ee35a1d38bad8c9201f45902 (patch)
tree55738482178a38bf45cc0082eec17c2dc468dc3a /crypto/des.c
parentbdad3986933738e33e4b9fd51f38460e08e28a6e (diff)
downloadaccel-ppp-3c69e63ba31aed28ee35a1d38bad8c9201f45902.tar.gz
accel-ppp-3c69e63ba31aed28ee35a1d38bad8c9201f45902.zip
l2tp: Send CDN in tunnel context
Handling ICRQ or OCRQ requests occurs in tunnel context, but if session creation is rejected, a CDN has to be sent. However, l2tp_send_CDN() is supposed to be called in session context. This means that it uselessly switches to tunnel context before sending messages and requires a session structure to work on. This patch creates a new function for sending CDN from tunnel context. It gets the session and peer session IDs from its arguments and calls l2tp_tunnel_send() directly. The l2tp_recv_ICRQ() and l2tp_recv_OCRQ() functions are modified to take advantage of this new function and will now send CDN even upon early message processing error. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'crypto/des.c')
0 files changed, 0 insertions, 0 deletions