Back to home page

OSCL-LXR

 
 

    


0001 {
0002     "empty prog",
0003     .insns = {
0004     },
0005     .errstr = "last insn is not an exit or jmp",
0006     .result = REJECT,
0007 },
0008 {
0009     "only exit insn",
0010     .insns = {
0011     BPF_EXIT_INSN(),
0012     },
0013     .errstr = "R0 !read_ok",
0014     .result = REJECT,
0015 },
0016 {
0017     "no bpf_exit",
0018     .insns = {
0019     BPF_ALU64_REG(BPF_MOV, BPF_REG_0, BPF_REG_2),
0020     },
0021     .errstr = "not an exit",
0022     .result = REJECT,
0023 },