Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProtocolType ¶
type ProtocolType uint8
ProtocolType defines the type of protocol
const ( // TCP protocol TCP ProtocolType = 6 // UDP protocol UDP ProtocolType = 17 // ICMP4 protocol ICMP4 ProtocolType = 1 // ICMP6 protocol ICMP6 ProtocolType = 58 )
Based on https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
func (ProtocolType) String ¶
func (pt ProtocolType) String() string
Stringr converts the protocol type to a string
Click to show internal directories.
Click to hide internal directories.