network

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceTypeHeuristic

func DeviceTypeHeuristic(vendor string, openPorts []int) string

DeviceTypeHeuristic guesses the device type from vendor and open ports.

func LookupVendor

func LookupVendor(mac string) string

LookupVendor returns the vendor name for a MAC address based on OUI prefix.

func ReverseDNS

func ReverseDNS(ip string) string

func SubnetHosts

func SubnetHosts(network *net.IPNet) []net.IP

Types

type InterfaceInfo

type InterfaceInfo struct {
	Name    string
	IP      net.IP
	Network *net.IPNet
	Gateway string
}

func DetectInterface

func DetectInterface(name string) (*InterfaceInfo, error)

Jump to

Keyboard shortcuts

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