signal

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Overview

Package signal provides handling notifications from perf RB signal map.

Index

Constants

View Source
const (
	// SignalNatFillUp denotes potential congestion on the NAT table
	SignalNatFillUp = iota
	// SignalCTFillUp denotes potential congestion on the CT table
	SignalCTFillUp
	SignalTypeMax
)
View Source
const (
	// SignalProtoV4 denotes IPv4 protocol
	SignalProtoV4 = iota
	// SignalProtoV6 denotes IPv6 protocol
	SignalProtoV6
	SignalProtoMax
)
View Source
const (
	// SignalWakeGC triggers wake-up of the CT garbage collector
	SignalWakeGC = iota
	// SignalChanInvalid must be last one
	SignalChanInvalid
	SignalChanMax
)

Variables

This section is empty.

Functions

func MuteChannel added in v1.6.4

func MuteChannel(signal int) error

MuteChannel tells to not send any new events to a particular channel for a given signal.

func RegisterChannel added in v1.6.4

func RegisterChannel(signal int, ch chan<- SignalData) error

RegisterChannel registers a go channel for a given signal.

func SetupSignalListener added in v1.6.4

func SetupSignalListener()

SetupSignalListener bootstraps signal listener infrastructure.

func UnmuteChannel added in v1.6.4

func UnmuteChannel(signal int) error

UnmuteChannel tells to allow sending new events to a particular channel for a given signal.

Types

type SignalData added in v1.6.4

type SignalData uint32

SignalData holds actual data the BPF program sent along with the signal. Can be extended upon need for new signals.

type SignalMsg added in v1.6.4

type SignalMsg struct {
	Which uint32
	Data  SignalData
}

SignalMsg is the message we receive from BPF datapath

Jump to

Keyboard shortcuts

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