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:
parent
40796d2adb
commit
c12eab7a9c
1 changed files with 0 additions and 2 deletions
2
l2tpns.c
2
l2tpns.c
|
|
@ -3470,8 +3470,6 @@ static controlt *controlnew(uint16_t mtype)
|
||||||
static void controlnull(tunnelidt t)
|
static void controlnull(tunnelidt t)
|
||||||
{
|
{
|
||||||
uint16_t buf[6];
|
uint16_t buf[6];
|
||||||
if (tunnel[t].controlc) // Messages queued; They will carry the ack.
|
|
||||||
return;
|
|
||||||
|
|
||||||
buf[0] = htons(0xC802); // flags/ver
|
buf[0] = htons(0xC802); // flags/ver
|
||||||
buf[1] = htons(12); // length
|
buf[1] = htons(12); // length
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue