1234567891011121314151617 |
- //go:build !linux && !windows
- // +build !linux,!windows
- package probing
- // 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
- }
|