utils

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVendorFromOUI

func GetVendorFromOUI(s string) (string, error)

func IsMacRandomized

func IsMacRandomized(mac string) bool

IsMacRandomized takes a mac address like "wifi-60:57:18:3d:b8:14" or "60:57:18:3d:b8:14" and pulls the first hex digit "60" and computes whether or not it is randomized. Randomized = Second-least-significant bit of first hex is 0 (https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local)

func RandomString

func RandomString(n int) string

RandomString prints a random string

Types

This section is empty.

Jump to

Keyboard shortcuts

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