summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-02-13 13:50:07 +0100
committerKozlov Dmitry <xeb@mail.ru>2013-02-13 17:24:03 +0400
commitbeb0cbc64eed512e9524d43cfc719ce6dfc75c58 (patch)
tree0d4b68c3cef97eca7ce55ead386c092d5208946d
parent9ab318da7dc76850f7618451056e332f2e7d0107 (diff)
downloadaccel-ppp-xebd-beb0cbc64eed512e9524d43cfc719ce6dfc75c58.tar.gz
accel-ppp-xebd-beb0cbc64eed512e9524d43cfc719ce6dfc75c58.zip
l2tp: Acknowledge SLI messages
Send a ZLB after reception of Set-Link-Info (SLI) messages to avoid retransmissions from the LNS. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index 66dff48..85b4b9b 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -2024,6 +2024,13 @@ static int l2tp_recv_CDN(struct l2tp_sess_t *sess,
static int l2tp_recv_SLI(struct l2tp_conn_t *conn,
const struct l2tp_packet_t *pack)
{
+ if (conn->lns_mode) {
+ l2tp_conn_log(log_warn, conn);
+ log_warn("l2tp: unexpected SLI\n");
+ }
+
+ l2tp_send_ZLB(conn);
+
return 0;
}