Skip to content

Commit 76764ad

Browse files
author
bol-van
committed
nfqws: fix breaking tcp if ts fooling is enabled but no timestamps present
1 parent 75d2f11 commit 76764ad

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/changes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,3 +591,7 @@ blockcheck: fix tpws test regression
591591

592592
nfqws,tpws: memleak fix
593593
mdig: --eagain, --eagain-delay
594+
595+
73.8
596+
597+
nfqws: fix breaking tcp if ts fooling is enabled but no timestamps present

nfq/darkmagic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static uint16_t tcpopt_len(bool sack, bool mss, uint32_t fooling, const uint32_t
192192
if (sack) t+=2;
193193
if (mss) t+=4;
194194
if (fooling & FOOL_MD5SIG) t+=18;
195-
if ((fooling & FOOL_TS) || timestamps) t+=10;
195+
if (timestamps) t+=10;
196196
if (scale_factor!=SCALE_NONE) t+=3;
197197
return (t+3)&~3;
198198
}

0 commit comments

Comments
 (0)