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