route

package
v0.1.65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDeviceRoute

func AddDeviceRoute(iface string, cidrIp *ip_util.CidrIp, network *net.IPNet) error

func AddDeviceRouteViaGw

func AddDeviceRouteViaGw(iface string, gw net.IP, network *net.IPNet) error

func AddDeviceRouteWithoutGw

func AddDeviceRouteWithoutGw(iface string, network *net.IPNet) error

func AddGwRoute

func AddGwRoute(gw net.IP, ipNet *net.IPNet) error

func AddRoute

func AddRoute(network, gw, iface string) (err error)

func DelDeviceRoute

func DelDeviceRoute(iface string, cidrIp *ip_util.CidrIp, network *net.IPNet) error

func DelDeviceRouteViaGw

func DelDeviceRouteViaGw(iface string, gw net.IP, network *net.IPNet) error

func DelDeviceRouteWithoutGw

func DelDeviceRouteWithoutGw(iface string, network *net.IPNet) error

func DelGwRoute

func DelGwRoute(gw net.IP, ipNet *net.IPNet) error

func DelRoute

func DelRoute(network, gw, iface string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL