From c12eab7a9cefd520485fd42cd49eeb3f000dcacd Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 23 Mar 2025 18:52:32 +0100 Subject: [PATCH] l2tp: Disable ZLB send optimization controlc doesn't mean we will send more messages, but only that some of them are pending ack. If we have already sent them and the peer has just not acked them yet, controlnull() would not send a ZLB, and once the peer has acked our control messages, we wouldn't send a ZLB with an updated Nr. --- l2tpns.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/l2tpns.c b/l2tpns.c index a085b64..29c43fc 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -3470,8 +3470,6 @@ static controlt *controlnew(uint16_t mtype) static void controlnull(tunnelidt t) { uint16_t buf[6]; - if (tunnel[t].controlc) // Messages queued; They will carry the ack. - return; buf[0] = htons(0xC802); // flags/ver buf[1] = htons(12); // length