Documentation ¶
Index ¶
- Constants
- func GetDstIP(m *connection.Mechanism) (string, error)
- func GetMTUOverhead(m *connection.Mechanism) (uint32, error)
- func GetSrcIP(m *connection.Mechanism) (string, error)
- func SetMTUOverhead(m *connection.Mechanism, mtu uint32) error
- func SetMTUOverheadParameter(parameters map[string]string, mtu uint32) error
Constants ¶
View Source
const ( SrcIP = "src_ip" DstIP = "dst_ip" // SrcOriginalIP - original src IP SrcOriginalIP = "orig_src_ip" // DstExternalIP - external destination ip DstExternalIP = "ext_src_ip" // NetNsInodeKey - netns inode mechanism property key NetNsInodeKey = "netnsInode" // Workspace - NSM workspace location mechanism property key Workspace = "workspace" // InterfaceNameKey - interface name mechanism property key InterfaceNameKey = "name" // InterfaceDescriptionKey - interface description mechanism property key InterfaceDescriptionKey = "description" // MTUOverhead - MTU overhead of a mechanism MTUOverhead = "mtu_overhead" )
Variables ¶
This section is empty.
Functions ¶
func GetDstIP ¶
func GetDstIP(m *connection.Mechanism) (string, error)
DstIP returns the destination IP parameter of the Mechanism
func GetMTUOverhead ¶
func GetMTUOverhead(m *connection.Mechanism) (uint32, error)
GetMTUOverhead returns the MTU overhead value from the mechanism
func GetSrcIP ¶
func GetSrcIP(m *connection.Mechanism) (string, error)
SrcIP returns the source IP parameter of the Mechanism
func SetMTUOverhead ¶
func SetMTUOverhead(m *connection.Mechanism, mtu uint32) error
SetMTUOverhead sets the MTU overhead parameter in the mechanism
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.