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