# Functions
AddDefaultRoute sets the default route on the given gateway.
AddHostRoute adds a host-scoped route to a device.
AddRoute adds a universally-scoped route to a device.
Cmp compares two IPs, returning the usual ordering: a < b : -1 a == b : 0 a > b : 1 incomparable : -2.
DelLinkByName removes an interface link.
DelLinkByNameAddr remove an interface and returns its addresses.
EnableForward will enable forwarding for all configured address families.
GCIPMasqForNetwork garbage collects stale IPMasq entries for network.
GetVethPeerIfindex returns the veth link object, the peer ifindex of the veth, or an error.
IsIPNetZero check if the IPNet is "0.0.0.0/0" or "::/0" This is needed as go-netlink replaces nil Dst with a '0' IPNet since https://github.com/vishvananda/netlink/commit/acdc658b8613655ddb69f978e9fb4cf413e2b830.
Network masks off the host portion of the IP, if IPNet is invalid, return nil.
NextIP returns IP incremented by 1, if IP is invalid, return nil.
ParseIP will parse string s as an IP, and return it.
PrevIP returns IP decremented by 1, if IP is invalid, return nil.
RandomVethName returns string "veth" with random prefix (hashed from entropy).
SettleAddresses waits for all addresses on a link to leave tentative state.
SetupIPMasq installs iptables rules to masquerade traffic coming from ip of ipn and going outside of ipn.
SetupIPMasqForNetworks installs rules to masquerade traffic coming from ips of ipns and going outside of ipns, using a chain name based on network, ifname, and containerID.
SetupVeth sets up a pair of virtual ethernet devices.
SetupVethWithName sets up a pair of virtual ethernet devices.
TeardownIPMasq undoes the effects of SetupIPMasq.
TeardownIPMasqForNetworks undoes the effects of SetupIPMasqForNetworks.