iana

package
v0.0.0-...-651e084 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

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.

const (
	INTEL_X86PC       Arch = 0
	NEC_PC98          Arch = 1
	EFI_ITANIUM       Arch = 2
	DEC_ALPHA         Arch = 3
	ARC_X86           Arch = 4
	INTEL_LEAN_CLIENT Arch = 5
	EFI_IA32          Arch = 6
	EFI_BC            Arch = 7
	EFI_XSCALE        Arch = 8
	EFI_X86_64        Arch = 9
)

See RFC 4578.

func (Arch) String

func (a Arch) String() string

String returns a mnemonic name for a given architecture type.

type Archs

type Archs []Arch

Archs represents multiple Arch values.

func (*Archs) FromBytes

func (a *Archs) FromBytes(data []byte) error

FromBytes parses a DHCP list of architecture types as defined by RFC 4578 and RFC 5970.

func (Archs) String

func (a Archs) String() string

String returns the list of archs in a human-readable manner.

func (Archs) ToBytes

func (a Archs) ToBytes() []byte

ToBytes returns the serialized option defined by RFC 4578 (DHCPv4) and RFC 5970 (DHCPv6) as the Client System Architecture Option.

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.

func (HWType) String

func (h HWType) String() string

String implements fmt.Stringer.

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

Jump to

Keyboard shortcuts

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