package
Version:
v0.15.1
Opens a new window with list of versions in this module.
Published: Oct 29, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ErrRouteExists is returned when a route already exists.
Add adds a route to the interface with the given name.
func EnableIPForwarding() error
EnableIPForwarding enables IP forwarding.
Remove removes a route from the interface with the given name.
SetDefaultIPv4Gateway sets the default IPv4 gateway for the current system.
Gateway represents a gateway route. It contains the name and IP address
of a gateway interface.
GetDefaultGateway returns the default gateway of the current system.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.