util

package
v0.0.0-...-c378019 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcSrcDst

func CalcSrcDst(b []byte) (srcIP, dstIP net.IP, err error)

CalcSrcDst counts inner packet IPv4 IPs with bytes due to missing ICMP 3/4 parsing library

func GetDefaultInterface

func GetDefaultInterface(cfg *config.Config, log logr.Logger) error

GetDefaultInterface gets the interface with the default route

func GetInterfaceIP

func GetInterfaceIP(name string, log logr.Logger) (string, error)

func GetReplicationInterface

func GetReplicationInterface(cfg *config.Config, log logr.Logger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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