1/*-
2 * Test 0090:	Divide by 0 (BPF_ALU+BPF_DIV+BPF_K)
3 */
4
5/* BPF program */
6static struct bpf_insn	pc[] = {
7	BPF_STMT(BPF_LD+BPF_IMM, 0xa7c2da06),
8	BPF_STMT(BPF_ALU+BPF_DIV+BPF_K, 0),
9	BPF_STMT(BPF_RET+BPF_A, 0),
10};
11
12/* Packet */
13static u_char	pkt[] = {
14	0x00,
15};
16
17/* Packet length seen on wire */
18static u_int	wirelen =	sizeof(pkt);
19
20/* Packet length passed on buffer */
21static u_int	buflen =	sizeof(pkt);
22
23/* Invalid instruction */
24static int	invalid =	1;
25
26/* Expected return value */
27static u_int	expect =	0;
28
29/* Expected signal */
30static int	expect_signal =	SIGFPE;
31