Documentation ¶
Index ¶
Constants ¶
View Source
const ( IF_TYPE_LOOPBACK = 1 IF_TYPE_BROADCAST = 2 IF_TYPE_POINTTOPOINT = 3 )
Variables ¶
This section is empty.
Functions ¶
func IfaceExists ¶
func Serve ¶
func Serve(status chan<- *KernelStatus)
Types ¶
type Interface ¶
type Interface struct { IfIndex int Name string IfType IfType HardwareAddr []byte Mtu int Up bool Ipv4Addresses []*Ipv4Address Ipv6Addresses []*Ipv6Address }
func NewInterface ¶
type Ipv4Address ¶
func NewIpv4Address ¶
func NewIpv4Address(addr *netlink.Addr) *Ipv4Address
type Ipv6Address ¶
func NewIpv6Address ¶
func NewIpv6Address(addr *netlink.Addr) *Ipv6Address
type KernelStatus ¶
type KernelStatus struct {
Interfaces []*Interface
}
func NewKernelStatus ¶
func NewKernelStatus() *KernelStatus
Click to show internal directories.
Click to hide internal directories.