iana

package
v0.0.0-...-c016973 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 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_X86_64        Arch = 7
	EFI_XSCALE        Arch = 8
	EFI_BC            Arch = 9
	EFI_ARM32         Arch = 10
	EFI_ARM64         Arch = 11
	PPC_OPEN_FIRMWARE Arch = 12
	PPC_EPAPR         Arch = 13
	PPC_OPAL          Arch = 14
	EFI_X86_HTTP      Arch = 15
	EFI_X86_64_HTTP   Arch = 16
	EFI_BC_HTTP       Arch = 17
	EFI_ARM32_HTTP    Arch = 18
	EFI_ARM64_HTTP    Arch = 19
	INTEL_X86PC_HTTP  Arch = 20
	UBOOT_ARM32       Arch = 21
	UBOOT_ARM64       Arch = 22
	UBOOT_ARM32_HTTP  Arch = 23
	UBOOT_ARM64_HTTP  Arch = 24
	EFI_RISCV32       Arch = 25
	EFI_RISCV32_HTTP  Arch = 26
	EFI_RISCV64       Arch = 27
	EFI_RISCV64_HTTP  Arch = 28
	EFI_RISCV128      Arch = 29
	EFI_RISCV128_HTTP Arch = 30
	S390_BASIC        Arch = 31
	S390_EXTENDED     Arch = 32
	EFI_MIPS32        Arch = 33
	EFI_MIPS64        Arch = 34
	EFI_SUNWAY32      Arch = 35
	EFI_SUNWAY64      Arch = 36
)

See RFC 4578, 5970, and http://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml#processor-architecture

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) Contains

func (a Archs) Contains(b Arch) bool

Contains returns whether b is one of the Archs in a.

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 EnterpriseID

type EnterpriseID int

EnterpriseID represents the Enterprise IDs as set by IANA

const (
	EnterpriseIDCiscoSystems            EnterpriseID = 9
	EnterpriseIDCienaCorporation        EnterpriseID = 1271
	EnterpriseIDMellanoxTechnologiesLTD EnterpriseID = 33049
)

See https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers for values

func (EnterpriseID) String

func (e EnterpriseID) String() string

String returns the vendor name for a given Enterprise ID

type HWType

type HWType uint16

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