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 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.
Click to show internal directories.
Click to hide internal directories.