flowinfo

package
v0.0.0-...-456f7df Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BidiLookUp

func BidiLookUp(d map[string]interface{}, EnableNAT bool) (iputil.FlowInfo, bool)

func FetchNATAddress

func FetchNATAddress(f iputil.FlowInfo) (iputil.FlowInfo, bool)

func GetMD5Hash

func GetMD5Hash(text string) string

func Less

func Less(IPA net.IP, PortA uint16, IPB net.IP, PortB uint16) bool

func NewFlowInfo

func NewFlowInfo(IPA net.IP, PortA uint16, IPB net.IP, PortB uint16) iputil.FlowInfo

func NormalizeForwardingStats

func NormalizeForwardingStats(d map[string]interface{})

func SrcDstLookUp

func SrcDstLookUp(d map[string]interface{}, EnableNAT bool) (iputil.FlowInfo, bool)

func UpdateFlowInfo

func UpdateFlowInfo(d map[string]interface{}, EnableNAT bool)

Types

type NATinfo

type NATinfo struct {
	Direction  bool
	IPAddressA net.IP
	PortA      uint16
	IPAddressB net.IP
	PortB      uint16
}

Jump to

Keyboard shortcuts

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