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