Documentation
¶
Index ¶
- Constants
- func SetArpReply(ipAddress net.IP, macAddress net.HardwareAddr, action string) error
- func SetDnatForArpReplies(interfaceName string, action string) error
- func SetDnatForIPAddress(interfaceName string, ipAddress net.IP, macAddress net.HardwareAddr, ...) error
- func SetSnatForInterface(interfaceName string, macAddress net.HardwareAddr, action string) error
- func SetVepaMode(bridgeName string, downstreamIfNamePrefix string, upstreamMacAddress string, ...) error
Constants ¶
View Source
const ( // Ebtables actions. Append = "-A" Delete = "-D" )
Variables ¶
This section is empty.
Functions ¶
func SetArpReply ¶
SetArpReply sets an ARP reply rule for the given target IP address and MAC address.
func SetDnatForArpReplies ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.