package netlink

import "gvisor.dev/gvisor/test/packetimpact/netdevs/netlink"

Package netlink has routines to get interfaces information through netlink.

Index

Functions

func IfaceInfo

func IfaceInfo(name string) (netlink.Link, netlink.Addr, netlink.Addr, error)

IfaceInfo returns the device with its IPv4 and IPv6 addresses. An error is returned if the device is not present or there are no or more than 1 ip addr per address family.

Source Files

netlink.go

Version
v0.0.0-20250702182429-85e76111eb28 (latest)
Published
Jul 2, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
3 hours ago

Tools for package owners.