Documentation
¶
Index ¶
Constants ¶
View Source
const ADKProofLength = 4 // bytes
Variables ¶
View Source
var ErrNotSupported = errors.New("XDP support is not supported")
View Source
var NativeOrder = binary.LittleEndian
Functions ¶
func IsSupported ¶
func IsSupported() bool
Types ¶
type ADK ¶
type ADK interface {
StatsProvider
Start() error
Stop() error
}
func NewADK ¶
func NewADK(s ADKSettings, proof ADKProofGenerator) (ADK, error)
type ADKProofGenerator ¶
type ADKSettings ¶
type OSPAStatID ¶
type OSPAStatID uint8
const ( OSPAStatIDNotOpenSPAPacket OSPAStatID = iota OSPAStatIDADKProofInvalid OSPAStatIDADKProofValid )
func (OSPAStatID) Uint32 ¶
func (o OSPAStatID) Uint32() uint32
type Stats ¶
type Stats struct {
XDPAborted StatsRecord
XDPDrop StatsRecord
XDPPass StatsRecord
XDPTX StatsRecord
XDPRedirect StatsRecord
OpenSPANot uint64
OpenSPAADKProofInvalid uint64
OpenSPAADKProofValid uint64
}
type StatsProvider ¶
type StatsRecord ¶
Click to show internal directories.
Click to hide internal directories.