package hwaddr
import "github.com/containernetworking/cni/pkg/utils/hwaddr"
Index ¶
- Constants
- Variables
- func GenerateHardwareAddr4(ip net.IP, prefix []byte) (net.HardwareAddr, error)
- type InvalidPrefixLengthErr
- type MacParseErr
- type SupportIp4OnlyErr
Constants ¶
const (
PrivateMACPrefixString = "0a:58"
)
Variables ¶
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
Source Files ¶
- Version
- v0.4.0
- Published
- Jan 13, 2017
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 day ago –
Tools for package owners.