2 * Test 0012: BPF_LDX+BPF_MSH+BPF_B
8 struct bpf_insn pc[] = {
9 BPF_STMT(BPF_LDX+BPF_MSH+BPF_B, 1),
10 BPF_STMT(BPF_MISC+BPF_TXA, 0),
11 BPF_STMT(BPF_RET+BPF_A, 0),
19 /* Packet length seen on wire */
20 u_int wirelen = sizeof(pkt);
22 /* Packet length passed on buffer */
23 u_int buflen = sizeof(pkt);
25 /* Invalid instruction */
28 /* Expected return value */
29 u_int expect = (0x23 & 0xf) << 2;
32 int expect_signal = 0;