Documentation ¶
Index ¶
Constants ¶
View Source
const ( NetworkUnreachable = UnreachableCode(iota) HostUnreachable ProtocolUnreachable PortUnreachable MustFragment SourceRouteFailed DestinationNetworkUnknown DestinationHostUnknown SourceHostIsolated DestinationNetworkProhibited DestinationHostProhibited NetworkTypeOfService HostTypeOfService CommunicationProhibited HostPrecedenceViolation PrecedenceCutoffInEffect )
View Source
const HeaderLen = 8 // Same for IPv4 and IPv6
View Source
const IPv6MinMTU = 1280 // From RFC 2460, section 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header []byte
Header represents an ICMP Header. The Header is obtained by simply casting the IP headers payload.
func (Header) MessageType ¶
func (Header) RestOfHeader ¶
func (Header) SetChecksum ¶
func (Header) SetMessageType ¶
type Packet ¶
func DestinationUnreachablePacket ¶
func DestinationUnreachablePacket(origHdr ip.Header, code UnreachableCode) Packet
type UnreachableCode ¶
type UnreachableCode int
Click to show internal directories.
Click to hide internal directories.