Browse Source

nfqws: fix breaking tcp if ts fooling is enabled but no timestamps present

pull/2083/head v72.8
bol-van 5 months ago
parent
commit
76764ad6b0
  1. 4
      docs/changes.txt
  2. 2
      nfq/darkmagic.c

4
docs/changes.txt

@ -591,3 +591,7 @@ blockcheck: fix tpws test regression
nfqws,tpws: memleak fix
mdig: --eagain, --eagain-delay
73.8
nfqws: fix breaking tcp if ts fooling is enabled but no timestamps present

2
nfq/darkmagic.c

@ -192,7 +192,7 @@ static uint16_t tcpopt_len(bool sack, bool mss, uint32_t fooling, const uint32_t
if (sack) t+=2;
if (mss) t+=4;
if (fooling & FOOL_MD5SIG) t+=18;
if ((fooling & FOOL_TS) || timestamps) t+=10;
if (timestamps) t+=10;
if (scale_factor!=SCALE_NONE) t+=3;
return (t+3)&~3;
}

Loading…
Cancel
Save