Fix lint: replace maps.Clear with clear, drop unused server wrapper, add v6 ext-header TODO

This commit is contained in:
Viktor Liu
2026-05-04 13:57:19 +02:00
parent 3ebd47f88d
commit 2cd11eb5d9
3 changed files with 11 additions and 13 deletions

View File

@@ -1308,6 +1308,9 @@ func (m *Manager) isValidPacket(d *decoder, packetData []byte) (bool, bool) {
case layers.LayerTypeIPv6:
// IPv6 uses Fragment extension header (NextHeader=44). If gopacket
// only decoded the IPv6 layer, the transport is in a fragment.
// TODO: handle non-Fragment extension headers (HopByHop, Routing,
// DestOpts) by walking the chain. gopacket's parser does not
// support them as DecodingLayers; today we drop such packets.
if d.ip6.NextHeader == layers.IPProtocolIPv6Fragment {
return true, true
}