netutil

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectServer added in v1.4.1

func ConnectServer(config config.Config) net.Conn

func ExecCmd added in v1.5.6

func ExecCmd(c string, args ...string) string

func GetDstKey added in v1.5.7

func GetDstKey(packet []byte) string

func GetIPv4Dst added in v1.5.7

func GetIPv4Dst(packet []byte) net.IP

func GetIPv4Src added in v1.5.7

func GetIPv4Src(packet []byte) net.IP

func GetIPv6Dst added in v1.5.7

func GetIPv6Dst(packet []byte) net.IP

func GetIPv6Src added in v1.5.7

func GetIPv6Src(packet []byte) net.IP

func GetInterface added in v1.5.7

func GetInterface() (name string)

func GetLocalGatewayOnLinux added in v1.5.7

func GetLocalGatewayOnLinux() string

func GetLocalGatewayOnMac added in v1.5.7

func GetLocalGatewayOnMac() string

func GetSrcKey added in v1.5.7

func GetSrcKey(packet []byte) string

func IsIPv4 added in v1.5.1

func IsIPv4(packet []byte) bool

func IsIPv6 added in v1.5.1

func IsIPv6(packet []byte) bool

func LookupIP added in v1.4.2

func LookupIP(domain string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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