1*55cc8536SNuno Antunes /* 2*55cc8536SNuno Antunes * ng_rfc1490.h 3*55cc8536SNuno Antunes */ 4*55cc8536SNuno Antunes 5*55cc8536SNuno Antunes /*- 6*55cc8536SNuno Antunes * Copyright (c) 1996-1999 Whistle Communications, Inc. 7*55cc8536SNuno Antunes * All rights reserved. 8*55cc8536SNuno Antunes * 9*55cc8536SNuno Antunes * Subject to the following obligations and disclaimer of warranty, use and 10*55cc8536SNuno Antunes * redistribution of this software, in source or object code forms, with or 11*55cc8536SNuno Antunes * without modifications are expressly permitted by Whistle Communications; 12*55cc8536SNuno Antunes * provided, however, that: 13*55cc8536SNuno Antunes * 1. Any and all reproductions of the source or object code must include the 14*55cc8536SNuno Antunes * copyright notice above and the following disclaimer of warranties; and 15*55cc8536SNuno Antunes * 2. No rights are granted, in any manner or form, to use Whistle 16*55cc8536SNuno Antunes * Communications, Inc. trademarks, including the mark "WHISTLE 17*55cc8536SNuno Antunes * COMMUNICATIONS" on advertising, endorsements, or otherwise except as 18*55cc8536SNuno Antunes * such appears in the above copyright notice or in the software. 19*55cc8536SNuno Antunes * 20*55cc8536SNuno Antunes * THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "AS IS", AND 21*55cc8536SNuno Antunes * TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO 22*55cc8536SNuno Antunes * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE, 23*55cc8536SNuno Antunes * INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF 24*55cc8536SNuno Antunes * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 25*55cc8536SNuno Antunes * WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY 26*55cc8536SNuno Antunes * REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS 27*55cc8536SNuno Antunes * SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE. 28*55cc8536SNuno Antunes * IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES 29*55cc8536SNuno Antunes * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING 30*55cc8536SNuno Antunes * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 31*55cc8536SNuno Antunes * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 32*55cc8536SNuno Antunes * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 33*55cc8536SNuno Antunes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34*55cc8536SNuno Antunes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 35*55cc8536SNuno Antunes * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 36*55cc8536SNuno Antunes * OF SUCH DAMAGE. 37*55cc8536SNuno Antunes * 38*55cc8536SNuno Antunes * Author: Archie Cobbs <archie@freebsd.org> 39*55cc8536SNuno Antunes * 40*55cc8536SNuno Antunes * $FreeBSD: src/sys/netgraph/ng_rfc1490.h,v 1.7 2005/01/07 01:45:39 imp Exp $ 41*55cc8536SNuno Antunes * $DragonFly: src/sys/netgraph7/ng_rfc1490.h,v 1.2 2008/06/26 23:05:35 dillon Exp $ 42*55cc8536SNuno Antunes * $Whistle: ng_rfc1490.h,v 1.7 1999/01/20 00:54:15 archie Exp $ 43*55cc8536SNuno Antunes */ 44*55cc8536SNuno Antunes 45*55cc8536SNuno Antunes #ifndef _NETGRAPH_NG_RFC1490_H_ 46*55cc8536SNuno Antunes #define _NETGRAPH_NG_RFC1490_H_ 47*55cc8536SNuno Antunes 48*55cc8536SNuno Antunes /* Node type name */ 49*55cc8536SNuno Antunes #define NG_RFC1490_NODE_TYPE "rfc1490" 50*55cc8536SNuno Antunes #define NGM_RFC1490_COOKIE 1086947474 51*55cc8536SNuno Antunes 52*55cc8536SNuno Antunes /* Hook names */ 53*55cc8536SNuno Antunes #define NG_RFC1490_HOOK_DOWNSTREAM "downstream" 54*55cc8536SNuno Antunes #define NG_RFC1490_HOOK_INET "inet" 55*55cc8536SNuno Antunes #define NG_RFC1490_HOOK_PPP "ppp" 56*55cc8536SNuno Antunes #define NG_RFC1490_HOOK_ETHERNET "ethernet" 57*55cc8536SNuno Antunes 58*55cc8536SNuno Antunes /* Netgraph commands */ 59*55cc8536SNuno Antunes enum { 60*55cc8536SNuno Antunes NGM_RFC1490_SET_ENCAP, /* sets encapsulation method */ 61*55cc8536SNuno Antunes NGM_RFC1490_GET_ENCAP, /* gets current encapsulation method */ 62*55cc8536SNuno Antunes }; 63*55cc8536SNuno Antunes 64*55cc8536SNuno Antunes #endif /* _NETGRAPH_NG_RFC1490_H_ */ 65