xref: /freebsd/contrib/libpcap/pcap-bpf.h (revision a3906ca572a6be18d39883a1ce431f147918385a)
1feb4ecdbSBruce M Simpson /*-
2feb4ecdbSBruce M Simpson  * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
3feb4ecdbSBruce M Simpson  *	The Regents of the University of California.  All rights reserved.
4feb4ecdbSBruce M Simpson  *
5feb4ecdbSBruce M Simpson  * This code is derived from the Stanford/CMU enet packet filter,
6feb4ecdbSBruce M Simpson  * (net/enet.c) distributed as part of 4.3BSD, and code contributed
7feb4ecdbSBruce M Simpson  * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence
8feb4ecdbSBruce M Simpson  * Berkeley Laboratory.
9feb4ecdbSBruce M Simpson  *
10feb4ecdbSBruce M Simpson  * Redistribution and use in source and binary forms, with or without
11feb4ecdbSBruce M Simpson  * modification, are permitted provided that the following conditions
12feb4ecdbSBruce M Simpson  * are met:
13feb4ecdbSBruce M Simpson  * 1. Redistributions of source code must retain the above copyright
14feb4ecdbSBruce M Simpson  *    notice, this list of conditions and the following disclaimer.
15feb4ecdbSBruce M Simpson  * 2. Redistributions in binary form must reproduce the above copyright
16feb4ecdbSBruce M Simpson  *    notice, this list of conditions and the following disclaimer in the
17feb4ecdbSBruce M Simpson  *    documentation and/or other materials provided with the distribution.
18feb4ecdbSBruce M Simpson  * 3. All advertising materials mentioning features or use of this software
19feb4ecdbSBruce M Simpson  *    must display the following acknowledgement:
20feb4ecdbSBruce M Simpson  *      This product includes software developed by the University of
21feb4ecdbSBruce M Simpson  *      California, Berkeley and its contributors.
22feb4ecdbSBruce M Simpson  * 4. Neither the name of the University nor the names of its contributors
23feb4ecdbSBruce M Simpson  *    may be used to endorse or promote products derived from this software
24feb4ecdbSBruce M Simpson  *    without specific prior written permission.
25feb4ecdbSBruce M Simpson  *
26feb4ecdbSBruce M Simpson  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27feb4ecdbSBruce M Simpson  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28feb4ecdbSBruce M Simpson  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29feb4ecdbSBruce M Simpson  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30feb4ecdbSBruce M Simpson  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31feb4ecdbSBruce M Simpson  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32feb4ecdbSBruce M Simpson  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33feb4ecdbSBruce M Simpson  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34feb4ecdbSBruce M Simpson  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35feb4ecdbSBruce M Simpson  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36feb4ecdbSBruce M Simpson  * SUCH DAMAGE.
37a8e07101SRui Paulo  */
38a8e07101SRui Paulo 
39a8e07101SRui Paulo /*
40a8e07101SRui Paulo  * For backwards compatibility.
41feb4ecdbSBruce M Simpson  *
42a8e07101SRui Paulo  * Note to OS vendors: do NOT get rid of this file!  Some applications
43a8e07101SRui Paulo  * might expect to be able to include <pcap-bpf.h>.
44feb4ecdbSBruce M Simpson  */
45a8e07101SRui Paulo #include <pcap/bpf.h>
46