1: /*	@(#)if_ddnvar.h	7.1 (Berkeley) 6/5/86 */
   2: 
   3: 
   4: 
   5: /************************************************************************\
   6: 
   7:      ________________________________________________________
   8:     /                                                        \
   9:    |          AAA          CCCCCCCCCCCCCC    CCCCCCCCCCCCCC   |
  10:    |         AAAAA        CCCCCCCCCCCCCCCC  CCCCCCCCCCCCCCCC  |
  11:    |        AAAAAAA       CCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCC |
  12:    |       AAAA AAAA      CCCC              CCCC              |
  13:    |      AAAA   AAAA     CCCC              CCCC              |
  14:    |     AAAA     AAAA    CCCC              CCCC              |
  15:    |    AAAA       AAAA   CCCC              CCCC              |
  16:    |   AAAA  AAAAAAAAAAA  CCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCC |
  17:    |  AAAA    AAAAAAAAAAA CCCCCCCCCCCCCCCC  CCCCCCCCCCCCCCCC  |
  18:    | AAAA      AAAAAAAAA   CCCCCCCCCCCCCC    CCCCCCCCCCCCCC   |
  19:     \________________________________________________________/
  20: 
  21: 	Copyright (c) 1985 by Advanced Computer Communications
  22: 	720 Santa Barbara Street, Santa Barbara, California  93101
  23: 	(805) 963-9431
  24: 
  25: 	This software may be duplicated and used on systems
  26: 	which are licensed to run U.C. Berkeley versions of
  27: 	the UNIX operating system.  Any duplication of any
  28: 	part of this software must include a copy of ACC's
  29: 	copyright notice.
  30: 
  31: 
  32: File:
  33: 		if_ddnvar.h
  34: 
  35: Author:
  36: 		Art Berggreen
  37: 
  38: Project:
  39: 		4.2 DDN X.25 network driver
  40: 
  41: Function:
  42: 		This file contains definitions used to control and
  43: 		track the status of the ACP625 (IF-11/X25).
  44: 
  45: Components:
  46: 
  47: Revision History:
  48: 		16-May-1985:	V1.0 - First release.
  49: 				Art Berggreen.
  50: 
  51: \************************************************************************/
  52: 
  53: 
  54: /*	if_ddnvar.h	 V1.0	5/16/85	*/
  55: 
  56: /* program parameters */
  57: 
  58: #define DDNMTU      1006        /* maximum IP msg length */
  59: #define DDN_OQMAX   8       /* max IP msgs on LCN output q */
  60: #define NDDNCH      32      /* number of X.25 channels */
  61: #define DELAY_CNT   50000
  62: #define DDN_TIMEOUT 10
  63: 
  64: #define DC_OBUSY    0x01
  65: 
  66: typedef unsigned char   byte;
  67: typedef int     boolean;
  68: 
  69: /* X25 LCN state definitions */
  70: #define LC_DOWN        0        /* X25 circuit down		*/
  71: #define LC_RESTART     1        /* X25 circuit restarting	*/
  72: #define LC_IDLE        2        /* X25 circuit not in use	*/
  73: #define LC_CALL_PENDING    3        /* X25 circuit call pending	*/
  74: #define LC_DATA_IDLE       4        /* X25 circuit open		*/
  75: #define LC_CLR_PENDING     5        /* X25 circuit clear pending	*/
  76: 
  77: /* Timeout definitions */
  78: #define TMO_OFF        0            /* timer off		*/
  79: #define TMO_RESTART  ( 90/DDN_TIMEOUT)  /* restart timeout	*/
  80: #define TMO_CALL_PENDING (180/DDN_TIMEOUT)  /* call timeout		*/
  81: #define TMO_DATA_IDLE    ( 30/DDN_TIMEOUT)  /* idle circuit timeout	*/
  82: #define TMO_CLR_PENDING  ( 30/DDN_TIMEOUT)  /* clear timeout	*/
  83: 
  84: /* Link status codes */
  85: #define LINK_DOWN   0x00        /* Link layer is down		*/
  86: #define LINK_UP     0x01        /* Link layer is up		*/
  87: 
  88: /* Line control codes */
  89: #define LINK_DISABLE    0x00        /* Disable link layer		*/
  90: #define LINK_ENABLE 0x01        /* Enable link layer		*/
  91: #define LINK_LOOPBACK   0x42        /* Link layer loopback mode	*/
  92: #define   LOOP_OFF  0x00        /*   Loopback off		*/
  93: #define   LOOP_EXTERNAL 0x01        /*   Loopback external		*/
  94: #define   LOOP_INTERNAL 0x03        /*   Loopback internal		*/
  95: #define PKT_SIZE    0x90        /* Packet size			*/
  96: #define PKT_WINDOW  0x4f        /* Packet window		*/
  97: 
  98: /* X25 supervisor message codes */
  99: #define CALL        0x00        /* outgoing call		*/
 100: #define RING        0x01        /* incoming call		*/
 101: #define CLEARVC     0x02        /* clear by VCN			*/
 102: #define ANSWER      0x03        /* answer call			*/
 103: #define CLEARLC     0x04        /* clear by LCN			*/
 104: #define RESET       0x20        /* reset LCN			*/
 105: #define RESET_ACK   0x21        /* reset ack			*/
 106: #define INTERRUPT   0x22        /* X25 interrupt		*/
 107: #define READY       0x23        /* flow control ready		*/
 108: #define INTR_ACK    0x24        /* interrupt ack		*/
 109: #define RESTART     0x40        /* X25 restart			*/
 110: #define RSTRT_ACK   0x41        /* restart ack			*/
 111: #define SYS_STATUS  0x42        /* system status msg		*/
 112: #define LINE_CNTL   0x60        /* link control cmnd		*/
 113: #define LINE_STATUS 0x61        /* link status resp		*/
 114: 
 115: /* X25 facilities */
 116: #define X25_FACIL_DDN   0x04        /* DDN mode facility		*/
 117: #define FAC_DDNSTD  0x01        /*   DDN standard mode		*/
 118: 
 119: /* X25 protocols */
 120: #define X25_PROTO_IP    0xcc        /* X25 IP protocol type code	*/

