socketlb

package
v1.14.7 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Subsystem = "socketlb"

	Connect4     = "cil_sock4_connect"
	SendMsg4     = "cil_sock4_sendmsg"
	RecvMsg4     = "cil_sock4_recvmsg"
	GetPeerName4 = "cil_sock4_getpeername"
	PostBind4    = "cil_sock4_post_bind"
	PreBind4     = "cil_sock4_pre_bind"
	Connect6     = "cil_sock6_connect"
	SendMsg6     = "cil_sock6_sendmsg"
	RecvMsg6     = "cil_sock6_recvmsg"
	GetPeerName6 = "cil_sock6_getpeername"
	PostBind6    = "cil_sock6_post_bind"
	PreBind6     = "cil_sock6_pre_bind"
)

Variables

This section is empty.

Functions

func Disable

func Disable() error

Disable detaches all bpf programs for socketlb.

func Enable

func Enable() (err error)

Enable attaches necessary bpf programs for socketlb based on ciliums config.

On restart, Enable can also detach unnecessary programs if specific configuration options have changed. It expects bpf_sock.c to be compiled previously, so that bpf_sock.o is present in the Runtime dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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