netutils

package
v27.5.1-devang+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package netutils provides network utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIfaceName

func GenerateIfaceName(nlh nlwrap.Handle, prefix string, len int) (string, error)

GenerateIfaceName returns an interface name using the passed in prefix and the length of random bytes. The api ensures that the there are is no interface which exists with that name.

func GenerateMACFromIP

func GenerateMACFromIP(ip net.IP) net.