Documentation

Index

Constants

This section is empty.

Variables

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

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
)

func ParseProtocol

func ParseProtocol(proto string) (U8proto, error)

func (U8proto) String

func (p U8proto) String() string

Source Files