MCPcopy
hub / github.com/golang/net / MessageBody

Interface MessageBody

icmp/messagebody.go:8–18  ·  view source on GitHub ↗

A MessageBody represents an ICMP message body.

Source from the content-addressed store, hash-verified

6
7// A MessageBody represents an ICMP message body.
8type 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//

Callers

nothing calls this directly

Implementers 12

PacketTooBigicmp/packettoobig.go
InterfaceInfoicmp/interface.go
InterfaceIdenticmp/interface.go
RawBodyicmp/messagebody.go
TimeExceededicmp/timeexceeded.go
RawExtensionicmp/extension.go
MPLSLabelStackicmp/mpls.go
ParamProbicmp/paramprob.go
Echoicmp/echo.go
ExtendedEchoReplyicmp/echo.go
DstUnreachicmp/dstunreach.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…