Versions in this module Expand all Collapse all v0 v0.3.0 Feb 5, 2015 Changes in this version + func NextIP(ip net.IP) net.IP + func PrevIP(ip net.IP) net.IP v0.2.0 Jan 23, 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 LoadNet(path string, n interface{}) error + func ParseCIDR(s string) (*net.IPNet, error) + func SetNS(f *os.File, flags uintptr) error + func SetupVeth(entropy, contVethName string, ipn *net.IPNet, hostNS *os.File) (hostVeth, contVeth netlink.Link, err error) + func WithNetNSPath(nspath string, f func(*os.File) error) error + type Net struct + Filename string + IPAlloc struct{ ... } + Name string + Routes []string + Type string