Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed Apr 23, 2024
1 parent 5a08280 commit 43577fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collectors/sniffer_afpacket_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (c *AfpacketSniffer) Run() {
if packet.NetworkLayer().LayerType() == layers.LayerTypeIPv4 {
ip4 := packet.NetworkLayer().(*layers.IPv4)
if ip4.Flags&layers.IPv4MoreFragments == 1 || ip4.FragOffset > 0 {
//fragIP4Chan <- packet
// fragIP4Chan <- packet
continue
}
}
Expand All @@ -209,7 +209,7 @@ func (c *AfpacketSniffer) Run() {
if packet.NetworkLayer().LayerType() == layers.LayerTypeIPv6 {
v6frag := packet.Layer(layers.LayerTypeIPv6Fragment)
if v6frag != nil {
//fragIP6Chan <- packet
// fragIP6Chan <- packet
continue
}
}
Expand Down

0 comments on commit 43577fb

Please sign in to comment.