Documentation ¶
Index ¶
- type ArpReplyMode
- type ProcSys
- func (p ProcSys) IPv4EnableForwarding() error
- func (p ProcSys) IPv4EnableRouteLocalNet(linkName string) error
- func (p ProcSys) IPv4GetArpIgnore(iface string) (ArpReplyMode, error)
- func (p ProcSys) IPv4GetForwarding() (bool, error)
- func (p ProcSys) IPv4GetPingGroupRange() (int, int, error)
- func (p ProcSys) IPv4GetRouteLocalNet(linkName string) (bool, error)
- func (p ProcSys) IPv4GetUnprivilegedPortStart() (int, error)
- func (p ProcSys) IPv4SetArpIgnore(iface string, replyMode ArpReplyMode) error
- func (p ProcSys) IPv4SetPingGroupRange(from, to int) error
- func (p ProcSys) IPv4SetUnprivilegedPortStart(port int) error
- func (p ProcSys) IPv6EnableForwarding() error
- func (p ProcSys) IPv6GetForwarding() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArpReplyMode ¶
type ArpReplyMode int
const ( ARPReplyMode0 ArpReplyMode = iota ARPReplyMode1 ARPReplyMode2 ARPReplyMode3 ARPReplyMode8 = 8 )
arp_ignore - INTEGER
Define different modes for sending replies in response to received ARP requests that resolve local target IP addresses: 0 - (default): reply for any local target IP address, configured on any interface 1 - reply only if the target IP address is local address configured on the incoming interface 2 - reply only if the target IP address is local address configured on the incoming interface and both with the sender's IP address are part from same subnet on this interface 3 - do not reply for local addresses configured with scope host, only resolutions for global and link addresses are replied 4-7 - reserved 8 - do not reply for all local addresses The max value from conf/{all,interface}/arp_ignore is used when ARP request is received on the {interface}
Ref: https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
type ProcSys ¶
type ProcSys struct{}
func (ProcSys) IPv4EnableForwarding ¶
func (ProcSys) IPv4EnableRouteLocalNet ¶
func (ProcSys) IPv4GetArpIgnore ¶
func (p ProcSys) IPv4GetArpIgnore(iface string) (ArpReplyMode, error)
func (ProcSys) IPv4GetForwarding ¶
func (ProcSys) IPv4GetRouteLocalNet ¶
func (ProcSys) IPv4GetUnprivilegedPortStart ¶
func (ProcSys) IPv4SetArpIgnore ¶
func (p ProcSys) IPv4SetArpIgnore(iface string, replyMode ArpReplyMode) error
func (ProcSys) IPv4SetPingGroupRange ¶
func (ProcSys) IPv4SetUnprivilegedPortStart ¶
func (ProcSys) IPv6EnableForwarding ¶
func (ProcSys) IPv6GetForwarding ¶
Click to show internal directories.
Click to hide internal directories.