ports

package
v0.0.0-...-51968b7 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TCP = "tcp"
View Source
const UDP = "udp"

Variables

This section is empty.

Functions

This section is empty.

Types

type IanaDB

type IanaDB struct {
	// contains filtered or unexported fields
}

func NewIanaDB

func NewIanaDB(csvFile string) (*IanaDB, error)

func (*IanaDB) IsPortEphemeral

func (db *IanaDB) IsPortEphemeral(port int, transportProto string) bool

IsPortEphemeral returns true if the port 1. is not well-known 2. is not a registered port as per IANA assignment https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt

Jump to

Keyboard shortcuts

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