Documentation ¶
Index ¶
- Constants
- type CmdSuite
- func (c CmdSuite) AddBridgeInterface(interfaceName string) (string, error)
- func (c CmdSuite) AddInterfaceToBridge(bridgeInterfaceName string, interfaceName string) (string, error)
- func (c CmdSuite) AddNetflowMonitorToBridge(bridgeInterfaceName string, collectorIp string, collectorPort string, ...) error
- func (c CmdSuite) AddRerouteTrafficToGateway(gatewayIp string) (string, error)
- func (c CmdSuite) AddRouteToIp(destIp string, gatewayIp string) (string, error)
- func (c CmdSuite) AllowIpForward(on bool) (string, error)
- func (c CmdSuite) AllowTrafficForwardingOnInterface(inputDevice string, outputDevice string) (string, error)
- func (c CmdSuite) ConfigureBridgeInterface(interfaceName string, ipAddr string, netmask string) (string, error)
- func (c CmdSuite) DelRouteToIp(destIp string) (string, error)
- func (c CmdSuite) GetMainInterfaceIpAddress() (string, error)
- func (c CmdSuite) GetOwnGatewayIpAddress() (string, error)
- func (c CmdSuite) RemoveRerouteTrafficToGateway(gatewayIp string) (string, error)
- func (c CmdSuite) UpBridgeInterface(interfaceName string) (string, error)
Constants ¶
View Source
const ( GREP_CMD = "/usr/bin/grep" AWK_CMD = "/usr/bin/awk" CUT_CMD = "/usr/bin/cut" IP_CMD = "/usr/sbin/ip" IFCONFIG_CMD = "/usr/sbin/ifconfig" ROUTE_CMD = "/usr/sbin/route" NETSTAT_CMD = "/usr/bin/netstat" SOFTFLOWD_CMD = "/usr/sbin/softflowd" NFCAPD_CMD = "/usr/bin/nfcapd" BRCTL_CMD = "/usr/sbin/brctl" SYSCTL_CMD = "/usr/sbin/sysctl" IPTABLES_CMD = "/usr/sbin/iptables" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdSuite ¶
type CmdSuite string
func (CmdSuite) AddBridgeInterface ¶
func (CmdSuite) AddInterfaceToBridge ¶
func (CmdSuite) AddNetflowMonitorToBridge ¶
func (CmdSuite) AddRerouteTrafficToGateway ¶
func (CmdSuite) AddRouteToIp ¶
func (CmdSuite) AllowTrafficForwardingOnInterface ¶
func (CmdSuite) ConfigureBridgeInterface ¶
func (CmdSuite) GetMainInterfaceIpAddress ¶
func (CmdSuite) GetOwnGatewayIpAddress ¶
func (CmdSuite) RemoveRerouteTrafficToGateway ¶
Click to show internal directories.
Click to hide internal directories.