]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/regression/bpf/bpf_filter/tests/test0079.h
Merge vendor lld/docs directory from r337145
[FreeBSD/FreeBSD.git] / tools / regression / bpf / bpf_filter / tests / test0079.h
1 /*-
2  * Test 0079:   An empty filter program.
3  *
4  * $FreeBSD$
5  */
6
7 /* BPF program */
8 static struct bpf_insn  pc[] = {
9 };
10
11 /* Packet */
12 static u_char   pkt[] = {
13         0x00,
14 };
15
16 /* Packet length seen on wire */
17 static u_int    wirelen =       sizeof(pkt);
18
19 /* Packet length passed on buffer */
20 static u_int    buflen =        sizeof(pkt);
21
22 /* Invalid instruction */
23 static int      invalid =       0;
24
25 /* Expected return value */
26 static u_int    expect =        (u_int)-1;
27
28 /* Expected signal */
29 static int      expect_signal = 0;