From 65e67f7e6b5320394f31df4cf80e9f36d5067727 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Wed, 3 Nov 2021 07:47:55 +1100 Subject: [PATCH] broaden tpg quirk range to [1461,1477] --- rrqnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.39.2