Versions in this module Expand all Collapse all v0 v0.1.0 Oct 18, 2019 v0.0.1 Oct 17, 2019 Changes in this version + func EnableForwardingByIndex(idx int) (err error) + func EnableForwardingByName(name string) error + func GetDefaultGatewayIfaceIndex() (ifaceIdx int, err error) + func GetDefaultGatewayIfaceName() (string, error) + type Ipv4Interface struct + DefaultGatewayAddress string + Description string + DhcpEnabled bool + Idx int + IpAddress string + IpMask string + Name string + func GetInterfaceByIP(ipAddr string) (Ipv4Interface, error) + func GetInterfaceByIndex(idx int) (Ipv4Interface, error) + func GetInterfaceByName(name string) (Ipv4Interface, error) + func GetInterfaces() (ifaces []Ipv4Interface, err error) + func (i *Ipv4Interface) GetSubnet() *net.IPNet + func (i Ipv4Interface) String() string