summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-10-28 21:37:29 +0100
committerDmitry Kozlov <xeb@mail.ru>2013-10-29 21:40:31 +0400
commitf1adc930c84f02ff845dce3013c05bc027a8bda4 (patch)
treef6bb7d217b167ab55bdc106ef5d36a38a0af7cdd
parent46ecf0e5867ea88cd9ec184b6731efbadf887392 (diff)
downloadaccel-ppp-f1adc930c84f02ff845dce3013c05bc027a8bda4.tar.gz
accel-ppp-f1adc930c84f02ff845dce3013c05bc027a8bda4.zip
l2tp: Don't send Assigned Sesssion ID in ICCN
The Assigned Session ID AVP should only be sent in ICRQ, ICRP, OCRQ, OCRP and CDN messages. An LNS receiving an ICCN with Assigned Session ID may reject the message because of this unexpected mandatory AVP. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index e018e5b..3b2e3f2 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -1822,12 +1822,6 @@ static int l2tp_send_ICCN(struct l2tp_sess_t *sess)
return -1;
}
- if (l2tp_packet_add_int16(pack, Assigned_Session_ID,
- sess->sid, 1) < 0) {
- log_session(log_error, sess, "impossible to send ICCN:"
- " adding data to packet failed\n");
- goto out_err;
- }
if (l2tp_packet_add_int32(pack, TX_Speed, 1000, 1) < 0) {
log_session(log_error, sess, "impossible to send ICCN:"
" adding data to packet failed\n");