gmtu

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mtud provides Path MTU Discovery functionality.

Index

Constants

View Source
const (
	MinIPv4HeaderSize = 20
	MaxIPv4HeaderSize = 60
	IPv6HeaderSize    = 40
	ICMPHeaderSize    = 8
)

Variables

View Source
var (
	Unimplemented = errors.New("pmtud is  not implemented for this OS")
	NoRecord      = errors.New("no IP record is found for given host")
)
View Source
var NumberOfMessages = 3

Number of ICMP messages to send for each ping test

View Source
var TimeOutDuration = 5000

Timeout for ICPM echo replies, currently only used in Windows

Functions

func Pmtud

func Pmtud(addr string) (int, error)

Performs Path MTU Discovery between given address. Address can be an IP address or domain name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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