diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-02-13 13:50:14 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-13 17:24:03 +0400 |
commit | cb6680609a6e9c66d709c028d00f89fcf3ccb703 (patch) | |
tree | 288e28142d8c73617c81f47c5b0f58ed66aad230 /accel-pppd/ctrl/l2tp/l2tp_prot.h | |
parent | beb0cbc64eed512e9524d43cfc719ce6dfc75c58 (diff) | |
download | accel-ppp-xebd-cb6680609a6e9c66d709c028d00f89fcf3ccb703.tar.gz accel-ppp-xebd-cb6680609a6e9c66d709c028d00f89fcf3ccb703.zip |
l2tp: Take StopCCN's AVPs into account
Use the Assigned Tunnel ID and Result Code AVPs when handling StopCCN
messages.
The Result Code AVP is used to improve log messages, while the Assigned
Tunnel ID is used to set the tunnel's peer-tid field.
Setting peer-tid makes the ZLB to be sent to the right tunnel in case
no Assigned Tunnel ID had been received yet (this happens when the host
sends an SCCRQ but the peer directly rejects the connection with
StopCCN).
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ctrl/l2tp/l2tp_prot.h')
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp_prot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp_prot.h b/accel-pppd/ctrl/l2tp/l2tp_prot.h index 1c1d9da..559b29c 100644 --- a/accel-pppd/ctrl/l2tp/l2tp_prot.h +++ b/accel-pppd/ctrl/l2tp/l2tp_prot.h @@ -49,6 +49,7 @@ struct l2tp_avp_result_code { uint16_t result_code; uint16_t error_code; + char error_msg[0]; } __attribute__((packed)); #endif |