Documentation ¶
Index ¶
- Constants
- func ConfigureProgram(m *libbpf.Map, iface string, globalData *libbpf.XDPGlobalData) error
- type AttachPoint
- func (ap *AttachPoint) AlreadyAttached(object string) (int, bool)
- func (ap *AttachPoint) AttachProgram() (bpf.AttachResult, error)
- func (ap *AttachPoint) Config() string
- func (ap *AttachPoint) DetachProgram() error
- func (ap *AttachPoint) FileName() string
- func (ap *AttachPoint) IsAttached() (bool, error)
- func (ap *AttachPoint) Log() *log.Entry
- func (ap *AttachPoint) PolicyAllowJumpIdx(family int) int
- func (ap *AttachPoint) PolicyDenyJumpIdx(family int) int
- func (ap *AttachPoint) ProgramID() (int, error)
- func (ap *AttachPoint) ProgramName() string
- type AttachResult
Constants ¶
View Source
const DetachedID = 0
Variables ¶
This section is empty.
Functions ¶
func ConfigureProgram ¶
Types ¶
type AttachPoint ¶
type AttachPoint struct { bpf.AttachPoint HookLayoutV4 hook.Layout HookLayoutV6 hook.Layout Modes []bpf.XDPMode }
func (*AttachPoint) AlreadyAttached ¶
func (ap *AttachPoint) AlreadyAttached(object string) (int, bool)
func (*AttachPoint) AttachProgram ¶
func (ap *AttachPoint) AttachProgram() (bpf.AttachResult, error)
func (*AttachPoint) Config ¶
func (ap *AttachPoint) Config() string
func (*AttachPoint) DetachProgram ¶
func (ap *AttachPoint) DetachProgram() error
func (*AttachPoint) FileName ¶
func (ap *AttachPoint) FileName() string
func (*AttachPoint) IsAttached ¶
func (ap *AttachPoint) IsAttached() (bool, error)
func (*AttachPoint) Log ¶
func (ap *AttachPoint) Log() *log.Entry
func (*AttachPoint) PolicyAllowJumpIdx ¶
func (ap *AttachPoint) PolicyAllowJumpIdx(family int) int
func (*AttachPoint) PolicyDenyJumpIdx ¶
func (ap *AttachPoint) PolicyDenyJumpIdx(family int) int
func (*AttachPoint) ProgramID ¶
func (ap *AttachPoint) ProgramID() (int, error)
func (*AttachPoint) ProgramName ¶
func (ap *AttachPoint) ProgramName() string
type AttachResult ¶
type AttachResult int
func (AttachResult) ProgID ¶
func (ar AttachResult) ProgID() int
Click to show internal directories.
Click to hide internal directories.