Documentation
¶
Index ¶
- Variables
- func Add(ctx context.Context, ifaceName string, addr netip.Prefix) error
- func EnableIPForwarding() error
- func Remove(ctx context.Context, ifaceName string, addr netip.Prefix) error
- func SetDefaultIPv4Gateway(ctx context.Context, gateway Gateway) error
- func SetDefaultIPv6Gateway(ctx context.Context, gateway Gateway) error
- type Gateway
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRouteExists = errors.New("route already exists")
ErrRouteExists is returned when a route already exists.
Functions ¶
func SetDefaultIPv4Gateway ¶
SetDefaultIPv4Gateway sets the default IPv4 gateway for the current system.
Types ¶
Click to show internal directories.
Click to hide internal directories.