zoreide/vendor/github.com/go-ping/ping/utils_other.go

17 lines
284 B
Go
Raw Normal View History

2023-08-09 09:08:05 -05:00
// +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
}