User Tools

Site Tools


cdc:nos2.source:nam5871:csesec

CSESEC

Table Of Contents

  • [00007] PROC CSESEC
  • [00008] SEND ELEMENT COUNT.
  • [00011] SEND ELEMENT COUNT.
  • [00030] PROC CSESLE
  • [00031] PROC SSBSBF
  • [00032] PROC SSTAQE
  • [00033] FUNC XCDD C(10)

Source Code

CSESEC.txt
  1. *DECK CSESEC
  2. USETEXT TEXTOV
  3. USETEXT TEXTCS
  4. USETEXT TEXTSS
  5. USETEXT TXTAPSS
  6. USETEXT TXTSMCS
  7. PROC CSESEC;
  8. # TITLE - SEND ELEMENT COUNT. #
  9. BEGIN
  10. #
  11. ** CSESEC - SEND ELEMENT COUNT.
  12. *
  13. * D.K. ENDO 82/03/18
  14. *
  15. * THIS PROCEDURE FORMATS A MESSAGE REPORTING THE NUMBER OF ELEMENTS
  16. * (TERMINALS,LINES,LOGICAL LINKS, OR TRUNKS) THAT ARE DISABLED.
  17. *
  18. * PROC CSESEC
  19. *
  20. * ENTRY 1. CDI/TE/U, CDI/CI/U, CDI/LL/U, OR CDI/TR/U SM.
  21. *
  22. * EXIT 1. ENTRY IN OPERATOR RESPONSE QUEUE WITH THE DISABLED
  23. * COUNT MESSAGE.
  24. #
  25. #
  26. **** PROC CSESEC - XREF LIST BEGINS.
  27. #
  28. XREF
  29. BEGIN
  30. PROC CSESLE; # SEND LOG (FILE) ENTRY #
  31. PROC SSBSBF; # STORE BIT FIELD #
  32. PROC SSTAQE; # ADD QUEUE ENTRY #
  33. FUNC XCDD C(10); # CONVERT DECIMAL INTEGER TO DISPLAY CODE #
  34. END
  35. #
  36. ****
  37. #
  38. DEF LDC$TXTL # 50 #; # CHAR COUNT OF -LINE DISABLED- TEXT #
  39. DEF LLC$TXTL # 60 #; # CHAR COUNT OF -LOGLINK DISABLED- TEXT #
  40. DEF TDC$TXTL # 70 #; # CHAR COUNT OF -TERMINAL DISABLED- TEXT #
  41. DEF TDC$TXT2L # 50 #; # CHAR COUNT OF -TRMNL DISABLED 2- TEXT #
  42. DEF TRC$TXTL # 50 #; # CHAR COUNT OF -TRUNK DISABLED- TEXT #
  43.  
  44.  
  45. ITEM CNST1; # CONSTANT ---> 1 #
  46. ITEM CNST2; # CONSTANT ---> 2 #
  47. ITEM CNST3; # CONSTANT ---> 3 #
  48. ITEM I; # LOOP INDUCTION VARIABLE #
  49.  
  50.  
  51. #
  52.   THIS ARRAY DEFINES THE TEMPLATE THAT POINTS TO THE MESSAGE THAT IS
  53.   TO BE SENT.
  54. #
  55. BASED ARRAY CDI$TXT [00:00] S(3);
  56. BEGIN
  57. ITEM CDI$TIM C(00,00,10);
  58. ITEM CDI$NNM C(01,36,07);
  59. ITEM CDI$NE C(02,24,03);
  60. END
  61.  
  62.  
  63. #
  64.   THIS ARRAY IS USED AS A TEMPORY TO STORE A TEXT STRING TO BE LATER
  65.   APPENDED TO THE OUT GOING TEXT.
  66. #
  67. ARRAY CTEMP$WORD [00:00] S(1);
  68. BEGIN
  69. ITEM CTEMP C(00,00,10);
  70. ITEM CTEMP3 C(00,42,03);
  71. END
  72.  
  73.  
  74. #
  75.   THIS ARRAY DEFINES THE -LINE DISABLED- MESSAGE TEXT TO BE SENT
  76.   WHEN A CDI/LI/U SM IS RECEIVED.
  77. #
  78. ARRAY LDC$TXT [00:00] S(5);
  79. BEGIN
  80. ITEM LDC$TIM C(00,00,10);
  81. ITEM LDC$NPU C(01,00,05) = ["NPU: "];
  82. ITEM LDC$NNM C(01,30,07);
  83. ITEM LDC$C1 C(02,12,02) = [", "];
  84. ITEM LDC$NE C(02,24,03);
  85. ITEM LDC$MSG C(02,42,15) = [" LINES DISABLED"];
  86. ITEM LDC$ZBYT U(04,12,48) = [ 0 ];
  87. END
  88.  
  89.  
  90. #
  91.   THIS ARRAY DEFINES THE -LOGLINKS DISABLED- MESSAGE TEXT TO BE SENT
  92.   WHEN A CDI/LI/U SM IS RECEIVED.
  93. #
  94. ARRAY LLC$TXT [00:00] S(6);
  95. BEGIN
  96. ITEM LLC$TIM C(00,00,10);
  97. ITEM LLC$NPU C(01,00,05) = ["NPU: "];
  98. ITEM LLC$NNM C(01,30,07);
  99. ITEM LLC$C1 C(02,12,02) = [", "];
  100. ITEM LLC$NE C(02,24,03);
  101. ITEM LLC$MSG C(02,42,23) = [" LOGICAL LINKS DISABLED"];
  102. ITEM LLC$ZBYT U(05,00,60) = [ 0 ];
  103. END
  104.  
  105.  
  106. #
  107.   THIS ARRAY DEFINES THE -TERMINALS DISABLED- MESSAGE TEXT TO BE
  108.   SENT WHEN A CDI/TE/U SM IS RECEIVED.
  109. #
  110. ARRAY TDC$TXT [00:00] S(7);
  111. BEGIN
  112. ITEM TDC$TIM C(00,00,10);
  113. ITEM TDC$NPU C(01,00,05) = ["NPU: "];
  114. ITEM TDC$NNM C(01,30,07);
  115. ITEM TDC$C1 C(02,12,02) = [", "];
  116. ITEM TDC$NE C(02,24,03);
  117. ITEM TDC$MSG C(02,42,29) = [" TERMINALS DISABLED ON LINE: "];
  118. ITEM TDC$LNM C(05,36,07);
  119. ITEM TDC$ZBYT U(06,18,42) = [ 0 ];
  120. END
  121.  
  122.  
  123. #
  124. * THIS ARRAY DEFINES THE -TERMINALS DISABLED- MESSAGE TEXT TO BE
  125. * SENT WHEN A CDI/TE/U SM IS RECEIVED AND THERE IS NO LINE FOUND
  126. * SUPPORTING THE DEVICES.
  127. #
  128. ARRAY TDC$TXT2 [00:00] S(5);
  129. BEGIN
  130. ITEM TD2$TIM C(00,00,10);
  131. ITEM TD2$NPU C(01,00,05) = ["NPU: "];
  132. ITEM TD2$NNM C(01,30,07);
  133. ITEM TD2$C1 C(02,12,02) = [", "];
  134. ITEM TD2$NE C(02,24,03);
  135. ITEM TD2$MSG C(02,42,19) =[" TERMINALS DISABLED"];
  136. ITEM TD2$ZBYT U(04,36,24) = [0];
  137. END
  138.  
  139.  
  140. #
  141.   THIS ARRAY DEFINES THE -TRUNKS DISABLED- MESSAGE TEXT TO BE SENT
  142.   WHEN A CDI/TR/U SM IS RECEIVED.
  143. #
  144. ARRAY TRC$TXT [00:00] S(5);
  145. BEGIN
  146. ITEM TRC$TIM C(00,00,10);
  147. ITEM TRC$NPU C(01,00,05) = ["NPU: "];
  148. ITEM TRC$NNM C(01,30,07);
  149. ITEM TRC$C1 C(02,12,02) = [", "];
  150. ITEM TRC$NE C(02,24,03);
  151. ITEM TRC$MSG C(02,42,16) = [" TRUNKS DISABLED"];
  152. ITEM TRC$ZBYT U(04,18,42) = [0];
  153. END
  154.  
  155.  
  156. #
  157.   THIS ARRAY DEFINES THE LINE NAME USED WHEN ONE IS NOT FOUND IN THE
  158.   LINE XREF TABLE.
  159. #
  160. ARRAY UNK$TXT [00:00] S(1);
  161. BEGIN
  162. ITEM UNK$NAM C(00,18,07) = ["UNKNOWN"];
  163. END
  164. CONTROL EJECT;
  165. # #
  166. # CSESEC CODE BEGINS HERE #
  167. # #
  168. #
  169. * IF THIS SM IS CDI/TE/U, SEARCH THE LINE XREF TABLE GIVEN THE PORT
  170. * AND NODE I.D. FOR THE NAME OF THE LINE SUPPORTING THE DEVICE AND
  171. * APPEND IT TO THE TEXT. APPEND -TERMINALS DISABLED- MSG TO TEXT.
  172. #
  173. WCB$WORD[1] = 0;
  174. ABHWORD[1] = 0;
  175.  
  176.  
  177. IF WCB$SMID[0] EQ SMID"CDITE"
  178. THEN
  179. BEGIN
  180. FOR I=0 STEP 1 WHILE NOT (ABHSN[0] EQ LIX$NID[I] AND
  181. CDIP[0] EQ LIX$PORT[I]) AND
  182. I LS LIXL
  183. DO
  184. BEGIN
  185. END
  186. IF I LS LIXL
  187. THEN
  188. BEGIN
  189. CNST1 = 5;
  190. CNST2 = 36;
  191. CNST3 = 42;
  192. SSBSBF(TDC$TXT,CNST1,CNST2,CNST3,B<0,42>LIX$NAME[I]);
  193.  
  194.  
  195. P<CDI$TXT> = LOC(TDC$TXT);
  196. ABHTLC[1] = TDC$TXTL;
  197. END
  198. ELSE
  199. BEGIN
  200. P<CDI$TXT> = LOC(TDC$TXT2);
  201. ABHTLC[1] = TDC$TXT2L;
  202. END
  203. END
  204. #
  205. * IF THIS SM IS CDI/LI/U, THEN APPEND -LINE DISABLED- MESSAGE TO THE
  206. * TEXT AND SAVE THE LENGTH OF THE MESSAGE.
  207. #
  208.  
  209.  
  210. ELSE IF WCB$SMID[0] EQ SMID"CDILI"
  211. THEN
  212. BEGIN
  213. P<CDI$TXT> = LOC(LDC$TXT);
  214.  
  215.  
  216. ABHTLC[1] = LDC$TXTL;
  217. END
  218. #
  219. * IF THIS SM IS CDI/LL/U, THEN APPEND -LOGICAL LINKS DISABLED- MSG
  220. * TO THE TEXT AND SAVE THE LENGTH OF THE MESSAGE.
  221. #
  222.  
  223.  
  224. ELSE IF WCB$SMID[0] EQ SMID"CDILL"
  225. THEN
  226. BEGIN
  227. P<CDI$TXT> = LOC(LLC$TXT);
  228.  
  229.  
  230. ABHTLC[1] = LLC$TXTL;
  231. END
  232. #
  233. * IF THIS SM IS CDI/TR/U, THEN APPEND -TRUNKS DISABLED- MESSAGE TO
  234. * THE TEXT AND SAVE THE LENGTH OF THE MESSAGE.
  235. #
  236.  
  237.  
  238. ELSE IF WCB$SMID[0] EQ SMID"CDITR"
  239. THEN
  240. BEGIN
  241. P<CDI$TXT> = LOC(TRC$TXT);
  242.  
  243.  
  244. ABHTLC[1] = TRC$TXTL;
  245. END
  246. #
  247. * APPEND THE CURRENT TIME TO THE TEXT. SEARCH THE NPUCB-S FOR THE
  248. * NAME OF THE NPU SUPPORTING THE ELEMENTS. APPEND THE NPU NAME TO
  249. * THE TEXT. SEND THE TEXT OUT TO THE OPERATOR RESPONSE QUEUE WITH
  250. * AN AUDIENCE OF ONE(HOP AND ALL NOP-S).
  251. #
  252.  
  253.  
  254. CDI$TIM[0] = CTM$CLOCK[0];
  255.  
  256.  
  257. FOR I=0 STEP 1 WHILE ABHSN[0] NQ NPU$NID[I] AND
  258. I LS CSNPCNT
  259. DO
  260. BEGIN
  261. END
  262. IF I LS CSNPCNT
  263. THEN
  264. BEGIN
  265. CNST1 = 1;
  266. CNST2 = 30;
  267. CNST3 = 42;
  268. SSBSBF(CDI$TXT,CNST1,CNST2,CNST3,B<0,42>NPU$WORD[I]);
  269. END
  270.  
  271.  
  272. CTEMP[0] = XCDD(CDINE[0]);
  273. CDI$NE[0] = CTEMP3[0];
  274.  
  275.  
  276. WCB$WC[1] = 2 + (ABHTLC[1] / 10);
  277.  
  278.  
  279. ABHADR[1] = AUDGR3$;
  280. ABHABN[1] = I;
  281.  
  282.  
  283. SSTAQE(P<ORQ>,WCBUF[1],ABH[1],CDI$TXT[0]);
  284. CSESLE(ABHSN[0],WCBUF[1],CDI$TXT);
  285.  
  286.  
  287. RETURN; # **** RETURN **** #
  288. END # CSESEC #
  289. TERM
cdc/nos2.source/nam5871/csesec.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator