Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProtoIDs = map[string]U8proto{
"all": 0,
"any": 0,
"none": 0,
"icmp": 1,
"igmp": 2,
"ipip": 4,
"tcp": 6,
"udp": 17,
"ipv6": 41,
"gre": 47,
"esp": 50,
"ah": 51,
"icmpv6": 58,
"vrrp": 112,
"sctp": 132,
}
Functions ¶
This section is empty.
Types ¶
type U8proto ¶
type U8proto uint8
const ( // ANY represents protocols with transport-layer ports (TCP, UDP, SCTP). ANY U8proto = 0 ICMP U8proto = 1 IGMP U8proto = 2 IPIP U8proto = 4 // IP-in-IP Encapsulation (RFC 2003) TCP U8proto = 6 UDP U8proto = 17 IPv6 U8proto = 41 // IPv6 Encapsulation (6in4, RFC 4213) GRE U8proto = 47 // Generic Routing Encapsulation (RFC 2784) ESP U8proto = 50 // Encapsulating Security Payload (RFC 4303) AH U8proto = 51 // Authentication Header (RFC 4302) ICMPv6 U8proto = 58 VRRP U8proto = 112 SCTP U8proto = 132 )
func FromNumber ¶ added in v1.17.0
func ParseProtocol ¶
Click to show internal directories.
Click to hide internal directories.