package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev
# Functions
IPv6PseudoHeader returns an IPv6 pseudo header for checksum calculation.
ListenPacket listens for incoming ICMP packets addressed to address.
ParseIPv4Header parses b as an IPv4 header of ICMP error message invoking packet, which is contained in ICMP error message.
ParseMessage parses b as an ICMP message.
# Structs
A DefaultMessageBody represents the default message body.
A DstUnreach represents an ICMP destination unreachable message body.
An Echo represents an ICMP echo request or reply message body.
An InterfaceInfo represents interface and next-hop identification.
A Message represents an ICMP message.
A MPLSLabel represents a MPLS label stack entry.
A MPLSLabelStack represents a MPLS label stack.
A PacketConn represents a packet network endpoint that uses either ICMPv4 or ICMPv6.
A PacketTooBig represents an ICMP packet too big message body.
A ParamProb represents an ICMP parameter problem message body.
A TimeExceeded represents an ICMP time exceeded message body.
# Interfaces
An Extension represents an ICMP extension.
A MessageBody represents an ICMP message body.
A Type represents an ICMP message type.