/*++

*****************************************************************************
*                                                                           *
*  This software contains proprietary and confiential information of        *
*                                                                           *
*                    Digi International Inc.                                *
*                                                                           *
*  By accepting transfer of this copy, Recipient agrees to retain this      *
*  software in confidence, to prevent disclosure to others, and to make     *
*  no use of this software other than that for which it was delivered.      *
*  This is an unpublished copyrighted work of Digi International Inc.       *
*  Except as permitted by federal law, 17 USC 117, copying is strictly      *
*  prohibited.                                                              *
*                                                                           *
*****************************************************************************

Module Name:

   framing.h

Abstract:

   This header has information necessary to send/receive/detect various types
   of media framing which may be in use.

Revision History:

   $Log: /Components/Windows/NT/Sync/Wan/FRAMING.H $
 * 
 * 2     10/28/96 1:25p Mikez
 * Updated to support latest firmware release, v1.1.2b.
 * Revision 1.4  1995/10/06  06:59:51  Craig_Harrison
 * Version 1.0.1.2 
 * 
 * Revision 1.3  1995/09/15  00:00:00  Craig_Harrison
 * First beta release
 * 
 * Revision 1.1  1995/06/01  10:18:42  rik
 * Initial revision
 * 

--*/


////////////////////////////////////////////////////////////////////////////
//                      Old RAS Framing definitions                       //
////////////////////////////////////////////////////////////////////////////

//*********** ASYNC PROTOCOL DEFINITIONS AND STRUCTURES *****************
#define SOH_BCAST    0x01
#define SOH_DEST     0x02

// if a type field exists, OR in this bit (i.e. TCP/IP,  IPX)
#define SOH_TYPE     0x80

// if the frame went through coherency, OR in this bit
#define SOH_COMPRESS 0x40

// if the frame has escape characters removed (ASCII 0-31) set this.
#define SOH_ESCAPE   0x20

//
// Old RAS framing opening and closing flags
//
#define SYN    0x16
#define ETX    0x03

////////////////////////////////////////////////////////////////////////////
//                      PPP Framing definitions                           //
////////////////////////////////////////////////////////////////////////////

//
// PPP framing opening and closing flag, per RFC 1662
//
#define PPP_FLAG        0x7e
#define PPP_ADDRESS     0xff
#define PPP_ESCAPE      0x7d

//
// Flag indicating varitions to RFC 1662 transparency.
//
#define PPP_TRANSPARENCY   0x00000001
#define RAS_TRANSPARENCY   0x00000002
