Skip to content

Commit

Permalink
ignore incoming Echo requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmke committed Feb 21, 2018
1 parent 47e7e43 commit 322e125
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions receiving.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ func (pinger *Pinger) receive(bytes []byte, t time.Time) {

pinger.process(msg.Body, fmt.Errorf("%s", rm.Type), nil)

case ipv4.ICMPTypeEcho:
// ignore

default:
// other ICMP packet
log.Printf("got: %+v %d", rm, rm.Body.Len(1))
Expand Down

0 comments on commit 322e125

Please sign in to comment.