Documentation
¶
Overview ¶
Package neth provides some helpers for system net package.
Index ¶
Constants ¶
View Source
const UDPGuaranteedPayloadSize = 508
UDPGuaranteedPayloadSize is maximal guaranteed size of UDP payload which does not fragment and must be delivered. = 576 (RFC792) - 60 (Max IP Header Size) — 8 (UDP Header Size)
View Source
const UDPUsualMaxPayloadSize = 1432
UDPUsualMaxPayloadSize is usual size of UDP payload which does not fragment and must be delivered via internet (if no encapsulation is used). Primary used for servers where encapsulation more or less can be checked. 1500 (MTU) — 60(Max IP Header Size) — 8(UDP Header Size)
Variables ¶
This section is empty.
Functions ¶
func IPLen ¶
IPLen return length of given ip in bytes (4 for IPv4 even if it stored as IPv6). IPLen return 0 if given address is not valid IP v4 nor v6.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.