u8proto

package
v1.17.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 82

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProtoIDs = map[string]U8proto{
	"all":    0,
	"any":    0,
	"none":   0,
	"icmp":   1,
	"tcp":    6,
	"udp":    17,
	"icmpv6": 58,
	"sctp":   132,
}

Functions

This section is empty.

Types

type U8proto

type U8proto uint8
const (
	// ANY represents all protocols.
	ANY    U8proto = 0
	ICMP   U8proto = 1
	TCP    U8proto = 6
	UDP    U8proto = 17
	ICMPv6 U8proto = 58
	SCTP   U8proto = 132
)

func FromNumber

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