/* /* Module: $ASNDEF /* /* Version: 'X-2' /* /************************************************************************ /** /** Copyright © 1996 Digital Equipment Corporation. /** All rights reserved. /** /** Redistribution and use in source and binary forms are permitted /** provided that the above copyright notice and this paragraph are /** duplicated in all such forms and that any documentation, /** advertising materials, and other materials related to such /** distribution and use acknowledge that the software was developed /** by Digital Equipment Corporation. The name of the /** Corporation may not be used to endorse or promote products derived /** from this software without specific prior written permission. /** THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR /** IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED /** WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. /** /************************************************************************ /* /*++ /* /* FACILITY: OpenVMS Alpha ASNDRIVER /* /* ABSTRACT: /* /* This file contains the SDL source for the ASN constants used by PPP /* layer, and the management code. /* /* AUTHOR: Forrest A. Kenney CREATION DATE: 05-December-1995 /* /* MODIFIED BY: /* /* X-2 BWK002 Barry W. Kierstein 17-DEC-1996 /* Replaced the standard Digital copyright with /* one compatible with the CMU copyright. /* /* X-1 BWK001 Barry W. Kierstein 17-December-1996 /* Replaced the standard Digital copyright with /* one compatible with the CMU copyright. /*-- module $ASNDEF; /*+ /* /* Asynch PPP Driver Recieve and Transmit buffer limits /* /*- CONSTANT MAXIMUM_MTU equals 1500; CONSTANT MAXIMUM_MRU equals 1500; CONSTANT MINIMUM_MTU equals 4; CONSTANT MINIMUM_MRU equals 4; CONSTANT PACKET_OVERHEAD equals 16; CONSTANT READ_BUFFERS equals 2; CONSTANT TERMINAL_PE_BIT equals 12; CONSTANT TERMINAL_FE_BIT equals 13; CONSTANT TERMINAL_OR_BIT equals 14; /*+ /* /* Asynch PPP driver item codes /* /* N.B. /* These definitions are in a specific order and must not be changed /* without matching changes to ASNDRIVER. /* /*- CONSTANT (ACCM_RCV /* Set receive ACCM , ACCM_XMIT /* Set xmit ACCM , BIND /* Bind to terminal port , CONNECT_TYPE /* Set connection type , DEVICE_CLOSED /* Reserved for the future , DISABLE_RCV /* Disable character reception , DISCONNECT /* Force connection to be broken , ENABLE_RCV /* Enable character reception , FCS_RCV /* Set receive FCS , FCS_XMIT /* Set xmit FCS , FLOW /* Set flow conftol type , MRU /* Set MRU , MTU /* Set MTU , RESET_COUNTERS /* Reset line counter(s) , READ_COUNTERS /* Read the line counter(s) , MAX_ITEMS) equals 0 increment 1 prefix ASN tag $; AGGREGATE ASN$CONNECT_TYPES STRUCTURE PREFIX ASN$; /* Connection types PERMANENT bitfield mask; TRANSIENT bitfield mask; END; AGGREGATE ASN$FLOW_TYPES STRUCTURE PREFIX ASN$; /* Types of flow control HW bitfield mask; XON_XOFF bitfield mask; END; /*+ /* /* Line counters /* /* N.B. /* These definitions are in a specific order and must not be changed /* without matching changes to ASNDRIVER code and the UCB layout. /* /*- AGGREGATE ASN$COUNTERS STRUCTURE PREFIX ASN$; BAD_FCS_RCV bitfield mask; DATA_LOST bitfield mask; DROPPED_CHARS bitfield mask; FE bitfield mask; LONG_PACKETS bitfield mask; PACKETS_RCV bitfield mask; PACKETS_XMIT bitfield mask; RUNT_PACKETS bitfield mask; TOTAL_CHARS bitfield mask; ALL bitfield mask; /* Items must be added before this item END; end_module $ASNDEF;