local

package
v0.20.5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package local provide functions for setting routes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMacIface

func GetMacIface(ipstring string) (string, error)

GetMacIface - gets mac interface

func SetIPForwarding

func SetIPForwarding() error

SetIPForwarding - Sets IP forwarding if it's mac or linux

func SetIPForwardingFreeBSD

func SetIPForwardingFreeBSD() error

SetIPForwardingFreeBSD - sets the ipforwarding for freebsd

func SetIPForwardingMac

func SetIPForwardingMac() error

SetIPForwardingMac - sets ip forwarding for mac

func SetIPForwardingUnix

func SetIPForwardingUnix() error

SetIPForwardingUnix - sets the ipforwarding for linux

func SetIPForwardingWindows added in v0.18.7

func SetIPForwardingWindows() error

SetIPForwardingWindows - sets ip forwarding for windows

Types

This section is empty.

Jump to

Keyboard shortcuts

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