common

package
v1.0.13-vanity Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

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

func SetMTUOverheadParameter

func SetMTUOverheadParameter(parameters map[string]string, mtu uint32) error

SetMTUOverhead sets the MTU overhead parameter in the parameter map

Types

This section is empty.

Jump to

Keyboard shortcuts

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