2 * Test 0008: BPF_LDX+BPF_W+BPF_LEN & BPF_MISC+BPF_TXA
8 static struct bpf_insn pc[] = {
9 BPF_STMT(BPF_LDX+BPF_W+BPF_LEN, 0),
10 BPF_STMT(BPF_MISC+BPF_TXA, 0),
11 BPF_STMT(BPF_RET+BPF_A, 0),
15 static u_char pkt[] = {
19 /* Packet length seen on wire */
20 static u_int wirelen = 0xdeadc0de;
22 /* Packet length passed on buffer */
23 static u_int buflen = 0xdeadc0de;
25 /* Invalid instruction */
26 static int invalid = 0;
28 /* Expected return value */
29 static u_int expect = 0xdeadc0de;
32 static int expect_signal = 0;