protocols

package
v4.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package protocols provides lookup functionality for IP protocol IDs and their names (which are in some cases OS specific)

Code generated by protocols_generator.go - DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var IPProtocolIDs = map[string]int{}/* 139 elements not displayed */

IPProtocolIDs is the reverse mapping from friendly name to protocol number

View Source
var IPProtocols = map[int]string{}/* 139 elements not displayed */

IPProtocols stores the IP protocol mappings to friendly name

Functions

func GetIPProto

func GetIPProto(id int) string

GetIPProto returns the friendly name for a given protocol id

func GetIPProtoID

func GetIPProtoID(name string) (uint64, bool)

GetIPProtoID returns the numeric value for a given IP protocol

Types

This section is empty.

Jump to

Keyboard shortcuts

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