From beb0cbc64eed512e9524d43cfc719ce6dfc75c58 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Wed, 13 Feb 2013 13:50:07 +0100 Subject: 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 --- accel-pppd/ctrl/l2tp/l2tp.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'accel-pppd/ctrl') diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 66dff484..85b4b9bf 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; } -- cgit v1.2.3