From 795fb509b957c81a2ffa22e60d82016e97bae8a6 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Thu, 24 Jan 2013 16:14:51 +0100 Subject: l2tp: Always acknowledge SCCCN messages Tunnel establishment may not be immediately followed by the creation of a new session. In this case there is no message to send to the peer after receiving an SCCCN; so it won't be acknowledged and the peer will then have to retransmit it. This patch makes the tunnel always acknowledge SCCCN by replying with a ZLB, thus avoiding useless retransmission from the peer. Signed-off-by: Guillaume Nault --- accel-pppd/ctrl/l2tp/l2tp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index c57e46f..b2447cd 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -1128,6 +1128,7 @@ static int l2tp_recv_SCCCN(struct l2tp_conn_t *conn, struct l2tp_packet_t *pack) return -1; } conn->state = STATE_ESTB; + l2tp_send_ZLB(conn); } else log_ppp_warn("l2tp: unexpected SCCCN\n"); -- cgit v1.2.3