Documentation ¶
Index ¶
Constants ¶
View Source
const (
PrivateMACPrefixString = "0a:58"
)
Variables ¶
View Source
var ( // private mac prefix safe to use PrivateMACPrefix = []byte{0x0a, 0x58} )
Functions ¶
func GenerateHardwareAddr4 ¶
GenerateHardwareAddr4 generates 48 bit virtual mac addresses based on the IP4 input.
Types ¶
type InvalidPrefixLengthErr ¶
type InvalidPrefixLengthErr struct {
// contains filtered or unexported fields
}
func (InvalidPrefixLengthErr) Error ¶
func (e InvalidPrefixLengthErr) Error() string
type MacParseErr ¶
type MacParseErr struct {
// contains filtered or unexported fields
}
func (MacParseErr) Error ¶
func (e MacParseErr) Error() string
type SupportIp4OnlyErr ¶
type SupportIp4OnlyErr struct {
// contains filtered or unexported fields
}
func (SupportIp4OnlyErr) Error ¶
func (e SupportIp4OnlyErr) Error() string
Click to show internal directories.
Click to hide internal directories.