Documentation
¶
Overview ¶
Package filter contains the Retina filter plugin. It utilizes eBPF to filter packets based on IP addresses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IEbpfMap ¶
type IEbpfMap interface {
BatchUpdate(keys, values interface{}, opts *ebpf.BatchOptions) (int, error)
BatchDelete(keys interface{}, opts *ebpf.BatchOptions) (int, error)
Put(key, value interface{}) error
Delete(key interface{}) error
Close() error
}
Interface for eBPF map. Added for UTs.
type IFilterMap ¶
A thin wrapper around the eBPF map that allows adding and deleting IPv4 addresses. Adding this separately here because: - C code uses the lib for generation/compilation - Plugins import retina_filter.c to use lookup function
Click to show internal directories.
Click to hide internal directories.