From: Ralph Ronnquist Date: Tue, 2 Nov 2021 20:47:55 +0000 (+1100) Subject: broaden tpg quirk range to [1461,1477] X-Git-Tag: 1.5.2~3 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=65e67f7e6b5320394f31df4cf80e9f36d5067727;p=rrq%2Frrqnet.git broaden tpg quirk range to [1461,1477] --- diff --git a/rrqnet.c b/rrqnet.c index 27769c8..b28b3c8 100644 --- a/rrqnet.c +++ b/rrqnet.c @@ -887,9 +887,9 @@ static void write_remote(unsigned char *buf, int n,struct Remote *r) { } memcpy( output, buf, n ); // Use the private buffer for delivery // Apply the TPG quirk - if ( tpg_quirk && ( n == 1470 ) ) { + if ( tpg_quirk && ( n > 1460 ) && ( n < 1478 ) ) { VERBOSE2OUT( "tpg quirk applied\n" ); - n += 8; // Add 8 "random" tag-along bytes + n = 1478; // Add some "random" tag-along bytes } if ( r->spec == 0 ) { if ( r->uaddr.in.sa_family == 0 ) {