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