ebtables

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Ebtables actions.
	Append = "-A"
	Delete = "-D"
)

Variables

This section is empty.

Functions

func SetArpReply

func SetArpReply(ipAddress net.IP, macAddress net.HardwareAddr, action string) error

SetArpReply sets an ARP reply rule for the given target IP address and MAC address.

func SetDnatForArpReplies

func SetDnatForArpReplies(interfaceName string, action string) error

SetDnatForArpReplies sets a MAC DNAT rule for ARP replies received on an interface.

func SetDnatForIPAddress

func SetDnatForIPAddress(interfaceName string, ipAddress net.IP, macAddress net.HardwareAddr, action string) error

SetDnatForIPAddress sets a MAC DNAT rule for an IP address.

func SetSnatForInterface

func SetSnatForInterface(interfaceName string, macAddress net.HardwareAddr, action string) error

SetSnatForInterface sets a MAC SNAT rule for an interface.

func SetVepaMode

func SetVepaMode(bridgeName string, downstreamIfNamePrefix string, upstreamMacAddress string, action string) error

SetVepaMode sets the VEPA mode for a bridge and its ports.

Types

This section is empty.

Jump to

Keyboard shortcuts

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