summaryrefslogtreecommitdiffstats
path: root/tools/regression/bpf/bpf_filter/tests/test0079.h
blob: 78169e034ba961e3267c87776378f8bcdc50007c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*-
 * Test 0079:	An empty filter program.
 *
 * $FreeBSD$
 */

/* BPF program */
struct bpf_insn pc[] = {
};

/* Packet */
u_char	pkt[] = {
	0x00,
};

/* Packet length seen on wire */
u_int	wirelen =	sizeof(pkt);

/* Packet length passed on buffer */
u_int	buflen =	sizeof(pkt);

/* Invalid instruction */
int	invalid =	0;

/* Expected return value */
u_int	expect =	(u_int)-1;

/* Expeced signal */
int	expect_signal =	0;
OpenPOWER on IntegriCloud