1 /*-
2  * Test 0083:	Check that the last instruction is BPF_RET.
3  */
4 
5 /* BPF program */
6 static struct bpf_insn	pc[] = {
7 	BPF_STMT(BPF_LD|BPF_IMM, 0),
8 };
9 
10 /* Packet */
11 static u_char	pkt[] = {
12 	0x00,
13 };
14 
15 /* Packet length seen on wire */
16 static u_int	wirelen =	sizeof(pkt);
17 
18 /* Packet length passed on buffer */
19 static u_int	buflen =	sizeof(pkt);
20 
21 /* Invalid instruction */
22 static int	invalid =	1;
23 
24 /* Expected return value */
25 static u_int	expect =	0;
26 
27 /* Expected signal */
28 #ifdef BPF_JIT_COMPILER
29 static int	expect_signal =	SIGSEGV;
30 #else
31 static int	expect_signal =	SIGABRT;
32 #endif
33