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

This commit is contained in:
bol-van
2026-01-13 17:58:41 +03:00
parent 75d2f1195d
commit 76764ad6b0
2 changed files with 5 additions and 1 deletions

View File

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