A MessageBody represents an ICMP message body.
| 6 | |
| 7 | // A MessageBody represents an ICMP message body. |
| 8 | type MessageBody interface { |
| 9 | // Len returns the length of ICMP message body. |
| 10 | // The provided proto must be either the ICMPv4 or ICMPv6 |
| 11 | // protocol number. |
| 12 | Len(proto int) int |
| 13 | |
| 14 | // Marshal returns the binary encoding of ICMP message body. |
| 15 | // The provided proto must be either the ICMPv4 or ICMPv6 |
| 16 | // protocol number. |
| 17 | Marshal(proto int) ([]byte, error) |
| 18 | } |
| 19 | |
| 20 | // A RawBody represents a raw message body. |
| 21 | // |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…