resolver

package
v0.0.0-...-0b57c3c Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GatherPidsTCPMap

func GatherPidsTCPMap(procfs string, isCgroupV2 bool) (tcpMap map[uint64]bool, err error)

func ResolveSymlinkWithoutValidation

func ResolveSymlinkWithoutValidation(path string) (string, error)

Types

type ConnectionCb

type ConnectionCb func(pidFd uint64, isClient bool) error

type IpSocketLine

type IpSocketLine struct {
	Sl        uint64
	LocalAddr net.IP
	LocalPort uint64
	RemAddr   net.IP
	RemPort   uint64
	St        uint64
	TxQueue   uint64
	RxQueue   uint64
	UID       uint64
	Inode     uint64
}

type Resolver

type Resolver interface {
	ResolveSourceTCP(cInfo *api.ConnectionInfo) *api.Resolution
	ResolveDestTCP(cInfo *api.ConnectionInfo) *api.Resolution
	ResolveSourceUDP(cInfo *api.ConnectionInfo) *api.Resolution
	ResolveDestUDP(cInfo *api.ConnectionInfo) *api.Resolution
}

func NewResolver

func NewResolver(procfs string) Resolver

type ResolverImpl

type ResolverImpl struct {
	// contains filtered or unexported fields
}

func (*ResolverImpl) ResolveDestTCP

func (r *ResolverImpl) ResolveDestTCP(cInfo *api.ConnectionInfo) *api.Resolution

func (*ResolverImpl) ResolveDestUDP

func (r *ResolverImpl) ResolveDestUDP(cInfo *api.ConnectionInfo) *api.Resolution

func (*ResolverImpl) ResolveSourceTCP

func (r *ResolverImpl) ResolveSourceTCP(cInfo *api.ConnectionInfo) *api.Resolution

func (*ResolverImpl) ResolveSourceUDP

func (r *ResolverImpl) ResolveSourceUDP(cInfo *api.ConnectionInfo) *api.Resolution

Jump to

Keyboard shortcuts

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