Documentation ¶
Index ¶
- 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 NextIP(ip net.IP) net.IP
- func ParseCIDR(s string) (*net.IPNet, error)
- func PrevIP(ip net.IP) net.IP
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultRoute ¶
AddDefaultRoute sets the default route on the given gateway.
func AddHostRoute ¶
AddHostRoute adds a host-scoped route to a device.
func DelLinkByName ¶
DelLinkByName removes an interface link.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.