2 * Test 0082: Check conditional jump ranges.
8 struct bpf_insn pc[] = {
9 BPF_STMT(BPF_LD+BPF_IMM, 0),
10 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 0, 1, 2),
11 BPF_STMT(BPF_LD+BPF_IMM, 0xdeadc0de),
12 BPF_STMT(BPF_RET+BPF_A, 0),
20 /* Packet length seen on wire */
21 u_int wirelen = sizeof(pkt);
23 /* Packet length passed on buffer */
24 u_int buflen = sizeof(pkt);
26 /* Invalid instruction */
29 /* Expected return value */
33 #ifdef BPF_JIT_COMPILER
34 int expect_signal = SIGSEGV;
36 int expect_signal = SIGABRT;