Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEbpfManagerInstance ¶
GetEbpfManagerInstance return a static eBpf Manager instance
Types ¶
type GeneralManager ¶
type GeneralManager struct {
// contains filtered or unexported fields
}
GeneralManager is used to load multiple eBPF programs with a custom check (if then) done in prog.c The manager simply adds a feature (byte) of each program to a map that is shared between the userspace and kernel. When packet arrives, the C code checks for each feature (if it is set) and executes each enabled program (e.g., dns_fwd.c and wg_proxy.c).
func (*GeneralManager) FreeDNSFwd ¶
func (tf *GeneralManager) FreeDNSFwd() error
func (*GeneralManager) FreeWGProxy ¶
func (tf *GeneralManager) FreeWGProxy() error
func (*GeneralManager) LoadDNSFwd ¶
func (tf *GeneralManager) LoadDNSFwd(ip string, dnsPort int) error
func (*GeneralManager) LoadWgProxy ¶
func (tf *GeneralManager) LoadWgProxy(proxyPort, wgPort int) error
Click to show internal directories.
Click to hide internal directories.