194408d94SBrooks Davis /* 294408d94SBrooks Davis * ng_gif.h 3c398230bSWarner Losh */ 4c398230bSWarner Losh 5c398230bSWarner Losh /*- 6*fe267a55SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause AND BSD-2-Clause 7*fe267a55SPedro F. Giffuni * 894408d94SBrooks Davis * Copyright 2001 The Aerospace Corporation. All rights reserved. 994408d94SBrooks Davis * 1094408d94SBrooks Davis * Redistribution and use in source and binary forms, with or without 1194408d94SBrooks Davis * modification, are permitted provided that the following conditions 1294408d94SBrooks Davis * are met: 13cf776d81SBrooks Davis * 1494408d94SBrooks Davis * 1. Redistributions of source code must retain the above copyright 15cf776d81SBrooks Davis * notice, this list of conditions, and the following disclaimer. 1694408d94SBrooks Davis * 2. Redistributions in binary form must reproduce the above copyright 17cf776d81SBrooks Davis * notice, this list of conditions, and the following disclaimer in the 1894408d94SBrooks Davis * documentation and/or other materials provided with the distribution. 19cf776d81SBrooks Davis * 3. The name of The Aerospace Corporation may not be used to endorse or 20cf776d81SBrooks Davis * promote products derived from this software. 2194408d94SBrooks Davis * 2294408d94SBrooks Davis * THIS SOFTWARE IS PROVIDED BY THE AEROSPACE CORPORATION ``AS IS'' AND 2394408d94SBrooks Davis * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2494408d94SBrooks Davis * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2594408d94SBrooks Davis * ARE DISCLAIMED. IN NO EVENT SHALL THE AEROSPACE CORPORATION BE LIABLE 2694408d94SBrooks Davis * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2794408d94SBrooks Davis * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2894408d94SBrooks Davis * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2994408d94SBrooks Davis * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3094408d94SBrooks Davis * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3194408d94SBrooks Davis * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3294408d94SBrooks Davis * SUCH DAMAGE. 3394408d94SBrooks Davis * 3494408d94SBrooks Davis * 3594408d94SBrooks Davis * Copyright (c) 1996-1999 Whistle Communications, Inc. 3694408d94SBrooks Davis * All rights reserved. 3794408d94SBrooks Davis * 3894408d94SBrooks Davis * Subject to the following obligations and disclaimer of warranty, use and 3994408d94SBrooks Davis * redistribution of this software, in source or object code forms, with or 4094408d94SBrooks Davis * without modifications are expressly permitted by Whistle Communications; 4194408d94SBrooks Davis * provided, however, that: 4294408d94SBrooks Davis * 1. Any and all reproductions of the source or object code must include the 4394408d94SBrooks Davis * copyright notice above and the following disclaimer of warranties; and 4494408d94SBrooks Davis * 2. No rights are granted, in any manner or form, to use Whistle 4594408d94SBrooks Davis * Communications, Inc. trademarks, including the mark "WHISTLE 4694408d94SBrooks Davis * COMMUNICATIONS" on advertising, endorsements, or otherwise except as 4794408d94SBrooks Davis * such appears in the above copyright notice or in the software. 4894408d94SBrooks Davis * 4994408d94SBrooks Davis * THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "AS IS", AND 5094408d94SBrooks Davis * TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO 5194408d94SBrooks Davis * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE, 5294408d94SBrooks Davis * INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF 5394408d94SBrooks Davis * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 5494408d94SBrooks Davis * WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY 5594408d94SBrooks Davis * REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS 5694408d94SBrooks Davis * SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE. 5794408d94SBrooks Davis * IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES 5894408d94SBrooks Davis * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING 5994408d94SBrooks Davis * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 6094408d94SBrooks Davis * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 6194408d94SBrooks Davis * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 6294408d94SBrooks Davis * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 6394408d94SBrooks Davis * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 6494408d94SBrooks Davis * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 6594408d94SBrooks Davis * OF SUCH DAMAGE. 6694408d94SBrooks Davis */ 6794408d94SBrooks Davis 6894408d94SBrooks Davis #ifndef _NETGRAPH_NG_GIF_H_ 6994408d94SBrooks Davis #define _NETGRAPH_NG_GIF_H_ 7094408d94SBrooks Davis 7194408d94SBrooks Davis /* Node type name and magic cookie */ 7294408d94SBrooks Davis #define NG_GIF_NODE_TYPE "gif" 7394408d94SBrooks Davis #define NGM_GIF_COOKIE 994115727 7494408d94SBrooks Davis 7594408d94SBrooks Davis /* Hook names */ 7694408d94SBrooks Davis #define NG_GIF_HOOK_LOWER "lower" /* connection to raw device */ 7794408d94SBrooks Davis #define NG_GIF_HOOK_DIVERT "divert" /* alias for lower */ 7894408d94SBrooks Davis #define NG_GIF_HOOK_ORPHAN "orphans" /* like lower, unknowns only */ 7994408d94SBrooks Davis 8094408d94SBrooks Davis /* Netgraph control messages */ 8194408d94SBrooks Davis enum { 8294408d94SBrooks Davis NGM_GIF_GET_IFNAME = 1, /* get the interface name */ 834c6bb41eSBruce Evans NGM_GIF_GET_IFINDEX /* get the interface global index # */ 8494408d94SBrooks Davis }; 8594408d94SBrooks Davis 8694408d94SBrooks Davis #endif /* _NETGRAPH_NG_GIF_H_ */ 87