protos

package
v0.0.0-...-a8fe691 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtocolType

type ProtocolType uint8

ProtocolType defines the type of protocol

const (
	// TCP protocol
	TCP ProtocolType = 6
	// UDP protocol
	UDP ProtocolType = 17
	// ICMP4 protocol
	ICMP4 ProtocolType = 1
	// ICMP6 protocol
	ICMP6 ProtocolType = 58
)

Based on https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml

func (ProtocolType) String

func (pt ProtocolType) String() string

Stringr converts the protocol type to a string

Jump to

Keyboard shortcuts

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