Documentation ¶
Overview ¶
Package iana contains constants defined by IANA.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arch ¶
type Arch uint16
Arch encodes an architecture type per RFC 4578, Section 2.1.
type Archs ¶
type Archs []Arch
Archs represents multiple Arch values.
func (*Archs) FromBytes ¶
FromBytes parses a DHCP list of architecture types as defined by RFC 4578 and RFC 5970.
type HWType ¶
type HWType uint8
HWType is a hardware type as per RFC 2132 and defined by the IANA.
const ( HWTypeEthernet HWType HWTypeExperimentalEthernet HWTypeAmateurRadioAX25 HWTypeProteonTokenRing HWTypeChaos HWTypeIEEE802 HWTypeARCNET HWTypeHyperchannel HWTypeLanstar HWTypeAutonet HWTypeLocalTalk HWTypeLocalNet HWTypeUltraLink HWTypeSMDS HWTypeFrameRelay HWTypeATM HWTypeHDLC HWTypeFibreChannel HWTypeATM2 HWTypeSerialLine HWTypeATM3 HWTypeMILSTD188220 HWTypeMetricom HWTypeIEEE1394 HWTypeMAPOS HWTypeTwinaxial HWTypeEUI64 HWTypeHIPARP HWTypeISO7816 HWTypeARPSec HWTypeIPsec HWTypeInfiniband HWTypeCAI HWTypeWiegandInterface HWTypePureIP )
See IANA for values.
type StatusCode ¶
type StatusCode uint16
StatusCode represents a IANA status code for DHCPv6
IANA Status Codes for DHCPv6 https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml#dhcpv6-parameters-5
const ( // RFC 3315 par. 24..4 StatusSuccess StatusCode = 0 StatusUnspecFail StatusCode = 1 StatusNoAddrsAvail StatusCode = 2 StatusNoBinding StatusCode = 3 StatusNotOnLink StatusCode = 4 StatusUseMulticast StatusCode = 5 StatusNoPrefixAvail StatusCode = 6 // RFC 5007 StatusUnknownQueryType StatusCode = 7 StatusMalformedQuery StatusCode = 8 StatusNotConfigured StatusCode = 9 StatusNotAllowed StatusCode = 10 // RFC 5460 StatusQueryTerminated StatusCode = 11 // RFC 7653 StatusDataMissing StatusCode = 12 StatusCatchUpComplete StatusCode = 13 StatusNotSupported StatusCode = 14 StatusTLSConnectionRefused StatusCode = 15 // RFC 8156 StatusAddressInUse StatusCode = 16 StatusConfigurationConflict StatusCode = 17 StatusMissingBindingInformation StatusCode = 18 StatusOutdatedBindingInformation StatusCode = 19 StatusServerShuttingDown StatusCode = 20 StatusDNSUpdateNotSupported StatusCode = 21 StatusExcessiveTimeSkew StatusCode = 22 )
IANA status codes
func (StatusCode) String ¶
func (s StatusCode) String() string
String returns a mnemonic name for a given status code
Click to show internal directories.
Click to hide internal directories.