|
|
1.1 ! root 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 */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.