Documentation ¶
Index ¶
- Variables
- type EUI48
- func (i EUI48) Encode(groupSize int, delimiter byte) string
- func (i *EUI48) FillFromHWAddr(hwAddr net.HardwareAddr) error
- func (i *EUI48) FillFromString(s string) error
- func (i EUI48) Hex() string
- func (i EUI48) MarshalText() ([]byte, error)
- func (i EUI48) String() string
- func (i *EUI48) UnmarshalText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidInput = errors.New("invalid hardware address")
)
Functions ¶
This section is empty.
Types ¶
type EUI48 ¶
type EUI48 [6]byte
A EUI48 represents a 64 bit wide extended unique identifier.
func ParseEUI48FromHWAddr ¶ added in v0.2.0
func ParseEUI48FromHWAddr(hwaddr net.HardwareAddr) (out EUI48, err error)
func (*EUI48) FillFromHWAddr ¶ added in v0.2.0
func (i *EUI48) FillFromHWAddr(hwAddr net.HardwareAddr) error
FillFromHWAddr parses an EUI-48 or EUI-64 address and returns the EUI48 address.
func (*EUI48) FillFromString ¶ added in v0.2.0
func (EUI48) MarshalText ¶ added in v0.2.0
func (*EUI48) UnmarshalText ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.