2 * Test 0001: Catch illegal instruction.
8 static struct bpf_insn pc[] = {
10 BPF_STMT(BPF_RET+BPF_A, 0),
14 static u_char pkt[] = {
18 /* Packet length seen on wire */
19 static u_int wirelen = sizeof(pkt);
21 /* Packet length passed on buffer */
22 static u_int buflen = sizeof(pkt);
24 /* Invalid instruction */
25 static int invalid = 1;
27 /* Expected return value */
28 static u_int expect = 0;
31 static int expect_signal = SIGABRT;