2 * Test 0002: BPF_RET+BPF_K
8 static struct bpf_insn pc[] = {
9 BPF_STMT(BPF_RET+BPF_K, 0xdeadc0de),
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 = 0;
26 /* Expected return value */
27 static u_int expect = 0xdeadc0de;
30 static int expect_signal = 0;