vxlan

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Mechanism string
	MECHANISM = "VXLAN"

	// Mechanism parameters
	// SrcIP - source IP
	SrcIP = common.SrcIP
	// DstIP - destitiona IP
	DstIP = common.DstIP
	// SrcOriginalIP - original src IP
	SrcOriginalIP = common.SrcOriginalIP
	// DstExternalIP - external destination ip
	DstExternalIP = common.DstExternalIP
	// VNI - vni
	VNI = "vni"

	// MTUOverhead - maximum transmission unit overhead for VXLAN encapsulation
	MTUOverhead = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mechanism

type Mechanism interface {
	// SrcIP -  src ip
	SrcIP() (string, error)
	// DstIP - dst ip
	DstIP() (string, error)
	// VNI - vni
	VNI() (uint32, error)
}

Mechanism - a vxlan mechanism utility wrapper

func ToMechanism

func ToMechanism(m *connection.Mechanism) Mechanism

ToMechanism - convert unified mechanism to useful wrapper

Jump to

Keyboard shortcuts

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