Versions in this module Expand all Collapse all v0 v0.1.0 Jul 22, 2015 Changes in this version + func AddDefaultRoute(gw net.IP, dev netlink.Link) error + func AddHostRoute(ipn *net.IPNet, gw net.IP, dev netlink.Link) error + func AddRoute(ipn *net.IPNet, gw net.IP, dev netlink.Link) error + func DelLinkByName(ifName string) error + func DelLinkByNameAddr(ifName string, family int) (*net.IPNet, error) + func EnableIP4Forward() error + func EnableIP6Forward() error + func Network(ipn *net.IPNet) *net.IPNet + func NextIP(ip net.IP) net.IP + func ParseCIDR(s string) (*net.IPNet, error) + func PrevIP(ip net.IP) net.IP + func RandomVethName() (string, error) + func SetupIPMasq(ipn *net.IPNet, chain string) error + func SetupVeth(contVethName string, mtu int, hostNS *os.File) (hostVeth, contVeth netlink.Link, err error) + func TeardownIPMasq(ipn *net.IPNet, chain string) error + type IPNet net.IPNet + func (n *IPNet) UnmarshalJSON(data []byte) error + func (n IPNet) MarshalJSON() ([]byte, error)