u8proto

package
v1.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 91

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,
	"tcp":    6,
	"udp":    17,
	"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
	TCP    U8proto = 6
	UDP    U8proto = 17
	ICMPv6 U8proto = 58
	VRRP   U8proto = 112
	SCTP   U8proto = 132
)

func FromNumber added in v1.17.0

func FromNumber(proto uint8) (U8proto, error)

func ParseProtocol

func ParseProtocol(proto string) (U8proto, error)

func (U8proto) String

func (p U8proto) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL