ipproto

package
v2.20.0-pro.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package ipproto contains IP protocol numbers https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml

Index

Constants

View Source
const (
	TCP    = 6
	UDP    = 17
	ICMP   = 1
	ICMPV6 = 58
)

Variables

This section is empty.

Functions

func Parse added in v2.11.0

func Parse(network string) int

Parse returns the IP protocol for the given network. Currently only supports TCP, UDP, and ICMP.

func String added in v2.11.0

func String(proto int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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