sockops

package
v0.0.0-...-c34bea4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkmsgDisable

func SkmsgDisable()

SkmsgDisable "unloads" the SK_MSG program. This simply deletes the file associated with the program.

func SkmsgEnable

func SkmsgEnable() error

SkmsgEnable will compile and attach the SK_MSG programs to the sockmap. After this all sockets added to the cilium_sock_ops will have sendmsg/sendfile calls running through BPF program.

func SockmapDisable

func SockmapDisable()

SockmapDisable will detach any sockmap programs from cgroups then "unload" all the programs and maps associated with it. Here "unload" just means deleting the file associated with the map.

func SockmapEnable

func SockmapEnable() error

SockmapEnable will compile sockops programs and attach the sockops programs to the cgroup. After this all TCP connect events will be filtered by a BPF sockops program.

Types

This section is empty.

Jump to

Keyboard shortcuts

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