2 * Test 0083: Check that the last instruction is BPF_RET.
8 static struct bpf_insn pc[] = {
9 BPF_STMT(BPF_LD|BPF_IMM, 0),
13 static u_char pkt[] = {
17 /* Packet length seen on wire */
18 static u_int wirelen = sizeof(pkt);
20 /* Packet length passed on buffer */
21 static u_int buflen = sizeof(pkt);
23 /* Invalid instruction */
24 static int invalid = 1;
26 /* Expected return value */
27 static u_int expect = 0;
30 #ifdef BPF_JIT_COMPILER
31 static int expect_signal = SIGSEGV;
33 static int expect_signal = SIGABRT;