tracer

package
v0.0.0-...-932af12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

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

func NewTracer

func NewTracer(ports []int) (*Tracer, error)

NewTracer starts a new eBPF tracer, which loads ELF file and reads it

func (*Tracer) RegisterIface

func (t *Tracer) RegisterIface(ifindex int, sockFd int) (err error)

* RegisterIface registers a new interface on every run of the program

  • it creates new eBPF collection
  • initialize and populate proxy_ports and proxy_sock map
  • get's the eBPF program
  • creates a link between network ns and eBPF program

*

Jump to

Keyboard shortcuts

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