Documentation
¶
Index ¶
- func ExpandIPNet(ipNet *net.IPNet) []net.IP
- func FindNetwork() (*net.Interface, *net.IPNet, error)
- func GetVendor(macAddress string) (string, bool)
- func IPNetTooLarge(ipNet *net.IPNet) bool
- func IsValidMAC(s string) bool
- func ParseMACList(values string) ([]string, bool)
- func UnqualifyHostname(hostname string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandIPNet ¶
ExpandIPNet takes a network and returns a slice of all IPs that belong to that network.
func FindNetwork ¶
FindNetwork returns the first active interface and network.
func GetVendor ¶
GetVendor returns the vendor for a mac address, and true if it was found in the gopacket database.
func IPNetTooLarge ¶
IPNetTooLarge returns true if a network is considered too large to scan.
Anything larger than a /24 is considered too large.
func IsValidMAC ¶
func ParseMACList ¶
func UnqualifyHostname ¶
UnqualifyHostname returns a hostname without the domain portion and removes any trailing periods, if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.