Documentation ¶
Index ¶
- Constants
- func BpfMapDeleteElem(i int, k unsafe.Pointer) int
- func BpfMapLookupAndDeleteElem(i int, k, v unsafe.Pointer) int
- func BpfMapLookupElem(i int, k, v unsafe.Pointer) int
- func BpfMapUpdateElem(i int, k, v unsafe.Pointer, flags uint64) int
- func BpfNumPossibleCpus() int
- func KtimeGet() uint64
- type XDP
- func LoadBpfFile(veth string, bindata []byte, program string, native bool, peth ...string) (*XDP, error)
- func LoadBpfFile_(bindata []byte, p1, p2 string, native bool, vetha, vethb string, eth ...string) (*XDP, error)
- func LoadBpfProgram(bindata []byte) (*XDP, error)
- func Simple(iface string, bindata []byte, program string) (*XDP, error)
- func XDPTest(bindata []byte, program string, native bool, nic string, p2, n2 string) (*XDP, error)
Constants ¶
View Source
const ( BPF_ANY = C.BPF_ANY BPF_NOEXIST = C.BPF_NOEXIST BPF_EXIST = C.BPF_EXIST )
Variables ¶
This section is empty.
Functions ¶
func BpfNumPossibleCpus ¶
func BpfNumPossibleCpus() int
Types ¶
type XDP ¶
type XDP struct {
// contains filtered or unexported fields
}
func LoadBpfFile ¶
func LoadBpfFile_ ¶
func LoadBpfProgram ¶
func (*XDP) LoadBpfFile__ ¶
Click to show internal directories.
Click to hide internal directories.