2 * Test 0055: Check boundary conditions (BPF_LD+BPF_H+BPF_IND)
8 struct bpf_insn pc[] = {
9 BPF_STMT(BPF_LD+BPF_IMM, 0xdeadc0de),
10 BPF_STMT(BPF_LDX+BPF_IMM, 4),
11 BPF_STMT(BPF_LD+BPF_H+BPF_IND, 1),
12 BPF_STMT(BPF_RET+BPF_A, 0),
17 0x01, 0x23, 0x45, 0x67,
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 int expect_signal = 0;