libpktlab - The PacketLab Utility Library
Public Attributes | List of all members
pktlab_ebpf_instr Struct Reference

Structure for encoding/decoding pktlab eBPF programs in cdata & ncap msg. Represents one eBPF instruction. More...

#include <pktlab.h>

Public Attributes

uint8_t opcode
 
uint8_t dstreg:4
 
uint8_t srcreg:4
 
uint16_t offset
 
uint32_t imm
 

Detailed Description

Structure for encoding/decoding pktlab eBPF programs in cdata & ncap msg. Represents one eBPF instruction.

Member Data Documentation

◆ dstreg

uint8_t pktlab_ebpf_instr::dstreg

eBPF instr destination register

◆ imm

uint32_t pktlab_ebpf_instr::imm

eBPF instr immediate constant

◆ offset

uint16_t pktlab_ebpf_instr::offset

eBPF instr offset

◆ opcode

uint8_t pktlab_ebpf_instr::opcode

eBPF instr opcode

◆ srcreg

uint8_t pktlab_ebpf_instr::srcreg

eBPF instr source register


The documentation for this struct was generated from the following file: