Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MAC ¶
type MAC net.HardwareAddr
MAC address is an net.HardwareAddr encapsulation to force cilium to only use MAC-48.
func GenerateRandMAC ¶ added in v1.5.5
GenerateRandMAC generates a random unicast and locally administered MAC address.
func (MAC) MarshalIndentJSON ¶
func (MAC) MarshalJSON ¶
func (MAC) Uint64 ¶
Uint64 returns the MAC in uint64 format. The MAC is represented as little-endian in the returned value. Example:
m := MAC([]{0x11, 0x12, 0x23, 0x34, 0x45, 0x56}) v, err := m.Uint64() fmt.Printf("0x%X", v) // 0x564534231211
func (*MAC) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.