Defined typedef's

boolean defined in line 67; used 6 times
byte defined in line 66; used 3 times

Defined macros

ANSWER defined in line 102; used 1 times
CALL defined in line 99; used 2 times
CLEARLC defined in line 103; used 2 times
CLEARVC defined in line 101; used 2 times
DC_OBUSY defined in line 64; used 4 times
DDNMTU defined in line 58; used 5 times
DDN_OQMAX defined in line 59; used 1 times
DDN_TIMEOUT defined in line 62; used 5 times
DELAY_CNT defined in line 61; never used
FAC_DDNSTD defined in line 117; used 1 times
INTERRUPT defined in line 106; never used
INTR_ACK defined in line 108; never used
LC_CALL_PENDING defined in line 73; used 2 times
LC_CLR_PENDING defined in line 75; used 2 times
LC_DATA_IDLE defined in line 74; used 5 times
LC_DOWN defined in line 70; used 2 times
LC_IDLE defined in line 72; used 4 times
LC_RESTART defined in line 71; used 3 times
LINE_CNTL defined in line 112; used 1 times
LINE_STATUS defined in line 113; never used
LINK_DISABLE defined in line 89; used 1 times
LINK_DOWN defined in line 85; never used
LINK_ENABLE defined in line 90; used 1 times
LINK_LOOPBACK defined in line 91; never used
LINK_UP defined in line 86; used 1 times
LOOP_EXTERNAL defined in line 93; never used
LOOP_INTERNAL defined in line 94; never used
LOOP_OFF defined in line 92; never used
NDDNCH defined in line 60; used 12 times
PKT_SIZE defined in line 95; used 1 times
PKT_WINDOW defined in line 96; used 1 times
READY defined in line 107; never used
RESET defined in line 104; never used
RESET_ACK defined in line 105; used 1 times
RESTART defined in line 109; used 1 times
RING defined in line 100; never used
RSTRT_ACK defined in line 110; used 1 times
SYS_STATUS defined in line 111; never used
TMO_CALL_PENDING defined in line 80; used 1 times
TMO_CLR_PENDING defined in line 82; used 1 times
TMO_DATA_IDLE defined in line 81; used 4 times
TMO_OFF defined in line 78; used 4 times
TMO_RESTART defined in line 79; used 1 times
X25_FACIL_DDN defined in line 116; used 1 times
X25_PROTO_IP defined in line 120; used 2 times

Usage of this include

Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1329
Valid CSS Valid XHTML 1.0 Strict