fake

package
v1.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcSys

type ProcSys struct {
	// contains filtered or unexported fields
}

func New

func New() *ProcSys

func (*ProcSys) IPv4EnableForwarding

func (p *ProcSys) IPv4EnableForwarding() error

func (*ProcSys) IPv4EnableRouteLocalNet

func (p *ProcSys) IPv4EnableRouteLocalNet(ifaceName string) error

func (*ProcSys) IPv4GetArpIgnore

func (p *ProcSys) IPv4GetArpIgnore(ifaceName string) (procsys.ArpReplyMode, error)

func (*ProcSys) IPv4GetForwarding

func (p *ProcSys) IPv4GetForwarding() (bool, error)

func (*ProcSys) IPv4GetPingGroupRange

func (p *ProcSys) IPv4GetPingGroupRange() (int, int, error)

func (*ProcSys) IPv4GetRouteLocalNet

func (p *ProcSys) IPv4GetRouteLocalNet(ifaceName string) (bool, error)

func (*ProcSys) IPv4GetUnprivilegedPortStart

func (p *ProcSys) IPv4GetUnprivilegedPortStart() (int, error)

func (*ProcSys) IPv4SetArpIgnore

func (p *ProcSys) IPv4SetArpIgnore(ifaceName string, mode procsys.ArpReplyMode) error

func (*ProcSys) IPv4SetPingGroupRange

func (p *ProcSys) IPv4SetPingGroupRange(from int, to int) error

func (*ProcSys) IPv4SetUnprivilegedPortStart

func (p *ProcSys) IPv4SetUnprivilegedPortStart(port int) error

func (*ProcSys) IPv6EnableForwarding

func (p *ProcSys) IPv6EnableForwarding() error

func (*ProcSys) IPv6GetForwarding

func (p *ProcSys) IPv6GetForwarding() (bool, error)

Jump to

Keyboard shortcuts

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