2 * Test 0078: Check boundary conditions (BPF_STX)
8 struct bpf_insn pc[] = {
9 BPF_STMT(BPF_LD+BPF_IMM, 0xdeadc0de),
10 BPF_STMT(BPF_STX, 0xffffffff),
11 BPF_STMT(BPF_MISC+BPF_TXA, 0),
12 BPF_STMT(BPF_RET+BPF_A, 0),
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 */
30 u_int expect = 0xdeadc0de;
33 #ifdef BPF_JIT_COMPILER
34 int expect_signal = SIGSEGV;
36 int expect_signal = SIGBUS;