go/src/net/interface_linux.go

// If the ifindex is zero, interfaceTable returns mappings of all
// network interfaces. Otherwise it returns a mapping of a specific
// interface.
func interfaceTable(ifindex int) ([]Interface, error) {}

const sysARPHardwareIPv4IPv4

const sysARPHardwareIPv6IPv6

const sysARPHardwareIPv6IPv4

const sysARPHardwareGREIPv4

const sysARPHardwareGREIPv6

func newLink(ifim *syscall.IfInfomsg, attrs []syscall.NetlinkRouteAttr) *Interface {}

func linkFlags(rawFlags uint32) Flags {}

// If the ifi is nil, interfaceAddrTable returns addresses for all
// network interfaces. Otherwise it returns addresses for a specific
// interface.
func interfaceAddrTable(ifi *Interface) ([]Addr, error) {}

func addrTable(ift []Interface, ifi *Interface, msgs []syscall.NetlinkMessage) ([]Addr, error) {}

func newAddr(ifam *syscall.IfAddrmsg, attrs []syscall.NetlinkRouteAttr) Addr {}

// interfaceMulticastAddrTable returns addresses for a specific
// interface.
func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {}

func parseProcNetIGMP(path string, ifi *Interface) []Addr {}

func parseProcNetIGMP6(path string, ifi *Interface) []Addr {}