Documentation
¶
Index ¶
Constants ¶
const ( MessageTypeUnspec = iota MessageTypeDrop MessageTypeDebug MessageTypeCapture )
Must be synchronized with <bpf/lib/common.h>
const ( DbgCaptureUnspec = iota DbgCaptureFromLxc DbgCaptureFromNetdev DbgCaptureFromOverlay DbgCaptureDelivery DbgCaptureFromLb DbgCaptureAfterV46 DbgCaptureAfterV64 DbgCaptureProxyPre DbgCaptureProxyPost )
must be in sync with <bpf/lib/dbg.h>
const ( DbgUnspec = iota DbgGeneric DbgLocalDelivery DbgEncap DbgLxcFound DbgPolicyDenied DbgCtLookup DbgCtLookupRev DbgCtMatch DbgCtCreated DbgCtCreated2 DbgIcmp6Handle DbgIcmp6Request DbgIcmp6Ns DbgIcmp6TimeExceeded DbgCtVerdict DbgDecap DbgPortMap DbgErrorRet DbgToHost DbgToStack DbgPktHash DbgLb6LookupMaster DbgLb6LookupMasterFail DbgLb6LookupSlave DbgLb6LookupSlaveSuccess DbgLb6ReverseNatLookup DbgLb6ReverseNat DbgLb4LookupMaster DbgLb4LookupMasterFail DbgLb4LookupSlave DbgLb4LookupSlaveSuccess DbgLb4ReverseNatLookup DbgLb4ReverseNat DbgLb4LoopbackSnat DbgLb4LoopbackSnatRev DbgCtLookup4 DbgRRSlaveSel DbgRevProxyLookup DbgRevProxyFound DbgRevProxyUpdate DbgL4Policy )
must be in sync with <bpf/lib/dbg.h>
const ( CtNew uint32 = iota CtEstablished CtReply CtRelated )
must be in sync with <bpf/lib/conntrack.h>
const (
// DebugCaptureLen is the amount of packet data in a packet capture message
DebugCaptureLen = 20
)
const (
// DropNotifyLen is the amount of packet data provided in a drop notification
DropNotifyLen = 32
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DebugCapture ¶
type DebugCapture struct {
Type uint8
SubType uint8
Source uint16
Hash uint32
Len uint32
OrigLen uint32
Arg1 uint32
}
DebugCapture is the metadata sent along with a captured packet frame
type DebugMsg ¶
type DebugMsg struct {
Type uint8
SubType uint8
Source uint16
Hash uint32
Arg1 uint32
Arg2 uint32
Arg3 uint32
}
DebugMsg is the message format of the debug message found in the BPF ring buffer