2 * Test 0039: BPF_ALU+BPF_RSH+BPF_K
8 static struct bpf_insn pc[] = {
9 BPF_STMT(BPF_LD+BPF_IMM, 0xdeadc0de),
10 BPF_STMT(BPF_ALU+BPF_RSH+BPF_K, 13),
11 BPF_STMT(BPF_RET+BPF_A, 0),
15 static u_char pkt[] = {
19 /* Packet length seen on wire */
20 static u_int wirelen = sizeof(pkt);
22 /* Packet length passed on buffer */
23 static u_int buflen = sizeof(pkt);
25 /* Invalid instruction */
26 static int invalid = 0;
28 /* Expected return value */
29 static u_int expect = 0x6f56e;
32 static int expect_signal = 0;