network

package
v0.0.0-...-25ca533 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCiliumHostInterface

func GetCiliumHostInterface() (net.Interface, error)

func GetHostEth0Interface

func GetHostEth0Interface() (net.Interface, error)

func IpToUint32

func IpToUint32(ip net.IP) uint32

ipToUint32 converts an IPv4 address to a uint32

func IsInternetIP

func IsInternetIP(ip netip.Addr) bool

isInternetIP returns true if the IP is globally routable on the public Internet.

func ListCiliumVeths

func ListCiliumVeths() ([]net.Interface, error)

ListCiliumVeths returns all network interfaces whose name starts with "lxc".

func MaskToUint32

func MaskToUint32(mask net.IPMask) uint32

maskToUint32 converts a net.IPMask to a uint32

func StringIpToNetIp

func StringIpToNetIp(ip string) (net.IP, error)

func Uint32ToIP

func Uint32ToIP(n uint32) net.IP

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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