Update dependencies
This commit is contained in:
16
vendor/github.com/go-ping/ping/utils_other.go
generated
vendored
Normal file
16
vendor/github.com/go-ping/ping/utils_other.go
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
// +build !linux,!windows
|
||||
|
||||
package ping
|
||||
|
||||
// Returns the length of an ICMP message.
|
||||
func (p *Pinger) getMessageLength() int {
|
||||
return p.Size + 8
|
||||
}
|
||||
|
||||
// Attempts to match the ID of an ICMP packet.
|
||||
func (p *Pinger) matchID(ID int) bool {
|
||||
if ID != p.id {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user