Documentation ¶
Index ¶
Constants ¶
View Source
const HeaderMinSize = 8
The minimum size of an ICMP header
Variables ¶
This section is empty.
Functions ¶
func SendPacket ¶
SendPacket sends an ICMP packet to on a given writer
Types ¶
type Header ¶
type Header struct { Tp Type Code uint8 Opt uint32 Data []byte // contains filtered or unexported fields }
Header represents an ICMP header
func (*Header) Marshal ¶
Marshal converts a Header structure into a slice of bytes, ready for transmission.
func (*Header) MarshalGivenSlice ¶
MarshalGivenSlice populates a given slice of bytes with fields from the Header structure.
Click to show internal directories.
Click to hide internal directories.