From c5eacac64478464032fbd8c5b9e1c029a88b510c Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Fri, 20 Feb 2026 16:25:14 +0000 Subject: [PATCH] chore(pmtud/tcp): remove unused TCP flags --- internal/pmtud/tcp/tcpheader.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/internal/pmtud/tcp/tcpheader.go b/internal/pmtud/tcp/tcpheader.go index 489052f8..83a4ae38 100644 --- a/internal/pmtud/tcp/tcpheader.go +++ b/internal/pmtud/tcp/tcpheader.go @@ -63,15 +63,11 @@ func tcpChecksum(ipHeader, tcpHeader, payload []byte) uint16 { } const ( - tcpFlagsOffset = 13 - finFlag byte = 0x01 - synFlag byte = 0x02 - rstFlag byte = 0x04 - pshFlag byte = 0x08 - ackFlag byte = 0x10 - urgFlag byte = 0x20 - eceFlag byte = 0x40 - cwrFlag byte = 0x80 + finFlag byte = 0x01 + synFlag byte = 0x02 + rstFlag byte = 0x04 + pshFlag byte = 0x08 + ackFlag byte = 0x10 ) type packetType uint8