Skip to content
This repository was archived by the owner on May 20, 2020. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove test code
  • Loading branch information
tracyfyzhou committed Jun 8, 2019
commit 888aab295af05de1720446c0f6d4f11543f988c7
1 change: 0 additions & 1 deletion tcpip/transport/icmp/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ func (e *endpoint) HandlePacket(r *stack.Route, id stack.TransportEndpointID, vv
case header.IPv4ProtocolNumber:
h := header.ICMPv4(vv.First())
if h.Type() != header.ICMPv4EchoReply && h.Type() != header.ICMPv4Echo {
typea := h.Type()
e.stack.Stats().DroppedPackets.Increment()
return
}
Expand Down