transport

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IP       = Protocol(0)
	ICMP     = Protocol(1)
	IGMP     = Protocol(2)
	IPIP     = Protocol(4)
	TCP      = Protocol(6)
	EGP      = Protocol(8)
	PUP      = Protocol(12)
	UDP      = Protocol(17)
	IDP      = Protocol(22)
	TP       = Protocol(29)
	DCCP     = Protocol(33)
	IPV6     = Protocol(41)
	RSVP     = Protocol(46)
	GRE      = Protocol(47)
	ESP      = Protocol(50)
	AH       = Protocol(51)
	MTP      = Protocol(92)
	BEETPH   = Protocol(94)
	ENCAP    = Protocol(98)
	PIM      = Protocol(103)
	COMP     = Protocol(108)
	L2TP     = Protocol(115)
	SCTP     = Protocol(132)
	UDPLITE  = Protocol(136)
	MPLS     = Protocol(137)
	ETHERNET = Protocol(143)
	RAW      = Protocol(255)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol uint8

Protocol value stores the L4 transport protocol (TCP, UDP....) according to the values taken from the list of "Standard well-defined IP protocols" from uapi/linux/in.h

func ParseProtocol

func ParseProtocol(str string) (Protocol, error)

nolint:cyclop

func (Protocol) String

func (p Protocol) String() string

nolint:cyclop

Jump to

Keyboard shortcuts

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