mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-16 13:49:58 +00:00
Fix lint: replace maps.Clear with clear, drop unused server wrapper, add v6 ext-header TODO
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user