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.
This commit is contained in:
Samuel Thibault 2025-03-23 18:52:32 +01:00
parent 40796d2adb
commit c12eab7a9c

View file

@ -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