;
; NRBDEF
;	Routing database node routing block (NRB) offset definition.
;
; Date of last update:  10/8/87
; Author: Earl Lakia
;
	.MACRO	NRBDEF
	.ASECT
.=0
N.LUN:	 .BLKW	1	; LUN USED TO CONNECT TO NODE
N.STS:	 .BLKW	1	; NODE STATUS SEE BELOW
N.LNK:	 .BLKW	1	; LINK TO NEXT NRB
N.CUR:	 .BLKB	6	; ACTUAL CURRENT NODE NAME
N.PRI:	 .BLKB	6	; PRIMARY NODE NAME
N.SEC:	 .BLKB	6	; SECONDARY NODE NAME
N.ACC:	 .BLKB	60.	; ACCESS CONTROL STRING
N.NCB:	 .BLKB	N.RQL	; NETWORK CONNECT BLOCK
N.IDS:	 .BLKW	1	; TOTAL MSG ID'S THIS NODE
N.ULNK:  .BLKW	1	; LINK TO UNSOLICITED INPUT BUFFER
N.IBSA:	 .BLKW	1	; ADDRESS OF NETWORK RECEIVE I/O STATUS BLOCK
N.IOSB:  .BLKW	2	; NETWORK RECEIVE I/O STATUS BLOCK
N.ISAC:	 .BLKW	1	; ADDRESS OF CONNECT/DISCONNECT I/O STATUS BLOCK
N.IOSC:  .BLKW	2	; CONNECT/DISCONNECT I/O STATUS BLOCK
N.ISAU:	 .BLKW	1	; ADDRESS OF NETWORK DATA I/O STATUS BLOCK
N.IOSU:  .BLKW	2	; NETWORK I/O STATUS BLOCK
N.SEQ:	 .BLKW	1	; LINK SEQUENCE NUMBER INBOUND
N.OSEQ:	 .BLKW	1	; LINK SEQUENCE NUMBER OUTBOUND
N.OIDS:  .BLKW	1	; ADDRESS OF LAST SCANNED OUTBOUND NRBID
N.STAM:	 .BLKW	1	; CONNECT/DISCONNECT STATUS FOR WRITE TO QUEUE
N.MBX:	 .BLKB  N.CBL+30   ; SAVE BUFFER FOR NETWORK CONNECT REQUEST MESSAGE
N.IDXL=.		; START OF THE MESSAGE ID'S ROUTED BY THIS NODE
.=0
NID.IX:	.BLKW	1	; LINK TO QUEUE MESSAGE ID LIST HEAD 
NID.RA:	.BLKW	1	; RNA FOR THIS MESSAGE ID
NID.ST:	.BLKW	1	; MSG ID STATUS WORD SEE BELOW
NID.NM:	.BLKB	16.	; ASCII MESSAGE ID BEING ROUTED
NID.LN=.
.=0
;
; N.STS BIT DEFINITIONS
;
NS.AVL=	1	; NODE IS AVAILABLE
NS.DWN=	2	; NODE IS DOWN
NS.CPN=	4	; LOCAL CONNECT IN PROGRESS
NS.CTM=10	; CONNECT TIMER IS ACTIVE
NS.SEC=20	; SECONDARY NODE IS CONNECTED
NS.PRI=40	; PRIMARY NODE IS CONNECTED
NS.RCN=100	; REMOTE NODE REQUESTED THE CONNECTION
NS.LND=200	; PRIMARY NODE NAME IS A LOGICAL NODE NAME
NS.NOD=400	; ACTUAL NODE NAME OF A LOGICAL NODE RECEIVED
NS.DPN=1000	; LOCAL DISCONNECT IN PROGRESS
;
; NID.ST BIT DEFINITIONS
;
NIS.RT= 1	; MSG ID NOT ROUTABLE
		; BITS 14 AND 15 (LAST TWO MSB's) ARE USED BY 
		;   ROUTER FOR READ RETRY COUNTER
	.ENDM
