summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-02-11 21:02:46 +0100
committerKozlov Dmitry <xeb@mail.ru>2013-02-12 00:12:48 +0400
commit99fc06cba8a870942871d356077fba788455c91f (patch)
tree021cd4f5976f8c3daa0d385c2231a0c0df08ca37 /crypto
parent9c9ff616d53127f6018143154aa53ad16bec9eca (diff)
downloadaccel-ppp-99fc06cba8a870942871d356077fba788455c91f.tar.gz
accel-ppp-99fc06cba8a870942871d356077fba788455c91f.zip
l2tp: Update Ns/Nr handling
Change the meaning of the Nr field in struct l2tp_conn_t: instead of setting it to the last received message sequence, set it with the value of the next expected message sequence number (i.e. one above the previous value). This simplifies processing and avoids the l2tp_send() function to increment the L2TP packet Nr field (it's now directly set to the correct value). Having Nr correctly set before calling l2tp_send() is necessary for implementing tunnel establishment requests (SCCRQ messages) since the Nr field of this message must be 0. This patch also replaces the formula used to check if a message Ns is lower than a tunnel Nr. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions