Commit 76764ad6 authored by bol-van's avatar bol-van
Browse files

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

parent 75d2f119
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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;
}