mac

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMACPolicy = MACPolicy{
	AllowAllZero:      false,
	AllowBroadcast:    false,
	AllowMulticast:    false,
	AllowLocallyAdmin: true,
}

Functions

func FormatMAC

func FormatMAC(s string) (string, error)

func IsValidMAC

func IsValidMAC(s string) (string, error)

func IsValidMACWithPolicy

func IsValidMACWithPolicy(s string, p MACPolicy) (string, error)

Types

type MACPolicy

type MACPolicy struct {
	AllowAllZero      bool
	AllowBroadcast    bool
	AllowMulticast    bool
	AllowLocallyAdmin bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL