[0001] [0002] [0003] [0004] [0005] [0006] [0007] [0008] [0009] [0010] [0011] [0012] [0013] [0014] [0015] [0016] [0017] [0018] [0019] [0020] [0021] [0022] [0023] [0024] [0025] [0026] [0027] [0028] [0029] [0030] [0031] [0032] [0033] [0034] [0035] [0036] [0037] [0038] [0039] [0040] [0041] [0042] [0043] [0044] [0045] [0046] [0047] [0048] [0049] [0050] [0051] [0052] [0053] [0054] [0055] [0056] [0057] [0058] [0059] [0060] [0061] [0062] [0063] [0064] [0065] [0066] [0067] [0068] [0069] [0070] [0071] [0072] [0073] [0074] [0075] [0076] [0077] [0078] [0079] [0080] [0081] [0082] [0083] [0084] [0085] [0086] [0087] [0088] [0089] [0090] [0091] [0092] [0093] [0094] [0095] [0096] [0097] [0098] [0099] [0100] [0101] [0102] [0103] [0104] [0105] [0106] [0107] [0108] [0109] [0110] [0111] [0112] [0113] [0114] [0115] [0116] [0117] [0118] [0119] [0120] [0121] [0122] [0123] [0124] [0125] [0126] [0127] [0128] [0129] [0130] [0131] [0132] [0133] [0134] [0135] [0136] [0137] [0138] [0139] [0140] [0141] [0142] [0143] [0144] [0145] [0146] [0147] [0148] [0149] [0150] [0151] [0152] [0153] [0154] [0155] [0156] [0157] [0158] [0159] [0160] [0161] [0162] [0163] [0164] [0165] [0166] [0167] [0168] [0169] [0170] [0171] [0172] [0173] [0174] [0175] [0176] [0177] [0178] [0179] [0180] [0181] [0182] [0183] [0184] [0185] [0186] [0187] [0188] [0189] [0190] [0191] [0192] [0193] [0194] [0195] [0196] [0197] [0198] [0199] [0200] [0201] [0202] [0203] [0204] [0205] [0206] [0207] [0208] [0209] [0210] [0211] [0212] [0213] [0214] [0215] [0216] [0217] [0218] [0219] [0220] [0221] [0222] [0223] [0224] [0225] [0226] [0227] [0228] [0229] [0230] [0231] [0232] [0233] [0234] [0235] [0236] [0237] [0238] [0239] [0240] [0241] [0242] [0243] [0244] [0245] [0246] [0247] [0248] [0249] [0250] [0251] [0252] [0253] [0254] [0255] [0256] [0257] [0258] [0259] [0260] [0261] [0262] [0263] [0264] [0265] [0266] [0267] [0268] [0269] [0270] [0271] [0272] [0273] [0274] [0275] [0276] [0277] [0278] [0279] [0280] [0281] [0282] [0283] [0284] [0285] [0286] [0287] [0288] [0289] [0290] [0291] [0292] [0293] [0294] [0295] [0296] [0297] [0298] [0299] [0300] [0301] [0302] [0303] [0304] [0305] [0306] [0307] [0308] [0309] [0310] [0311] [0312] [0313] [0314] [0315] [0316] [0317] [0318] [0319] [0320] [0321] [0322] [0323] [0324] [0325] [0326] [0327] [0328] [0329] [0330] [0331] [0332] [0333] [0334] [0335] [0336] [0337] [0338] [0339] [0340] [0341] [0342] [0343] [0344] [0345] [0346] [0347] [0348] [0349] [0350] [0351] [0352] [0353] [0354] [0355] [0356] [0357] [0358] [0359] [0360] [0361] [0362] [0363] [0364] [0365] [0366] [0367] [0368] [0369] [0370] [0371] [0372] [0373] [0374] [0375] [0376] [0377] [0378] [0379] [0380] [0381] [0382] [0383] [0384] [0385] [0386] [0387] [0388] [0389] [0390] [0391] [0392] [0393] [0394] [0395] [0396] [0397] [0398] [0399] [0400] [0401] [0402] [0403] [0404] [0405] [0406] [0407] [0408] [0409] [0410] [0411] [0412] [0413] [0414] [0415] [0416] [0417] [0418] [0419] [0420] [0421] [0422] [0423] [0424] [0425] [0426] [0427] [0428] [0429] [0430] [0431] [0432] [0433] [0434] [0435] [0436] [0437] [0438] [0439] [0440] [0441] [0442] [0443] [0444] [0445] [0446] [0447] [0448] [0449] [0450] [0451] [0452] [0453] [0454] [0455] [0456] [0457] [0458] [0459] [0460] [0461] [0462] [0463] [0464] [0465] [0466] [0467] [0468] [0469] [0470] [0471] [0472] [0473] [0474] [0475] [0476] [0477] [0478] [0479] [0480] [0481] [0482] [0483] [0484] [0485] [0486] [0487] [0488] [0489] [0490] [0491] [0492] [0493] [0494] [0495] [0496] [0497] [0498] [0499] [0500] [0501] [0502] [0503] [0504] [0505] [0506] [0507] [0508] [0509] [0510] [0511] [0512] [0513] [0514] [0515] [0516] [0517] [0518] [0519] [0520] [0521] [0522] [0523] [0524] [0525] [0526] [0527] [0528] [0529] [0530] [0531] [0532] [0533] [0534] [0535] [0536] [0537] [0538] [0539] [0540] [0541] [0542] [0543] [0544] [0545] [0546] [0547] [0548] [0549] [0550] [0551] [0552] [0553] [0554] [0555] [0556] [0557] [0558] [0559] [0560] [0561] [0562] [0563] [0564] [0565] [0566] [0567] [0568] [0569] [0570] [0571] [0572] [0573] [0574] [0575] [0576] [0577] [0578] [0579] [0580] [0581] [0582] [0583] [0584] [0585] [0586] [0587] [0588] [0589] [0590] [0591] [0592] [0593] [0594] [0595] [0596] [0597] [0598] [0599] [0600] [0601] [0602] [0603] [0604] [0605] [0606] [0607] [0608] [0609] [0610] [0611] [0612] [0613] [0614] [0615] [0616] [0617] [0618] [0619] [0620] [0621] [0622] [0623] [0624] [0625] [0626] [0627] [0628] [0629] [0630] [0631] [0632] [0633] [0634] [0635] [0636] [0637] [0638] [0639] [0640] [0641] [0642] [0643] [0644] [0645] [0646] [0647] [0648] [0649] [0650] [0651] [0652] [0653] [0654] [0655] [0656] [0657] [0658] [0659] [0660] [0661] [0662] [0663] [0664] [0665] [0666] [0667] [0668] [0669] [0670] [0671] [0672] [0673] [0674] [0675] [0676] [0677] [0678] [0679] [0680] [0681] [0682] [0683] [0684] [0685] [0686] [0687] [0688] [0689] [0690] [0691] [0692] [0693] [0694] [0695] [0696] [0697] [0698] [0699] [0700] [0701] [0702] [0703] [0704] [0705] [0706] [0707] [0708] [0709] [0710] [0711] [0712] [0713] [0714] [0715] [0716] [0717] [0718] [0719] [0720] [0721] [0722] [0723] [0724] [0725] [0726] [0727] [0728] [0729] [0730] [0731] [0732] [0733] [0734] [0735] [0736] [0737] [0738] [0739] [0740] [0741] [0742] [0743] [0744] [0745] [0746] [0747] [0748] [0749] [0750] [0751] [0752] [0753] [0754] [0755] [0756] [0757] [0758] [0759] [0760] [0761] [0762] [0763] [0764] [0765] [0766] [0767] [0768] [0769] [0770] [0771] [0772] [0773] [0774] [0775] [0776] [0777] [0778] [0779] [0780] [0781] [0782] [0783] [0784] [0785] [0786] [0787] [0788] [0789] [0790] [0791] [0792] [0793] [0794] [0795] [0796] [0797] [0798] [0799] [0800] [0801] [0802] [0803] [0804] [0805] [0806] [0807] [0808] [0809] [0810] [0811] [0812] [0813] [0814] [0815] [0816] [0817] [0818] [0819] [0820] [0821] [0822] [0823] [0824] [0825] [0826] [0827] [0828] [0829] [0830] [0831] [0832] [0833] [0834] [0835] [0836] [0837] [0838] [0839] [0840] [0841] [0842] [0843] [0844] [0845] [0846] [0847] [0848] [0849] [0850] [0851] [0852] [0853] [0854] [0855] [0856] [0857] [0858] [0859] [0860] [0861] [0862] [0863] [0864] [0865] [0866] [0867] [0868] [0869] [0870] [0871] [0872] [0873] [0874] [0875] [0876] [0877] [0878] [0879] [0880] [0881] [0882] [0883] [0884] [0885] [0886] [0887] [0888] [0889] [0890] [0891] [0892] [0893] [0894] [0895] [0896] [0897] [0898] [0899] [0900] [0901] [0902] [0903] [0904] [0905] [0906] [0907] [0908] [0909] [0910] [0911] [0912] [0913] [0914] [0915] [0916] [0917] [0918] [0919] [0920] [0921] [0922] [0923] [0924] [0925] [0926] [0927] [0928] [0929] [0930] [0931] [0932] [0933] [0934] [0935] [0936] [0937] [0938] [0939] [0940] [0941] [0942] [0943] [0944] [0945] [0946] [0947] [0948] [0949] [0950] [0951] [0952] [0953] [0954] [0955] [0956] [0957] [0958] [0959] [0960] [0961] [0962] [0963] [0964] [0965] [0966] [0967] [0968] [0969] [0970] [0971] [0972] [0973] [0974] [0975] [0976] [0977] [0978] [0979] [0980] [0981] [0982] [0983] [0984] [0985] [0986] [0987] [0988] [0989] [0990] [0991] [0992] [0993] [0994] [0995] [0996] [0997] [0998] [0999] [1000] [1001] [1002] [1003] [1004] [1005] [1006] [1007] [1008] [1009] [1010] [1011] [1012] [1013] [1014] [1015] [1016] [1017] [1018] [1019] [1020] [1021] [1022] [1023] [1024] [1025] [1026] [1027] [1028] [1029] [1030] [1031] [1032] [1033] [1034] [1035] [1036] [1037] [1038] [1039] [1040] [1041] [1042] [1043] [1044] [1045] [1046] [1047] [1048] [1049] [1050] [1051] [1052] [1053] [1054] [1055] [1056] [1057] [1058] [1059] [1060] [1061] [1062] [1063] [1064] [1065] [1066] [1067] [1068] [1069] [1070] [1071] [1072] [1073] [1074] [1075] [1076] [1077] [1078] [1079] [1080] [1081] [1082] [1083] [1084] [1085] [1086] [1087] [1088] [1089] [1090] [1091] [1092] [1093] [1094] [1095] [1096] [1097] [1098] [1099] [1100] [1101] [1102] [1103] [1104] [1105] [1106] [1107] [1108] [1109] [1110] [1111] [1112] [1113] [1114] [1115] [1116] [1117] [1118] [1119] [1120] [1121] [1122] [1123] [1124] [1125] [1126] [1127] [1128] [1129] [1130] [1131] [1132] [1133] [1134] [1135] [1136] [1137] [1138] [1139] [1140] [1141] [1142] [1143] [1144] [1145] [1146] [1147] [1148] [1149] [1150] [1151] [1152] [1153] [1154] [1155] [1156] [1157] [1158] [1159] [1160] [1161] [1162] [1163] [1164] [1165] [1166] [1167] [1168] [1169] [1170] [1171] [1172] [1173] [1174] [1175] [1176] [1177] [1178] [1179] [1180] [1181] [1182] [1183] [1184] [1185] [1186] [1187] [1188] [1189] [1190] [1191] [1192] [1193] [1194] [1195] [1196] [1197] [1198] [1199] [1200] [1201] [1202] [1203] [1204] [1205] [1206] [1207] [1208] [1209] [1210] [1211] [1212] [1213] [1214] [1215] [1216] [1217] [1218] [1219] [1220] [1221] [1222] [1223] [1224] [1225] [1226] [1227] [1228] [1229] [1230] [1231] [1232] [1233] [1234] [1235] [1236] [1237] [1238] [1239] [1240] [1241] [1242] [1243] [1244] [1245] [1246] [1247] [1248] [1249] [1250] [1251] [1252] [1253] [1254] [1255] [1256] [1257] [1258] [1259] [1260] [1261] [1262] [1263] [1264] [1265] [1266] [1267] [1268] [1269] [1270] [1271] [1272] [1273] [1274] [1275] [1276] [1277] [1278] [1279] [1280] [1281] [1282] [1283] [1284] [1285] [1286] [1287] [1288] [1289] [1290] [1291] [1292] [1293] [1294] [1295] [1296] [1297] [1298] [1299] [1300] [1301] [1302] [1303] [1304] [1305] [1306] [1307] [1308] [1309] [1310] [1311] [1312] [1313] [1314] [1315] [1316] [1317] [1318] [1319] [1320] [1321] [1322] [1323] [1324] [1325] [1326] [1327] [1328] [1329] [1330] [1331] [1332] [1333] [1334] [1335] [1336] [1337] [1338] [1339] [1340] [1341] [1342] [1343] [1344] [1345] [1346] [1347] [1348] [1349] [1350] [1351] [1352] [1353] [1354] [1355] [1356] [1357] [1358] [1359] [1360] [1361] [1362] [1363] [1364] [1365] [1366] [1367] [1368] [1369] [1370] [1371] [1372] [1373] [1374] [1375] [1376] [1377] [1378] [1379] [1380] [1381] [1382] [1383] [1384] [1385] [1386] [1387] [1388] [1389] [1390] [1391] [1392] [1393] [1394] [1395] [1396] [1397] [1398] [1399] [1400] [1401] [1402] [1403] [1404] [1405] [1406] [1407] [1408] [1409] [1410] [1411] [1412] [1413] [1414] [1415] [1416] [1417] [1418] [1419] [1420] [1421] [1422] [1423] [1424] [1425] [1426] [1427] [1428] [1429] [1430] [1431] [1432] [1433] [1434] [1435] [1436] [1437] [1438] [1439] [1440] [1441] [1442] [1443] [1444] [1445] [1446] [1447] [1448] [1449] [1450] [1451] [1452] [1453] [1454] [1455] [1456] [1457] [1458] [1459] [1460] [1461] [1462] [1463] [1464] [1465] [1466] [1467] [1468] [1469] [1470] [1471] [1472] [1473] [1474] [1475] [1476] [1477] [1478] [1479] [1480] [1481] [1482] [1483] [1484] [1485] [1486] [1487] [1488] [1489] [1490] [1491] [1492] [1493] [1494] [1495] [1496] [1497] [1498] [1499] [1500] [1501] [1502] [1503] [1504] [1505] [1506] [1507] [1508] [1509] [1510] [1511] [1512] [1513] [1514] [1515] [1516] [1517] [1518] [1519] [1520] [1521] [1522] [1523] [1524] [1525] [1526] [1527] [1528] [1529] [1530] [1531] [1532] [1533] [1534] [1535] [1536] [1537] [1538] [1539] [1540] [1541] [1542] [1543] [1544] [1545] [1546] [1547] [1548] [1549] [1550] [1551] [1552] [1553] [1554] [1555] [1556] [1557] [1558] [1559] [1560] [1561] [1562] [1563] [1564] [1565] [1566] [1567] [1568] [1569] [1570] [1571] [1572] [1573] [1574] [1575] [1576] [1577] [1578] [1579] [1580] [1581] [1582] [1583] [1584] [1585] [1586] [1587] [1588] [1589] [1590] [1591] [1592] [1593] [1594] [1595] [1596] [1597] [1598] [1599] [1600] [1601] [1602] [1603] [1604] [1605] [1606] [1607] [1608] [1609] [1610] [1611] [1612] [1613] [1614] [1615] [1616] [1617] [1618] [1619] [1620] [1621] [1622] [1623] [1624] [1625] [1626] [1627] [1628] [1629] [1630] [1631] [1632] [1633] [1634] [1635] [1636] [1637] [1638] [1639] [1640] [1641] [1642] [1643] [1644] [1645] [1646] [1647] [1648] [1649] [1650] [1651] [1652] [1653] [1654] [1655] [1656] [1657] [1658] [1659] [1660] [1661] [1662] [1663] [1664] [1665] [1666] [1667] [1668] [1669] [1670] [1671] [1672] [1673] [1674] [1675] [1676] [1677] [1678] [1679] [1680] [1681] [1682] [1683] [1684] [1685] [1686] [1687] [1688] [1689] [1690] [1691] [1692] [1693] [1694] [1695] [1696] [1697] [1698] [1699] [1700] [1701] [1702] [1703] [1704] [1705] [1706] [1707] [1708] [1709] [1710] [1711] [1712] [1713] [1714] [1715] [1716] [1717] [1718] [1719] [1720] [1721] [1722] [1723] [1724] [1725] [1726] [1727] [1728] [1729] [1730] [1731] [1732] [1733] [1734] [1735] [1736] [1737] [1738] [1739] [1740] [1741] [1742] [1743] [1744] [1745] [1746] [1747] [1748] [1749] [1750] [1751] [1752] [1753] [1754] [1755] [1756] [1757] [1758] [1759] [1760] [1761] [1762] [1763] [1764] [1765] [1766] [1767] [1768] [1769] [1770] [1771] [1772] [1773] [1774] [1775] [1776] [1777] [1778] [1779] [1780] [1781] [1782] [1783] [1784] [1785] [1786] [1787] [1788] [1789] [1790] [1791] [1792] [1793] [1794] [1795] [1796] [1797] [1798] [1799] [1800] [1801] [1802] [1803] [1804] [1805] [1806] [1807] [1808] [1809] [1810] [1811] [1812] [1813] [1814] [1815] [1816] [1817] [1818] [1819] [1820] [1821] [1822] [1823] [1824] [1825] [1826] [1827] [1828] [1829] [1830] [1831] [1832] [1833] [1834] [1835] [1836] [1837] [1838] [1839] [1840] [1841] [1842] [1843] [1844] [1845] [1846] [1847] [1848] [1849] [1850] [1851] [1852] [1853] [1854] [1855] [1856] [1857] [1858] [1859] [1860] [1861] [1862] [1863] [1864] [1865] [1866] [1867] [1868] [1869] [1870] [1871] [1872] [1873] [1874] [1875] [1876] [1877] [1878] [1879] [1880] [1881] [1882] [1883] [1884] [1885] [1886] [1887] [1888] [1889] [1890] [1891] [1892] [1893] [1894] [1895] [1896] [1897] [1898] [1899] [1900] [1901] [1902] [1903] [1904] [1905] [1906] [1907] [1908] [1909] [1910] [1911] [1912] [1913] [1914] [1915] [1916] [1917] [1918] [1919] [1920] [1921] [1922] [1923] [1924] [1925] [1926] [1927] [1928] [1929] [1930] [1931] [1932] [1933] [1934] [1935] [1936] [1937] [1938] [1939] [1940] [1941] [1942] [1943] [1944] [1945] [1946] [1947] [1948] [1949] [1950] [1951] [1952] [1953] [1954] [1955] [1956] [1957] [1958] [1959] [1960] [1961] [1962] [1963] [1964] [1965] [1966] [1967] [1968] [1969] [1970] [1971] [1972] [1973] [1974] [1975] [1976] [1977] [1978] [1979] [1980] [1981] [1982] [1983] [1984] [1985] [1986] [1987] [1988] [1989] [1990] [1991] [1992] [1993] [1994] [1995] [1996] [1997] [1998] [1999] [2000] [2001] [2002] [2003] [2004] [2005] [2006] [2007] [2008] [2009] [2010] [2011] [2012] [2013] [2014] [2015] [2016] [2017] [2018] [2019] [2020] [2021] [2022] [2023] [2024] [2025] [2026] [2027] [2028] [2029] [2030] [2031] [2032] [2033] [2034] [2035] [2036] [2037] [2038] [2039] [2040] [2041] [2042] [2043] [2044] [2045] [2046] [2047] [2048] [2049] [2050] [2051] [2052] [2053] [2054] [2055] [2056] [2057] [2058] [2059] [2060] [2061] [2062] [2063] [2064] [2065] [2066] [2067] [2068] [2069] [2070] [2071] [2072] [2073] [2074] [2075] [2076] [2077] [2078] [2079] [2080] [2081] [2082] [2083] [2084] [2085] [2086] [2087] [2088] [2089] [2090] [2091] [2092] [2093] [2094] [2095] [2096] [2097] [2098] [2099] [2100] [2101] [2102] [2103] [2104] [2105] [2106] [2107] [2108] [2109] [2110] [2111] [2112] [2113] [2114] [2115] [2116] [2117] [2118] [2119] [2120] [2121] [2122] [2123] [2124] [2125] [2126] [2127] [2128] [2129] [2130] [2131] [2132] [2133] [2134] [2135] [2136] [2137] [2138] [2139] [2140] [2141] [2142] [2143] [2144] [2145] [2146] [2147] [2148] [2149] [2150] [2151] [2152] [2153] [2154] [2155] [2156] [2157] [2158] [2159] [2160] [2161] [2162] [2163] [2164] [2165] [2166] [2167] [2168] [2169] [2170] [2171] [2172] [2173] [2174] [2175] [2176] [2177] [2178] [2179] [2180] [2181] [2182] [2183] [2184] [2185] [2186] [2187] [2188] [2189] [2190] [2191] [2192] [2193] [2194] [2195] [2196] [2197] [2198] [2199] [2200] [2201] [2202] [2203] [2204] [2205] [2206] [2207] [2208] [2209] [2210] [2211] [2212] [2213] [2214] [2215] [2216] [2217] [2218] [2219] [2220] [2221] [2222] [2223] [2224] [2225] [2226] [2227] [2228] [2229] [2230] [2231] [2232] [2233] [2234] [2235] [2236] [2237] [2238] [2239] [2240] [2241] [2242] [2243] [2244] [2245] [2246] [2247] [2248] [2249] [2250] [2251] [2252] [2253] [2254] [2255] [2256] [2257] [2258] [2259] [2260] [2261] [2262] [2263] [2264] [2265] [2266] [2267] [2268] [2269] [2270] [2271] [2272] [2273] [2274] [2275] [2276] [2277] [2278] [2279] [2280] [2281] [2282] [2283] [2284] [2285] [2286] [2287] [2288] [2289] [2290] [2291] [2292] [2293] [2294] [2295] [2296] [2297] [2298] [2299] [2300] [2301] [2302] [2303] [2304] [2305] [2306] [2307] [2308] [2309] [2310] [2311] [2312] [2313] [2314] [2315] [2316] [2317] [2318] [2319] [2320] [2321] [2322] [2323] [2324] [2325] [2326] [2327] [2328] [2329] [2330] [2331] [2332] [2333] [2334] [2335] [2336] [2337] [2338] [2339] [2340] [2341] [2342] [2343] [2344] [2345] [2346] [2347] [2348] [2349] [2350] [2351] [2352] [2353] [2354] [2355] [2356] [2357] [2358] [2359] [2360] [2361] [2362] [2363] [2364] [2365] [2366] [2367] [2368] [2369] [2370] [2371] [2372] [2373] [2374] [2375] [2376] [2377] [2378] [2379] [2380] [2381] [2382] [2383] [2384] [2385] [2386] [2387] [2388] [2389] [2390] [2391] [2392] [2393] [2394] [2395] [2396] [2397] [2398] [2399] [2400] [2401] [2402] [2403] [2404] [2405] [2406] [2407] [2408] [2409] [2410] [2411] [2412] [2413] [2414] [2415] [2416] [2417] [2418] [2419] [2420] [2421] [2422] [2423] [2424] [2425] [2426] [2427] [2428] [2429] [2430] [2431] [2432] [2433] [2434] [2435] [2436] [2437] [2438] [2439] [2440] [2441] [2442] [2443] [2444] [2445] [2446] [2447] [2448] [2449] [2450] [2451] [2452] [2453] [2454] [2455] [2456] [2457] [2458] [2459] [2460] [2461] [2462] [2463] [2464] [2465] [2466] [2467] [2468] [2469] [2470] [2471] [2472] [2473] [2474] [2475] [2476] [2477] [2478] [2479] [2480] [2481] [2482] [2483] [2484] [2485] [2486] [2487] [2488] [2489] [2490] [2491] [2492] [2493] [2494] [2495] [2496] [2497] [2498] [2499] [2500] [2501] [2502] [2503] [2504] [2505] [2506] [2507] [2508] [2509] [2510] [2511] [2512] [2513] [2514] [2515] [2516] [2517] [2518] [2519] [2520] [2521] [2522] [2523] [2524] [2525] [2526] [2527] [2528] [2529] [2530] [2531] [2532] [2533] [2534] [2535] [2536] [2537] [2538] [2539] [2540] [2541] [2542] [2543] [2544] [2545] [2546] [2547] [2548] [2549] [2550] [2551] [2552] [2553] [2554] [2555] [2556] [2557] [2558] [2559] [2560] [2561] [2562] [2563] [2564] [2565] [2566] [2567] [2568] [2569] [2570] [2571] [2572] [2573] [2574] [2575] [2576] [2577] [2578] [2579] [2580] [2581] [2582] [2583] [2584] [2585] [2586] [2587] [2588] [2589] [2590] [2591] [2592] [2593] [2594] [2595] [2596] [2597] [2598] [2599] [2600] [2601] [2602] [2603] [2604] [2605] [2606] [2607] [2608] [2609] [2610] [2611] [2612] [2613] [2614] [2615] [2616] [2617] [2618] [2619] [2620] [2621] [2622] [2623] [2624] [2625] [2626] [2627] [2628] [2629] [2630] [2631] [2632] [2633] [2634] [2635] [2636] [2637] [2638] [2639] [2640] [2641] [2642] [2643] [2644] [2645] [2646] [2647] [2648] [2649] [2650] [2651] [2652] [2653] [2654] [2655] [2656] [2657] [2658] [2659] [2660] [2661] [2662] [2663] [2664] [2665] [2666] [2667] [2668] [2669] [2670] [2671] [2672] [2673] [2674] [2675] [2676] [2677] [2678] [2679] [2680] [2681] [2682] [2683] [2684] [2685] [2686] [2687] [2688] [2689] [2690] [2691] [2692] [2693] [2694] [2695] [2696] [2697] [2698] [2699] [2700] [2701] [2702] [2703] [2704] [2705] [2706] [2707] [2708] [2709] [2710] [2711] [2712] [2713] [2714] [2715] [2716] [2717] [2718] [2719] [2720] [2721] [2722] [2723] [2724] [2725] [2726] [2727] [2728] [2729] [2730] [2731] [2732] [2733] [2734] [2735] [2736] [2737] [2738] [2739] [2740] [2741] [2742] [2743] [2744] [2745] [2746] [2747] [2748] [2749] [2750] [2751] [2752] [2753] [2754] [2755] [2756] [2757] [2758] [2759] [2760] [2761] [2762] [2763] [2764] [2765] [2766] [2767] [2768] [2769] [2770] [2771] [2772] [2773] [2774] [2775] [2776] [2777] [2778] [2779] [2780] [2781] [2782] [2783] [2784] [2785] [2786] [2787] [2788] [2789] [2790] [2791] [2792] [2793] [2794] [2795] [2796] [2797] [2798] [2799] [2800] [2801] [2802] [2803] [2804] [2805] [2806] [2807] [2808] [2809] [2810] [2811] [2812] [2813] [2814] [2815] [2816] [2817] [2818] [2819] [2820] [2821] [2822] [2823] [2824] [2825] [2826] [2827] [2828] [2829] [2830] [2831] [2832] [2833] [2834] [2835] [2836] [2837] [2838] [2839] [2840] [2841] [2842] [2843] [2844] [2845] [2846] [2847] [2848] [2849] [2850] [2851] [2852] [2853] [2854] [2855] [2856] [2857] [2858] [2859] [2860] [2861] [2862] [2863] [2864] [2865] [2866] [2867] [2868] [2869] [2870] [2871] [2872] [2873] [2874] [2875] [2876] [2877] [2878] [2879] [2880] [2881] [2882] [2883] [2884] [2885] [2886] [2887] [2888] [2889] [2890] [2891] [2892] [2893] [2894] [2895] [2896] [2897] [2898] [2899] [2900] [2901] [2902] [2903] [2904] [2905] [2906] [2907] [2908] [2909] [2910] [2911] [2912] [2913] [2914] [2915] [2916] [2917] [2918] [2919] [2920] [2921] [2922] [2923] [2924] [2925]
/***************************************************************************** /* WASD.h Main header file for WASD VMS HTTP daemon. VERSION HISTORY --------------- 12-NOV-2020 MGD v12.0.0, So long, farewell, Auf Wiedersehen, goodnight (-VAX) 23-OCT-2017 MGD v11.2.0, InstanceStatus..[] 02-AUG-2015 MGD v11.0.0 HTTP/2 10-MAR-2015 MGD v10.4.2, CONFIG_SERVER_LOGS logical names precede fixed locale 12-MAR-2012 MGD v10.1.1, MATCH0..8() macro improves efficiency over memcmp() SAME1..4() macro abstracts the *(USHORTPTR)s, etc. 14-MAR-2011 MGD __unaligned directive added to pointer macros in a (successful) effort to avoid alignment faults 20-JUL-2009 MGD can't believe it but some PHP script paths are exceeding a SCRIPT_NAME_SIZE of 128 - bump to 256! 06-JUL-2009 MGD v10.0.0, accomodate v10 and pre-v10 logical names 22-JUL-2004 MGD v9.0.0, HTTP/1.1 compliance 20-DEC-2004 MGD v8.4.0, all "#ifdef __ALPHA"s changed to "#ifndef __VAX" to support compilation for IA64 15-OCT-2002 MGD v8.1.0, base compiler messages on WATCH_MOD not DBUG 12-DEC-2000 MGD v7.2.0, remote user size changed for X509 major reorg of data types, etc. 06-MAY-2000 MGD v7.0.0, reorganise data structures 23-DEC-1999 MGD v6.1.2, DECC v6.2 warning control 31-OCT-1999 MGD v6.1.0, CGIplus "agents" 16-OCT-1999 MGD v6.0.3, DEC TCP/IP v5.n compatibility definitions 10-JAN-1999 MGD v6.0.0, proxy serving 19-SEP-1998 MGD v5.3.0, disperse to module headers :^) 14-APR-1998 MGD v5.0.1, XSSI extensions 07-JAN-1998 MGD v5.0.0, HTTPd version 5 (Secure Sockets Layer, using SSLeay) 05-OCT-1997 MGD v4.5.0, file cache 06-SEP-1997 MGD v4.4.0, multiple server host names and ports 08-JUN-1997 MGD v4.2.0, CGIplus 01-FEB-1997 MGD v4.0.0, HTTPd version 4 01-AUG-1996 MGD v3.3.0, quite a few changes since 3.0.n 01-DEC-1995 MGD v3.0.0, HTTPd version 3 20-DEC-1994 MGD v2.0.0, multi-threaded version 20-JUN-1994 MGD v1.0.0, single-threaded version */ /*****************************************************************************/ #ifndef WASD_H_LOADED #define WASD_H_LOADED 1 #ifdef __VAX #error VAX no longer supported - it did have a 26 year run! #endif #ifdef WATCH_MOD # if WATCH_MOD # if (__DECC_VER > 60000000) # pragma message enable (ALL) # pragma message disable (CVTDIFTYPES) # pragma message disable (EMBEDCOMMENT) # pragma message disable (MAYLOSEDATA) # pragma message disable (LONGEXTERN) # pragma message disable (NORETURNVAL1,NOTYPES,NONEWTYPE,NOTCONSTQUAL) # pragma message disable (PTRMISMATCH,PTRMISMATCH1) # else # pragma message disable (ALL) # endif # else # pragma message disable (ALL) # endif #else # pragma message disable (ALL) #endif #include <types.h> /* VMS headers */ #include <descrip.h> #include <ints.h> #include <rms.h> #include <ssdef.h> #include <stsdef.h> /* this definition is not available in VMS versions earlier than 7.0 */ #ifndef EFN$C_ENF # define EFN$C_ENF 128 /* Event No Flag (no stored state) */ #endif /* Alpha NO MEMBER ALIGNMENT unless otherwise specified */ #pragma nomember_alignment #include "regex.h" #ifndef VERSION_H_LOADED # include "version.h" #endif /*****************/ /* logical names */ /*****************/ #define WASD_ALERT_QUOTAS "WASD_ALERT_QUOTAS" #define WASD_BIG_NUMBER "WASD_BIG_NUMBER" #define WASD_CLUSTER_NODES "WASD_CLUSTER_NODES" #define WASD_DCL_PRCNAM_PRE12 "WASD_DCL_PRCNAM_PRE12" #define WASD_DCL_AGENT_PRE12 "WASD_DCL_AGENT_PRE12" #define WASD_ENV "WASD_ENV" #define WASD_GMT "WASD_GMT" #define HTTPD$GMT "HTTPD$GMT" #define WASD_HTTP2_WEBDAV "WASD_HTTP2_WEBDAV" #define WASD_LOG "WASD_LOG" #define WASD_LOGS "WASD_LOGS" #define HTTPD$LOG "HTTPD$LOG" #define WASD_MKCERT_NO_RETAIN "WASD_MKCERT_NO_RETAIN" #define WASD_ODS_NODIRECT "WASD_ODS_NODIRECT" #define WASD_ODS_REVDATE "WASD_ODS_REVDATE" #define WASD_OPENSSL_MEM_TRACK "WASD_OPENSSL_MEM_TRACK" #define WASD_QIO_MAXSEG "WASD_QIO_MAXSEG" #define WASD_NET_LOOKUP_RETRY "WASD_NET_LOOKUP_RETRY" #define WASD_NET_TEST_BREAK "WASD_NET_TEST_BREAK" #define WASD_NO_ACME "WASD_NO_ACME" #define WASD_NO_SYSUAF_ACME "WASD_NO_SYSUAF_ACME" #define WASD_NOTICED_NODUMP "WASD_NOTICED_NODUMP" #define WASD_PERSISTENT_LIMIT "WASD_PERSISTENT_LIMIT" #define WASD_PROCESS_NAME "WASD_PROCESS_NAME" #define WASD_REDIRECT_WILDCARD "WASD_REDIRECT_WILDCARD" #define WASD_SERVER_HOST_PORT "WASD_SERVER_HOST_PORT" #define WASD_STARTUP_ABORT "WASD_STARTUP_ABORT" #define WASD_SYSPLUS_NI "WASD_SYSPLUS_NI" #define WASD_TCPIP_LOOKUP_INLINE "WASD_TCPIP_LOOKUP_INLINE" #define WASD_TCPIP_LOOKUP_AGENT "WASD_TCPIP_LOOKUP_AGENT" #define WASD_TCPIP_LOOKUP_ACP "WASD_TCPIP_LOOKUP_ACP" #define WASD_TUNNEL_SECONDS "WASD_TUNNEL_SECONDS" #define WASD_UTC "WASD_UTC" #define WASD_WATCH_RPCC "WASD_WATCH_RPCC" #define WASTEE_LOGFILE "WASTEE_LOGFILE" #define WASD_X509_EXTENSION_KEYWORDS "WASD_X509_EXTENSION_KEYWORDS" #define WASD_VM_CACHE "WASD_VM_CACHE" #define WASD_VM_DECC "WASD_VM_DECC" #define WASD_VM_EXPAT "WASD_VM_EXPAT" #define WASD_VM_GENERAL "WASD_VM_GENERAL" #define WASD_VM_HTTP2 "WASD_VM_HTTP2" #define WASD_VM_OPENSSL "WASD_VM_OPENSSL" #define WASD_VM_PERMCACHE "WASD_VM_PERMCACHE" #define WASD_VM_PGFL_LIMIT "WASD_VM_PGFL_LIMIT" #define WASD_VM_REPORT_ALL "WASD_VM_REPORT_ALL" #define WASD_VM_REQUEST "WASD_VM_REQUEST" #define WASD_WEBSOCKET_VERSION "WASD_WEBSOCKET_VERSION" /**********/ /* macros */ /**********/ #define boolean int #define true 1 #define false 0 /* sentinal value allowing a pointer to be set with non-pointer function */ #define NOTPTR ((void*)(-1)) #define FI_LI WASD_MODULE, __LINE__ /* enable features in WASDMON that rely on v10.4.0 */ #define WASDMON_SUPPORT_1040 /* enable features in alamode (aka WASDMON) that rely on v11.0.0 */ #define ALAMODE_SUPPORT_1100 /* ...that rely on v11.2.0 */ #define ALAMODE_SUPPORT_1120 /* ...that rely on v11.3.0 */ #define ALAMODE_SUPPORT_1130 /* ...that rely on v12.0.0 */ #define ALAMODE_SUPPORT_1200 /* an error severity equivalent of the warning severity status */ #define SS$_BUFFEROVF_ERROR (SS$_BUFFEROVF & 0xfffffffe) /* these are scattered about so better $ SEARCH *.H """?" */ #define CONFIG_WASD_ROOT "?WASD_ROOT:[000000]\0HT_ROOT:[000000]\0" #define CONFIG_AUTH_FILE_NAME "?WASD_CONFIG_AUTH\0HTTPD$AUTH\0" #define CONFIG_FILE_NAME "?WASD_CONFIG_GLOBAL\0HTTPD$CONFIG\0" #define CONFIG_MAP_FILE_NAME "?WASD_CONFIG_MAP\0HTTPD$MAP\0" #define CONFIG_MSG_FILE_NAME "?WASD_CONFIG_MSG\0HTTPD$MSG\0" #define CONFIG_SERVICE_FILE_NAME "?WASD_CONFIG_SERVICE\0HTTPD$SERVICE\0" #define CONFIG_SERVER_LOGS \ "?WASD_SERVER_LOGS:\0HT_SERVER_LOGS:\0WASD_ROOT:[LOG_SERVER]\0" #define CONFIG_SITELOG_FILE_NAME \ "?WASD_SITELOG\0HTTPD$SITELOG\0" #define DEFAULT_SITELOG_FILE_NAME \ "?WASD_ROOT:[LOCAL]SITE.LOG\0HT_ROOT:[LOCAL]SITE.LOG\0" #define CONFIG_SSL_CAFILE "?WASD_SSL_CAFILE\0HTTPD$SSL_CAFILE\0" #define CONFIG_SSL_CERT "?WASD_SSL_CERT\0HTTPD$SSL_CERT\0" #define CONFIG_SSL_CIPHER "?WASD_SSL_CIPHER\0HTTPD$SSL_CIPHER\0" #define CONFIG_SSL_KEY "?WASD_SSL_KEY\0HTTPD$SSL_KEY\0" #define CONFIG_SSL_PARAMS "?WASD_SSL_PARAMS\0HTTPD$SSL_PARAMS\0" /* allows the HTTPd to be operated with SYSPRV permanently enabled */ #define OPERATE_WITH_SYSPRV 0 #define DEFAULT_HTTP_PORT 80 #define DEFAULT_HTTPS_PORT 443 #define DEFAULT_HTTP_PROXY_PORT 8080 #define DEFAULT_LISTEN_BACKLOG 5 /* this value limits concurrent client->server connections */ #define DEFAULT_CONCURRENT_CONNECT_MAX 200 /* this value limits the number of requests concurrently processed */ #define DEFAULT_CONCURRENT_PROCESS_MAX 100 #define DEFAULT_TIMEOUT_INPUT_MINUTES 1 #define DEFAULT_TIMEOUT_OUTPUT_MINUTES 10 #define DEFAULT_TIMEOUT_NOPROGRESS_MINUTES 3 #define DEFAULT_TIMEOUT_PERSISTENT_SECONDS 0 /* if a timed-out request has not gone then close the network connection */ #define TIMEOUT_ABORT_SECONDS 20 /* limit on persistent connections (999999 effectively disables) */ #define PERSISTENT_LIMIT 999999 /* maximum consecutive failures on persistent connection before disconnect */ #define PERSISTENT_FAILURE_MAX 256 /* maximum successive failures on secure connection before exit and restart */ #define SESOLA_NET_PROBLEM_MAX 64 #define DEFAULT_DCL_CGI_HEADER_SIZE 2048 #define DEFAULT_DCL_CGIPLUSIN_SIZE 3072 #define DEFAULT_DCL_SYSCOMMAND_SIZE 4096 #define DEFAULT_DCL_SYSOUTPUT_SIZE 4096 #define DEFAULT_FILE_BUFFER_SIZE 1024 #define DEFAULT_NET_READ_BUFFER_SIZE 2048 #define DEFAULT_OUTPUT_BUFFER_SIZE 4096 #define MAX_REQUEST_HEADER 32768 #define MAX_REQUEST_FIELD_NAME_LEN 255 /* prefixes the rights identifier name used for tagging DCL script processes */ #define PROCESS_RIGHTS_ID_PREFIX "WASD_PRC_" /* control pre-expired responses */ #define PRE_EXPIRE_ADMIN 1 #define PRE_EXPIRE_DELETE_ON_CLOSE 1 #define PRE_EXPIRE_FTP_PROXY 0 #define PRE_EXPIRE_INDEX_OF 0 #define PRE_EXPIRE_MAPPING_RULES 0 #define PRE_EXPIRE_PUT 1 #define PRE_EXPIRE_SSI 0 #define PRE_EXPIRE_UPD 1 #define PRE_EXPIRE_UPD_TREE_OF 1 #define PRE_EXPIRE_WATCH 1 #define PRE_EXPIRE_WEBDAV 1 /* versions of the HTTP protocol */ #define HTTP_VERSION_NOT_SET 0 #define HTTP_VERSION_0_9 9 #define HTTP_VERSION_1_0 10 #define HTTP_VERSION_1_1 11 #define HTTP_VERSION_2 20 #define HTTP_VERSION_UNKNOWN -1 /* used when data differentiated by protocol (e.g. accounting) */ #define HTTP12 0 /* all requests */ #define HTTP1 1 /* HTTP/1.n requests */ #define HTTP2 2 /* HTTP/2 requests */ #define HTTPN 3 /* number of elements in array */ /* constants used to identify HTTP methods (MUST be a BITMAP for AUTH*.C) */ #define HTTP_METHOD_CONNECT 0x00000001 #define HTTP_METHOD_DELETE 0x00000002 #define HTTP_METHOD_GET 0x00000004 #define HTTP_METHOD_HEAD 0x00000008 #define HTTP_METHOD_POST 0x00000010 #define HTTP_METHOD_PUT 0x00000020 #define HTTP_METHOD_TRACE 0x00000040 #define HTTP_METHOD_OPTIONS 0x00000080 #define HTTP_METHOD_WEBDAV_COPY 0x00000100 #define HTTP_METHOD_WEBDAV_LOCK 0x00000200 #define HTTP_METHOD_WEBDAV_MKCOL 0x00000400 #define HTTP_METHOD_WEBDAV_MOVE 0x00000800 #define HTTP_METHOD_WEBDAV_PROPFIND 0x00001000 #define HTTP_METHOD_WEBDAV_PROPPATCH 0x00002000 #define HTTP_METHOD_WEBDAV_UNLOCK 0x00004000 #define HTTP_METHOD_SHARE_SSH 0x00100000 #define HTTP_METHOD_EXTENSION 0x10000000 #define HTTP_METHOD_UNSUPPORTED 0x80000000 #define HTTP_READ_METHODS (HTTP_METHOD_GET | \ HTTP_METHOD_HEAD | \ HTTP_METHOD_OPTIONS) #define HTTP_WRITE_METHODS (HTTP_METHOD_CONNECT | \ HTTP_METHOD_DELETE | \ HTTP_METHOD_POST | \ HTTP_METHOD_PUT) #define HTTP_WEBDAV_READ_METHODS (HTTP_METHOD_WEBDAV_PROPFIND) #define HTTP_WEBDAV_WRITE_METHODS (HTTP_METHOD_WEBDAV_COPY | \ HTTP_METHOD_WEBDAV_LOCK | \ HTTP_METHOD_WEBDAV_MOVE | \ HTTP_METHOD_WEBDAV_MKCOL | \ HTTP_METHOD_WEBDAV_PROPPATCH | \ HTTP_METHOD_WEBDAV_UNLOCK) /* constants for controlling logging */ #define LOGGING_BEGIN 1 #define LOGGING_CLOSE 2 #define LOGGING_END 3 #define LOGGING_ENTRY 4 #define LOGGING_FLUSH 5 #define LOGGING_OPEN 6 #define LOGGING_SHUT 7 #define LOGGING_TIMESTAMP 8 /* constants for OPCOM messages */ #define OPCOM_HTTPD 0x01 #define OPCOM_CONTROL 0x02 #define OPCOM_ADMIN 0x04 #define OPCOM_AUTHORIZATION 0x08 #define OPCOM_PROXY_MAINT 0x10 /* constants used by HTTPd supervisor timer */ #define TIMER_INPUT 1 #define TIMER_THROTTLE 2 #define TIMER_OUTPUT 3 #define TIMER_NOPROGRESS 4 #define TIMER_PERSISTENT 5 #define TIMER_TERMINATE 6 /* constants used to indicate the nature of the timeout */ #define TIMEOUT_NONE 0 #define TIMEOUT_INPUT 1 #define TIMEOUT_THROTTLE 2 #define TIMEOUT_OUTPUT 3 #define TIMEOUT_NOPROGRESS 4 #define TIMEOUT_PERSISTENT 5 #define TIMEOUT_TERMINATE 6 /* constants used by the description module */ #define DESCRIPTION_ALL 0x01 #define DESCRIPTION_TEXT_PLAIN 0x02 #define DESCRIPTION_TEXT_HTML 0x04 /* this is returned in the first character the file type contains none */ #define DESCRIPTION_IMPOSSIBLE 0xff /* default directory listing layout */ #define DEFAULT_DIR_LAYOUT "I__L__R__S:b__D" /* WASD_CONFIG_GLOBAL directive obsolete at v11.5.0 */ #define ADMIN_BODY_TAG "<body link=\"#0000cc\" vlink=\"#0000cc\">" #define REPORT_BODY_TAG "<body link=\"#0000cc\" vlink=\"#0000cc\">" /* "http:" or "https:" service and request */ #define SCHEME_HTTP 1 #define SCHEME_HTTPS 2 /* if true, stops HTTPd server account with SYSPRV PUT(etc)ing - DANGEROUS */ #define PUT_DISALLOW_SYSPRV 0 #define CONFIG_HOME_PAGES_MAX 16 #define CONFIG_README_FILES_MAX 16 #define CONFIG_SCRIPT_PROCTOR_MAX 16 #define CONFIG_SCRIPT_RUNTIME_MAX 16 #define CONFIG_REVALIDATE_MINUTES_MAX 1440 #define CONFIG_SERVER_SIGNATURE_OFF 0 #define CONFIG_SERVER_SIGNATURE_ON 1 #define CONFIG_SERVER_SIGNATURE_EMAIL 2 #define SCRIPT_NAME_SIZE 256 #define METHOD_NAME_SIZE 32 #define CONFIG_DEFAULT_DIR_BODY_TAG "<body>" #define CONFIG_DEFAULT_ADMIN_BODY_TAG \ "<body bgcolor=\"#ffffff\" link=\"#0000cc\" vlink=\"#0000cc\">" #define CONFIG_DEFAULT_REPORT_BODY_TAG \ "<body bgcolor=\"#ffffff\" link=\"#0000cc\" vlink=\"#0000cc\">" /* maximum Kbytes (1024) that can be in a body to be POSTed or PUTted */ #define PUT_DEFAULT_KBYTES_MAX 250 /* number of versions retained for files POSTed or PUTed */ #define PUT_DEFAULT_VERSION_LIMIT 3 /* W:RE,G:RE,O:RWED,S:RWED */ #define PUT_DEFAULT_FILE_PROTECTION 0xaa00 /* W:RE,G:RE,O:RWED,S:RWED */ #define WEBDAV_DEFAULT_FILE_PROTECTION 0xaa00 /* number of times a request can internally redirect */ #define REQUEST_REDIRECTION_MAX 5 /* number of times a request can be successfully run down (i.e. seconds) */ #define REQUEST_RUNDOWN_MAX 15 /* number of times a request can be redacted */ #define REQUEST_REDACT_MAX 5 /* number of possible status codes groups multiplied by status coded */ #define RESPONSE_STATUS_CODE_MAX 6*30 /* number of pointers available for adding server-generated cookies */ #define RESPONSE_COOKIE_MAX 20 /* WASD tag generated from file; hex digits: 12 for FID, 16 for RDT */ #define ENTITY_TAG_MAX 28 /* generated by script and stored in cache structure */ #define CACHE_ENTITY_MAX 63 /* internal "scripts" */ #define ADMIN_SCRIPT_ECHO "/echo" #define ADMIN_SCRIPT_HISS "/hiss" #define ADMIN_SCRIPT_HISS_MAX_BYTES 1048176 #define ADMIN_SCRIPT_STREAM "/stream" #define ADMIN_SCRIPT_TREE "/tree" #define ADMIN_SCRIPT_UPD "/upd" #define ADMIN_SCRIPT_WHERE "/where" #define ADMIN_SCRIPT_XRAY "/xray" /* default instance number when in demo mode */ #define DEMO_INSTANCE_GROUP_NUMBER 0 /* regular expression processing */ #define REGEX_CHAR '^' /* number of structures for holding match offsets */ #define REGEX_PMATCH_MAX 10 /* compile flags, case-insensitive extended GREP, anchors match newlines */ #define REGEX_C_FLAGS (REG_EXTENDED | REG_ICASE | REG_NEWLINE) /* execution flags */ #define REGEX_E_FLAGS (0) /* for creating network mode detached processes */ #define NETWORK_MODE_LOG_NAME "NET$WASD.LOG" #define LGI$M_NET_PROXY 1 #define UAF$S_USERNAME 12 #define UAF$S_PASSWORD 32 #define UAF$S_ACCOUNT 8 /* used to highlight alternate rows in some admin reports */ #define ADMIN_REPORT_ALTHI "class=\"althi\" bgcolor=\"#eeeeee\"" #define WASD_DOCTYPE "<!DOCTYPE html>\n" /* flag time comparisons */ #define TIME64_1GT2(t1,t2) ((t1) > (t2)) #define TIME64_1GE2(t1,t2) ((t1) >= (t2)) #define TIME64_1LT2(t1,t2) ((t1) < (t2)) #define TIME64_1LE2(t1,t2) ((t1) <= (t2)) #define TIME64_1EQ2(t1,t2) ((t1) == (t2)) #define TIME64_ZERO(t1) (!(t1) || (t1 == DELTA64_ZERO)) /* numbers of 10 nanoseconds in these */ #define TIME64_ONE_SEC ((int64)10000000) #define TIME64_ONE_MIN ((int64)60*10000000) #define TIME64_ONE_HOUR ((int64)60*60*10000000) #define TIME64_ONE_DAY ((int64)24*60*60*10000000) /* 64 bit delta times */ #define DELTA64_ZERO ((int64)-1) #define DELTA64_ONE_USEC ((int64)-10) #define DELTA64_TEN_USEC ((int64)-100) #define DELTA64_HUN_USEC ((int64)-1000) #define DELTA64_ONE_MSEC ((int64)-10000) #define DELTA64_TEN_MSEC ((int64)-100000) #define DELTA64_HUN_MSEC ((int64)-1000000) #define DELTA64_ONE_SEC ((int64)-10000000) #define DELTA64_TWO_SEC ((int64)-20000000) #define DELTA64_FIVE_SEC ((int64)-50000000) #define DELTA64_TEN_SEC ((int64)-100000000) #define DELTA64_THIRTY_SEC ((int64)-300000000) #define DELTA64_ONE_MIN ((int64)-10000000*60) #define DELTA64_ONE_HR ((int64)-10000000*60*60) #define DELTA64_ONE_DAY ((int64)-10000000*60*60*24) /*********************/ /* functional macros */ /*********************/ /* mainly to allow easy use of the __unaligned directive */ #define UINTPTR __unaligned uint* #define ULONGPTR __unaligned ulong* #define USHORTPTR __unaligned ushort* #define INT64PTR __unaligned int64* #define UINT64PTR __unaligned uint64* #define FLOATPTR __unaligned float* #define VMSok(x) ((x) & STS$M_SUCCESS) #define VMSnok(x) (!((x) & STS$M_SUCCESS)) /* is it linear-white-space? (avoids the call overhead of an isspace()) */ #define ISLWS(c) (c == ' ' || c == '\t') #define NOTLWS(c) (c != ' ' && c != '\t') /* is it a control character? */ #define ISCTL(c) (((uchar)c >= 0 && (uchar)c <= 31) || (uchar)c == 127) #define NOTCTL(c) (!(((uchar)c >= 0 && (uchar)c <= 31) || (uchar)c == 127)) /* end of CR or LF terminated line? */ #define ISCRLF(ptr) (c == '\r' || c == '\n') #define NOTCRLF(c) (c != '\r' && c != '\n') /* end of CR or LF terminated line? */ #define ISEOL(c) (c == '\r' || c == '\n' || !c) #define NOTEOL(c) (c != '\r' && c != '\n' && c) /* is a separator character? */ #define ISSEP(c) (!NOTSEP(c)) #define NOTSEP(c) ((c >= 'a' && c <= 'z') || \ (c >= 'A' && c <= 'Z') || \ (c >= '0' && c <= '9') || \ c == '-' || c == '_' || c == '%' || c == '+' || \ c == '\'' || c == '&' || c == '*' || c == '.' || \ c == '!' || c == '$' || c == '^' || c == '#' || \ c == '`' || c == '|' || c == '~' || (uchar)c > 127) /* is either of these quotation marks */ #define ISQUOT(c) (c == '\"' || c == '\'') #define NOTQUOT(c) (c != '\"' && c != '\'') /* WASD uses toupper() so much let's have an inline one of our own */ #define TOUP(c) (ToUpperCase[(uchar)c]) /* likewise (arrays found in SUPPORT.C) */ #define TOLO(c) (ToLowerCase[(uchar)c]) /* demonstrated to be an order of magnitude faster than memcmp() */ #define MATCH0(ptr1,ptr2,len) (memcmp(ptr1,ptr2,len) == 0) #define MATCH1(ptr1,ptr2) (*(char*)(ptr1) == *(char*)(ptr2)) #define MATCH2(ptr1,ptr2) (*(USHORTPTR)(ptr1) == *(USHORTPTR)(ptr2)) #define MATCH3(ptr1,ptr2) ((*(ULONGPTR)(ptr1) & 0x00ffffff) == \ (*(ULONGPTR)(ptr2) & 0x00ffffff)) #define MATCH4(ptr1,ptr2) (*(ULONGPTR)(ptr1) == *(ULONGPTR)(ptr2)) #define MATCH5(ptr1,ptr2) ((*(INT64PTR)(ptr1) & 0x000000ffffffffff) == \ (*(INT64PTR)(ptr2) & 0x000000ffffffffff)) #define MATCH6(ptr1,ptr2) ((*(INT64PTR)(ptr1) & 0x0000ffffffffffff) == \ (*(INT64PTR)(ptr2) & 0x0000ffffffffffff)) #define MATCH7(ptr1,ptr2) ((*(INT64PTR)(ptr1) & 0x00ffffffffffffff) == \ (*(INT64PTR)(ptr2) & 0x00ffffffffffffff)) #define MATCH8(ptr1,ptr2) (*(INT64PTR)(ptr1) == *(INT64PTR)(ptr2)) #define MATCH9(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH1(((char*)ptr1)+8,((char*)ptr2)+8)) #define MATCH10(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH2(((char*)ptr1)+8,((char*)ptr2)+8)) #define MATCH11(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH3(((char*)ptr1)+8,((char*)ptr2)+8)) #define MATCH12(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH4(((char*)ptr1)+8,((char*)ptr2)+8)) #define MATCH13(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH5(((char*)ptr1)+8,((char*)ptr2)+8)) #define MATCH14(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH6(((char*)ptr1)+8,((char*)ptr2)+8)) #define MATCH15(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH7(((char*)ptr1)+8,((char*)ptr2)+8)) #define MATCH16(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH8(((char*)ptr1)+8,((char*)ptr2)+8)) #define MATCH17(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH8(((char*)ptr1)+8,((char*)ptr2)+8) && \ MATCH1(((char*)ptr1)+16,((char*)ptr2)+16)) #define MATCH18(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH8(((char*)ptr1)+8,((char*)ptr2)+8) && \ MATCH2(((char*)ptr1)+16,((char*)ptr2)+16)) #define MATCH19(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH8(((char*)ptr1)+8,((char*)ptr2)+8) && \ MATCH3(((char*)ptr1)+16,((char*)ptr2)+16)) #define MATCH20(ptr1,ptr2) (MATCH8(ptr1,ptr2) && \ MATCH8(((char*)ptr1)+8,((char*)ptr2)+8) && \ MATCH4(((char*)ptr1)+16,((char*)ptr2)+16)) /* demonstrated to be 50% faster than comparable MATCH() */ #define SAME1(ptr,val) (*(char*)(ptr) == val) #define SAME2(ptr,val) (*(USHORTPTR)(ptr) == val) #define SAME3(ptr,val) ((*(ULONGPTR)(ptr) & 0x00ffffff) == val) #define SAME4(ptr,val) (*(ULONGPTR)(ptr) == val) #define SET2(ptr,val) (*(USHORTPTR)(ptr) = val) #define SET4(ptr,val) (*(ULONGPTR)(ptr) = val) #define SET8(ptr,val) (*(INT64PTR)(ptr) = val) /************/ /* typedefs */ /************/ typedef int BOOL; typedef (*FAB_AST) (struct FAB*); typedef (*GENERAL_AST) (ulong); typedef (*VOID_AST) (void*); typedef (*PROXY_AST) (struct ProxyTaskStruct*); typedef (*REQUEST_AST) (struct RequestStruct*); typedef (*CALL_BACK) (ulong); typedef struct RequestPathSetStruct REQUEST_PATHSET; typedef struct RequestStruct REQUEST_STRUCT; /*******************/ /* data structures */ /*******************/ typedef struct ItemList2Struct VMS_ITEM_LIST2; struct ItemList2Struct { ushort buf_len; ushort item; void *buf_addr; }; #pragma required_pointer_size save #pragma required_pointer_size 64 typedef struct ItemList64a VMS_ITEM_LIST_64A; struct ItemList64a { ushort mbo; ushort item; long mbmo; uint64 buf_len; uint64 *buf_addr; }; #pragma required_pointer_size restore typedef struct ItemList3Struct VMS_ITEM_LIST3; struct ItemList3Struct { ushort buf_len; ushort item; void *buf_addr; void *ret_len; }; #pragma required_pointer_size save #pragma required_pointer_size 64 typedef struct ItemList64b VMS_ITEM_LIST_64B; struct ItemList64b { ushort mbo; ushort item; long mbmo; uint64 buf_len; uint64 *buf_addr; uint64 *ret_len; }; #pragma required_pointer_size restore struct AnExitHandler { ulong Flink; ulong HandlerAddress; ulong ArgCount; ulong ExitStatusPtr; }; typedef struct IoSbStruct IO_SB; struct IoSbStruct { ushort Status; ushort Count; variant_union { ulong Unused; ulong MbxPid; } Overlay1; }; struct MbxSenseIOsb { ushort Status; ushort MessageCount; ulong MessageBytes; }; /* 16 bytes for VAX and pre-V8.2 Alpha and Itanium, otherwise 64 bytes */ #define LOCK_VALUE_BLOCK_64 64 #define LOCK_VALUE_BLOCK_16 16 /* only defined for Alpha and Itanium V8.2 and later */ #undef LKI$_VALBLK #define LKI$_VALBLK 515 #undef LKI$_XVALBLK #define LKI$_XVALBLK 530 #undef LKI$_XVALNOTVALID #define LKI$_XVALNOTVALID 531 #undef LCK$M_XVALBLK #define LCK$M_XVALBLK 0x10000 #undef SS$_XVALNOTVALID #define SS$_XVALNOTVALID 2984 #undef lksb typedef struct lksb { ushort lksb$w_status; ushort lksb$w_reserved; uint lksb$l_lkid; uchar lksb$b_valblk [LOCK_VALUE_BLOCK_64]; }; #undef LKIDEF #undef lki$l_mstlkid #undef lki$l_pid #undef lki$l_mstcsid #undef lki$b_rqmode #undef lki$b_grmode #undef lki$b_queue #undef lki$$$_spare #undef lki$l_lkid #undef lki$l_csid typedef struct wasd_lkidef { uint lki$l_mstlkid; uint lki$l_pid; uint lki$l_mstcsid; uchar lki$b_rqmode; uchar lki$b_grmode; char lki$b_queue; char lki$$$_spare; uint lki$l_lkid; uint lki$l_csid; } LKIDEF; /* Store these structures naturally-aligned on AXP. Uses a bit more storage but makes access as efficient as possible. */ #pragma member_alignment __save #pragma member_alignment #define LIST_ENTRY_TYPE_UNDEFINED 0 #define LIST_ENTRY_TYPE_CACHE 1 #define LIST_ENTRY_TYPE_CHARSET 2 #define LIST_ENTRY_TYPE_DAVLOCK 3 #define LIST_ENTRY_TYPE_DCL 4 #define LIST_ENTRY_TYPE_DECNET 5 #define LIST_ENTRY_TYPE_DIR 6 #define LIST_ENTRY_TYPE_HISTORY 7 #define LIST_ENTRY_TYPE_HTTP2 8 #define LIST_ENTRY_TYPE_PERSONA 9 #define LIST_ENTRY_TYPE_REQUEST 10 #define LIST_ENTRY_TYPE_PROXY 11 #define LIST_ENTRY_TYPE_READ2 12 #define LIST_ENTRY_TYPE_SCRIPT 13 #define LIST_ENTRY_TYPE_SERVICE 14 #define LIST_ENTRY_TYPE_SSI 15 #define LIST_ENTRY_TYPE_STREAM2 16 #define LIST_ENTRY_TYPE_THROTTLE 17 #define LIST_ENTRY_TYPE_TIMER 18 #define LIST_ENTRY_TYPE_USER 19 #define LIST_ENTRY_TYPE_WATCH 20 #define LIST_ENTRY_TYPE_WEBSOCKET 21 #define LIST_ENTRY_TYPE_WRITE2 22 typedef struct ListEntryStruct LIST_ENTRY; /* a list entry must be at octet zero of any including structure */ struct ListEntryStruct { LIST_ENTRY *PrevPtr; LIST_ENTRY *NextPtr; void *DataPtr; ulong DataType; }; typedef struct ListHeadStruct LIST_HEAD; struct ListHeadStruct { LIST_ENTRY *HeadPtr; LIST_ENTRY *TailPtr; int EntryCount; }; /* these macros operate on the list head */ #define LIST_GET_HEAD(lp) ((char*)((LIST_HEAD*)lp)->HeadPtr) #define LIST_GET_TAIL(lp) ((char*)((LIST_HEAD*)lp)->TailPtr) #define LIST_GET_COUNT(lp) (((LIST_HEAD*)lp)->EntryCount) #define LIST_IS_EMPTY(lp) (!((LIST_HEAD*)lp)->EntryCount) #define LIST_NOT_EMPTY(lp) (((LIST_HEAD*)lp)->EntryCount) /* these macros operate on list entries */ #define LIST_GET_DATA(lp) ((char*)((char*)lp+sizeof(LIST_ENTRY))) #define LIST_GET_PREV(lp) (((LIST_ENTRY*)lp)->PrevPtr) #define LIST_GET_NEXT(lp) (((LIST_ENTRY*)lp)->NextPtr) #define LIST_HAS_PREV(lp) ((((LIST_ENTRY*)lp)->PrevPtr) != NULL) #define LIST_HAS_NEXT(lp) ((((LIST_ENTRY*)lp)->NextPtr) != NULL) /* wrapper around a simple for(;;) loop */ #define LIST_ITERATE(ptr,list) \ for(ptr=(((LIST_HEAD*)list)->HeadPtr);ptr;ptr=(((LIST_ENTRY*)ptr)->NextPtr)) typedef struct SupervisorListStruct SUPERVISOR_LIST; struct SupervisorListStruct { LIST_HEAD RequestList; int ChunkSeconds; }; typedef struct Md5HashStruct MD5_HASH; struct Md5HashStruct { variant_union { uchar HashChar [16]; ushort HashShort [8]; ulong HashLong [4]; } Overlay1; }; typedef struct SysInfoStruct SYS_INFO; struct SysInfoStruct { ushort HwNameLength, NodeNameLength; ulong AvailCpuCnt, ClusterMember, DECnetVersion, LockValueBlockSize, MaxSysGroup, MemSize, MemoryMB, PageFactor, PageSize, VersionInteger; int64 BootTime64; char HwName [61], MemoryMBGB [16], NodeName [16], Version [9]; }; typedef struct HttpdProcessStruct HTTPD_PROCESS; struct HttpdProcessStruct { BOOL PrivilegedAccount, SysInputFile, SysOutputFile; int BytLmAvailable, UserNameLength, AstLm, BioLm, BytLm, DioLm, EnqLm, FilLm, Grp, Mode, Pid, PgFlQuo, PrcLm, TqLm, Uic; ulong AuthPriv [2]; ushort PrcNamLength; char *ModeName; char ImageInfo [256], PrcNam [16], SysInput [256], SysOutput [256], UserName [UAF$S_USERNAME+1]; }; #define RANGE_BYTE_MAX 256 typedef struct RangeByteStruct RANGE_BYTE; struct RangeByteStruct { int /* number of ranges to be transfered (zero is none/invalid) */ Count, /* current range being transfered (array index, 0 thru to n-1) */ Index, /* offset for the first byte in the first bucket (used by FILE.C) */ Offset, /* number of ranges in the request */ Total; int64 /* total length of current range being transfered (last-first+1) */ Length, /* the number of bytes remaining for current range (used by FILE.C) */ Remaining; int64 /* first byte offset */ First [RANGE_BYTE_MAX], /* last byte offset */ Last [RANGE_BYTE_MAX]; }; /* used to accumulate alignment fault statistics */ struct FaultAccumStruct { ulong pc, cnt; }; struct FaultDataStruct { ulong GetBufferSize, ItemCount, ItemMax, ItemOverflow, PCmask, ReportBufferSize, ReportOverflow, StartTickSecond; struct FaultAccumStruct *ItemArray; }; /*******************************************/ /* header files we need early in the piece */ /*******************************************/ #include "tcpip.h" #include "enamel.h" #include "instance.h" #include "odsstruct.h" #include "metacon.h" #include "proxystruct.h" /**********************************/ /* request history data structure */ /**********************************/ struct RequestHistoryStruct { LIST_ENTRY HistoryListEntry; struct ServiceStruct *ServicePtr; ulong ConnectNumber; int BytesPerSecond, BytesTxGzipPercent, HttpMajorVersion, ResponseStatusCode, RequestState, TimeoutType; int64 Time64, BytesRawRx64, BytesRawTx64, Duration64; char *RequestPtr; BOOL Truncated; char ClientAndRequest [256]; }; /*************************/ /* per-server accounting */ /*************************/ typedef struct AccountingStruct ACCOUNTING_STRUCT; struct AccountingStruct { /* this MUST be the first member to allow zeroing of the rest */ ulong ZeroedCount; ulong AuthAcmeCount, AuthBasicCount, AuthAgentCount, AuthAuthorizedCount, AuthDigestCount, AuthHtDatabaseCount, AuthNotAuthenticatedCount, AuthNotAuthorizedCount, AuthOtherCount, AuthRFC1413Count, AuthSimpleListCount, AuthSkelKeyCount, AuthTokenCount, AuthVmsCount, AuthX509Count, CacheHitCount, CacheHitNotModifiedCount, CacheLoadCount, ConnectAcceptedCount, ConnectIpv4Count, ConnectIpv6Count, ConnectRejectedCount, ConnectSSLCount, ConnectSSL2Count, ConnectSSL3Count, ConnectTLS13Count, ConnectTLS12Count, ConnectTLS11Count, ConnectTLS1Count, ConnectTooBusyCount, ConnectPeakPersistent, CurrentHttp1Persistent, DclAgentCount, DclCgiPlusReusedCount, DclCrePrcCount, DclCrePrcDetachCount, DclCrePrcPersonaCount, DclCrePrcPersonaDefaultCount, DclCrePrcPersonaInvUserCount, DclCrePrcPersonaPrvUserCount, DclCrePrcSubprocessCount, DclDelPrcCount, DclForceXCount, DclHitHardLimitCount, DclProctorCount, DclRteReusedCount, DclWebSocketCount, DclWebSocketRawCount, DoAutoScriptCount, DoCgiPlusScriptCount, DoDclCommandCount, DoDECnetCount, DoDECnetReuseCount, DoDECnetCgiCount, DoDECnetCgiReuseCount, DoDECnetOsuCount, DoDECnetOsuReuseCount, DoDirectoryCount, DoRteScriptCount, DoScriptCount, DoFileCount, DoFileModuleCount, DoFileNotModifiedCount, DoNoModuleCount, DoProxyCount, DoPutCount, DoServerAdminCount, DoSsiCount, DoUpdateCount, DoWebDavCount, DoWebSockCount, ErrorsNoticedCount, GzipDeflateCount, GzipInflateCount, Http2RequestCount, Http2RequestPeak, LastExitPid, LastExitStatus, LookupDnsAddressCount, LookupDnsAddressErrorCount, LookupDnsNameCount, LookupDnsNameErrorCount, LookupLiteralCount, LookupLiteralErrorCount, LookupCacheAddressCount, LookupCacheNameCount, MethodConnectCount, MethodDeleteCount, MethodExtensionCount, MethodGetCount, MethodHeadCount, MethodOptionsCount, MethodPostCount, MethodPutCount, MethodSshCount, MethodTraceCount, MethodWebDavCopyCount, MethodWebDavLockCount, MethodWebDavMkColCount, MethodWebDavMoveCount, MethodWebDavPropFindCount, MethodWebDavPropPatchCount, MethodWebDavUnLockCount, MethodWebDav_DeleteCount, MethodWebDav_GetCount, MethodWebDav_OptionsCount, MethodWebDav_PutCount, NcsCount, NcsConvertCount, NetReadErrorCount, NetWriteErrorCount, OdsDirectBugcheckCount, OdsDirectCallCount, OdsDirectLoadCount, OdsDirectRetryCount, PathAlertCount, PipelineRequestCount, PipelineRequestMax, ProcessingTooBusyCount, RedactRequestCount, RedirectLocalCount, RedirectRemoteCount, RequestErrorCount, RequestForbiddenCount, RequestHttp09Count, RequestHttp10Count, RequestHttp11Count, RequestHttp2Count, RequestNotFromCacheCount, RequestPersistentCount, RequestPersistentMax, RequestProxyCount, RequestSSLCount, SpuriousWakeCount, StartupCount, StreamLfConversionCount, ThrottleBusyMetric, ThrottleTotalBusy, ThrottleTotalProcessed, ThrottleTotalQueued, WebDavEnabled, WebDavAromaCount, WebDavMetaReadAttemptCount, WebDavMetaReadCount, WebDavMetaWriteAttemptCount, WebDavMetaWriteCount, WebDavRequestCount, WebDavXmlParseCount, WebSocketCount, WebSocketRawCount; int64 ErrorsNoticedTime64, Http2FlowControlCount64, Http2FlowFrameCount64, Http2FrameCountRx64, Http2FrameCountTx64, Http2FrameRequestCountRx64, Http2FrameRequestCountTx64, GzipDeflateBytesIn64, GzipDeflateBytesOut64, GzipInflateBytesIn64, GzipInflateBytesOut64, LastExitTime64; ulong CurrentDclScriptProcess [INSTANCE_MAX+1], CurrentDclScriptCgiPlus [INSTANCE_MAX+1], CurrentDclScriptRTE [INSTANCE_MAX+1], CurrentDECnetCGI [INSTANCE_MAX+1], CurrentDECnetOSU [INSTANCE_MAX+1], CurrentDECnetTasks [INSTANCE_MAX+1], CurrentPersistentHttp1 [INSTANCE_MAX+1], CurrentThrottleProcessing [INSTANCE_MAX+1], CurrentThrottleQueued [INSTANCE_MAX+1], CurrentWebSockets [INSTANCE_MAX+1], CurrentWebSocketsRaw [INSTANCE_MAX+1], ResponseStatusCodeGroup [6], /* see RequestHttpStatusCode() for calculation */ ResponseStatusCodeCount [RESPONSE_STATUS_CODE_MAX]; /* total [0], HTTP/1 [1], HTTP/2 [2] */ ulong BytesPerSecondAve [HTTPN], BytesPerSecondMax [HTTPN], BytesPerSecondMin [HTTPN], ConnectCount [HTTPN], ConnectPeak [HTTPN], CurrentConnected [HTTPN], CurrentProcessing [HTTPN], ProcessingPeak [HTTPN], ProcessingTotalCount [HTTPN], ResponseDurationCount [HTTPN]; ulong CurrentInstanceConnected [HTTPN] [INSTANCE_MAX+1], CurrentInstanceProcessing [HTTPN] [INSTANCE_MAX+1]; int64 BlocksRawRx64 [HTTPN], BlocksRawTx64 [HTTPN], BlocksRawTotal64 [HTTPN], BytesRawRx64 [HTTPN], BytesRawTx64 [HTTPN], BytesPerSecondMaxBytes64 [HTTPN], BytesPerSecondMinBytes64 [HTTPN], BytesPerSecondMaxDuration64 [HTTPN], BytesPerSecondMinDuration64 [HTTPN], BytesPerSecondRawRx64 [HTTPN], BytesPerSecondRawTx64 [HTTPN], BytesPerSecondRawTotal64 [HTTPN], ResponseDurationMax64 [HTTPN], ResponseDurationMin64 [HTTPN], ResponseDuration64 [HTTPN], WebDavBytesRawRx64 [HTTPN], WebDavBytesRawTx64 [HTTPN]; int InstanceStatusTableCount; ulong InstanceAlignFiller; /* %CC-W-ALIGNCONFLICT */ INSTANCE_STATUS InstanceStatusTable [INSTANCE_STATUS_TABLE_MAX]; INSTANCE_NODE_DATA InstanceNodeData [INSTANCE_MAX+1]; }; /************************/ /* HTTPd global section */ /************************/ typedef struct MonRequestStruct MONITOR_REQUEST; struct MonRequestStruct { BOOL Alert; int HttpStatus, HttpProtocol, BytesPerSecond, BytesTxGzipPercent; int64 BytesRawRx64, BytesRawTx64; char AuthUser [96], ClientHostName [96], ClientIpAddressString [TCPIP_ADDRESS_STRING_MAX+1], Duration [16], MethodName [16], PrcNam [16], ReadError [96], Service [96], Time [16], Uri [236], WriteError [96]; }; /* name is "WASD" + a hex version number + instance number + string */ #define GBLSEC_NAME_FAO "!AZ_!6XL_!UL_!AZ" typedef struct HttpdGblSecStruct HTTPD_GBLSEC; struct HttpdGblSecStruct { ulong GblSecVersion, GblSecLength, HttpdProcessId; ulong Mutex [INSTANCE_MUTEX_COUNT+1], MutexCount [INSTANCE_MUTEX_COUNT+1], MutexWaitCount [INSTANCE_MUTEX_COUNT+1]; char HttpdVersion [16], StatusMessage [256], PkPasswd [64]; ACCOUNTING_STRUCT Accounting; PROXY_ACCOUNTING_STRUCT ProxyAccounting; MONITOR_REQUEST Request; int ConnectSuspend, InstanceClusterCurrent, InstanceNodeCurrent, InstanceStartupMax, InstancePassive; char AuthSkelKeyUserName [47+1], AuthSkelKeyPassword [31+1]; int AuthSkelKeyHttpdTickSecond; char MetaConNote [LOCK_VALUE_BLOCK_64]; }; #pragma member_alignment __restore /************************/ /* module include files */ /************************/ #ifndef ADMIN_H_LOADED # include "admin.h" #endif #ifndef AUTH_H_LOADED # include "auth.h" #endif #ifndef BASIC_H_LOADED # include "basic.h" #endif #ifndef BODY_H_LOADED # include "body.h" #endif #ifndef CACHE_H_LOADED # include "cache.h" #endif #ifndef CGI_H_LOADED # include "cgi.h" #endif #ifndef CONFIG_H_LOADED # include "config.h" #endif #ifndef CONTROL_H_LOADED # include "control.h" #endif #ifndef DESCR_H_LOADED # include "descr.h" #endif #ifndef DCL_H_LOADED # include "dcl.h" #endif #ifndef DICT_H_LOADED # include "dict.h" #endif #ifndef DIR_H_LOADED # include "dir.h" #endif #ifndef DECNET_H_LOADED # include "decnet.h" #endif #ifndef ERROR_H_LOADED # include "error.h" #endif #ifndef FAO_H_LOADED # include "fao.h" #endif #ifndef FILE_H_LOADED # include "file.h" #endif #ifndef GRAPH_H_LOADED # include "graph.h" #endif #ifndef HTADMIN_H_LOADED # include "htadmin.h" #endif #ifndef HTTP2_H_LOADED # include "http2.h" #endif #ifndef HTTPD_H_LOADED # include "httpd.h" #endif #ifndef HPACK_H_LOADED # include "hpack.h" #endif #ifndef INSTANCE_H_LOADED # include "instance.h" #endif #ifndef MAPURL_H_LOADED # include "mapurl.h" #endif #ifndef MSG_H_LOADED # include "msg.h" #endif #ifndef NET_H_LOADED # include "net.h" #endif #ifndef ODS_H_LOADED # include "ods.h" #endif #ifndef PERSONA_H_LOADED # include "persona.h" #endif #ifndef PROXY_H_LOADED # include "proxy.h" #endif #ifndef PROXYFTP_H_LOADED # include "proxyftp.h" #endif #ifndef PROXYMAINT_H_LOADED # include "proxymaint.h" #endif #ifndef PROXYNET_H_LOADED # include "proxynet.h" #endif #ifndef PROXYSOCKS_H_LOADED # include "proxysocks.h" #endif #ifndef PROXYVERIFY_H_LOADED # include "proxyverify.h" #endif #ifndef PUT_H_LOADED # include "put.h" #endif #ifndef REQUEST_H_LOADED # include "request.h" #endif #ifndef RESPONSE_H_LOADED # include "response.h" #endif #ifndef SSI_H_LOADED # include "ssi.h" #endif #ifndef SERVICE_H_LOADED # include "service.h" #endif #ifndef Sesola_H_LOADED # include "Sesola.h" #endif #ifndef STMLF_H_LOADED # include "stmlf.h" #endif #ifndef STRDSC_H_LOADED # include "strdsc.h" #endif #ifndef STRNG_H_LOADED # include "strng.h" #endif #ifndef SUPPORT_H_LOADED # include "support.h" #endif #ifndef SYSPLUS_H_LOADED # include "sysplus.h" #endif #ifndef THROTTLE_H_LOADED # include "throttle.h" #endif #ifndef UPD_H_LOADED # include "upd.h" #endif #ifndef VM_H_LOADED # include "vm.h" #endif #ifndef WATCH_H_LOADED # include "watch.h" #endif #ifndef WEBSOCK_H_LOADED # include "websock.h" #endif #ifndef WEBDAV_H_LOADED # include "davweb.h" #endif /* Store the following structures naturally-aligned. Uses a bit more storage but makes access as efficient as possible. */ #pragma member_alignment __save #pragma member_alignment /***************/ /* minor tasks */ /***************/ typedef struct HissTaskStruct HISS_TASK; struct HissTaskStruct { /* maximum number of bytes of hiss to be sent */ int HissBytesMax; }; typedef struct StreamTaskStruct STREAM_TASK; struct StreamTaskStruct { int /* maximum number of bytes of streamed pritables to be sent */ StreamBytesMax, /* note where we're up to between each write */ StreamOctetBuffer, /* ascii, binary, octet, text */ StreamTypeFlag; }; typedef struct TraceTaskStruct TRACE_TASK; struct TraceTaskStruct { int JustAFiller; }; /****************************************/ /* request authentication/authorization */ /****************************************/ typedef struct RequestAuthorizationStruct AUTH_STRUCT; struct RequestAuthorizationStruct { BOOL /* the user was authenticated using ACME */ AcmeAuthenticated, /* a case-less username and password was performed */ CaseLess, /* authenticated user may only access via https: (SSL) */ HttpsOnly, /* do not cache authentication information, revalidate each time */ NoCache, /* there was a problem with the configuration of the path */ PathProblem, /* the authentication realm name is a synonym for the SYSUAF */ RealmIsVmsSynonym, /* there was a problem with the configuration of the realm */ RealmProblem, /* 'RemoteUser' was resolved rather than supplied by the user */ ResolvedRemoteUser, /* the user was authenticated using a skeleton key */ SkelKeyAuthenticated, /* the user was authenticated from the SYSUAF */ SysUafAuthenticated, /* user may change SYSUAF password */ SysUafCanChangePwd, /* user can authenticate even if hours seem to prohibit */ SysUafNilAccess, /* primary password has expired */ SysUafPwdExpired, /* authorization rule directed to use SYSUAF profile */ VmsUserProfile, /* authorization rule directed to script SYSUAF username */ VmsUserScriptAs; int /* X509 client certificate fingerprint length */ ClientCertFingerprintLength, /* X509 client certificate CA length */ ClientCertIssuerLength, /* X509 client certificate client length */ ClientCertSubjectLength, /* VMS status result of authentication/authorization */ FinalStatus, /* length of string */ GroupReadLength, /* VMS status result of group read authorization */ GroupReadStatus, /* length of string */ GroupWriteLength, /* VMS status result of group write authorization */ GroupWriteStatus, /* length of path being authorized :^) */ PathBeingAuthorizedLength, /* length of path from authorization rule */ PathLocationLength, /* length of additional parameter(s) */ PathParameterLength, /* length of mapping PROTECT RULE from pass 1 */ Protect1Length, /* length of mapping PROTECT RULE from pass 1 */ Protect2Length, /* length of proxy mapping string */ ProxyStringLength, /* length of string */ RealmLength, /* length of string */ RealmParamLength, /* length of the reason string */ ReasonLength, /* what was originally supplied in remote_user */ RemoteUserLength, /* number of minutes before credentials need to be revalidated */ RevalidateTimeout, /* length of CGI-like meta variables */ ScriptMetaLength, /* SYSUAF logon wasd NETWORK, BATCH, REMOTE, etc. */ SysUafLogonType, /* authenticated user details length */ UserDetailsLength, /* number of identifiers loaded into array */ VmsIdentifiersCount; ushort /* length of the user profile pointed to */ VmsUserProfileLength; ulong /* value representation of scheme being used for challenge */ ChallengeScheme, /* the capability flags of the authorization path */ GroupCan, /* VMS identifier value controlling read access */ GroupReadVmsIdentifier, /* VMS identifier value controlling write access */ GroupWriteVmsIdentifier, /* VMS identifier value controlling authentication */ RealmVmsIdentifier, /* the capability flags of the request (ACT ON THESE!) */ RequestCan, /* value representation of scheme being used for request */ Scheme, /* source of read-only group information */ SourceGroupRead, /* source of full-access group information */ SourceGroupWrite, /* source of realm information */ SourceRealm, /* the capability flags of the remote user */ UserCan, /* what everybody else can do on that path */ WorldCan; ulong /* pointer to array of VMS identifiers (zero-terminated) */ *VmsIdentifiersPtr; char /* authorization token value */ *AuthTokenValuePtr, /* BASIC challenge response header field */ *BasicChallengePtr, /* X509 client certificate fingerprint */ *ClientCertFingerprintPtr, /* X509 client certificate CA */ *ClientCertIssuerPtr, /* X509 client certificate client */ *ClientCertSubjectPtr, /* DIGEST challenge response header field */ *DigestChallengePtr, /* when digest authenticating, the client-supplied nonce */ *DigestNoncePtr, /* when digest authenticating, the client-supplied digest */ *DigestResponsePtr, /* when digest authenticating, the client-supplied URI */ *DigestUriPtr, /* locates the directory containing required databases */ *DirectoryPtr, /* pointer to authorization group name */ *GroupReadPtr, /* pointer to string of IP-address/username masks */ *GroupRestrictListPtr, /* pointer to authorization group name */ *GroupWritePtr, /* pointer to the path being authorized :^) */ *PathBeingAuthorizedPtr, /* the path from the rule that triggered authorization */ *PathLocationPtr, /* used for additional authorization parameters */ *PathParameterPtr, /* mapping PROTECT RULE from pass 1 */ *Protect1Ptr, /* mapping PROTECT RULE from pass 2 */ *Protect2Ptr, /* pointer to a string containing proxy username mappings */ *ProxyStringPtr, /* pointer to authorization realm name */ *RealmPtr, /* pointer to authorization realm synonym string */ *RealmDescrPtr, /* pointer to realm parameter string */ *RealmParamPtr, /* pointer to a string containing a 401/403 error message */ *ReasonPtr, /* points to either "Authorization:" or "Proxy-Authorization:" field */ *RequestAuthorizationPtr, /* a list of non-CGI meta variables */ *ScriptMetaPtr, /* authenticated user details */ *UserDetailsPtr, /* user profile is used by sys$check_access() */ *VmsUserProfilePtr, /* pointer to string of IP-address/username masks */ *WorldRestrictListPtr; char /* what was originally provide in remote_user */ RemoteUser [AUTH_MAX_USERNAME_LENGTH+1], /* basic, digest, etc. */ Type [16]; /* a pointer to a template used when searching the cache */ AUTH_CREC *CacheSearchRecordPtr; /* structure used during SYSUAF processing */ AUTH_SYSUAF *SysUafDataPtr; /* structure used during ACME processing */ AUTH_ACME *AcmeDataPtr; /* AST function pointers */ REQUEST_AST AstFunctionBuffer; REQUEST_AST AstFunction; REQUEST_AST AgentCalloutFunction; }; /**************************/ /* request content (body) */ /**************************/ typedef struct RequestBodyStruct BODY_STRUCT; struct RequestBodyStruct { int /* chunked body count */ ChunkCount, /* current chunk size (from 'ChunkSizeString') */ ChunkSize, /* stage in the chunked processing */ ChunkState, /* count of buffered data for chunked trailer fields */ ChunkedTrailerBufferCount, /* size of buffer for chunked trailer fields */ ChunkedTrailerBufferSize, /* detect when chunked trailer fields are terminated */ ChunkedTrailerNewLineCount, /* amount of raw or processed data available in this buffer */ DataCount, /* size of raw data buffer (maximum read capacity, etc.) */ DataSize, /* VMS status of last buffer read or other operation */ DataStatus, /* virtual block number (512 byte block) of output */ DataVBN, /* how many reads have been made from the client */ DiscardReadCount, /* was processed as this sort of content (BODY_PROCESSED_AS..) */ ProcessedAs, /* e.g. convert from chunked/gzipped as read from the client */ UnEncodeStream; int64 /* how much has been read from the client */ ContentCount64, /* equivalent of request header content-length */ ContentLength64; char /* points to the start of buffer used for chunked trailer fields */ *ChunkedTrailerBufferPtr, /* pointer to raw or processed data ('.DataCount' gives it's size) */ *DataPtr; char /* buffer for ASCII hexadecimal chunk size number */ ChunkSizeString [32]; /* a pointer to body processing data */ BODY_PROCESS *ProcessPtr; /* "callback" function used to process/transfer body contents */ REQUEST_AST AstFunction; REQUEST_AST ProcessFunction; }; /*************************/ /* request cache storage */ /*************************/ typedef struct RequestCacheStruct REQUEST_CACHE; struct RequestCacheStruct { BOOL /* do not cache this request (for some reason or another) */ DoNotCache, /* content is currently being loaded */ Loading, /* the request has been assessed to see if it requires loading */ LoadCheck, /* loaded at the CGI access point */ LoadFromCgi, /* loaded at the file access point */ LoadFromFile, /* loaded at the network access point */ LoadFromNet, /* content is currently not usable */ NotUsable; int /* VMS status reflecting data load */ LoadStatus, /* maximum length of content data (size of buffer) */ ContentBufferSize, /* length of content data */ ContentLength, /* amount of buffer remaining */ ContentRemaining, /* convenience for when performing record I/O in the file module */ RecordBlockLength, /* non-file response header, cache-control seconds (if present) */ ResponseCacheControl; /* MD5 hash of mapped path */ MD5_HASH Md5Hash; char /* used both when loading and reading cache */ *ContentPtr, /* data content-type */ *ContentTypePtr, /* used both when loading and reading cache */ *CurrentPtr; char /* non-file response header, entity tag (if present) */ ResponseEntityTag [CACHE_ENTITY_MAX+1]; /* request is being used to fill a cache entry */ struct CacheStruct *EntryPtr; }; /*************************/ /* request character set */ /*************************/ struct RequestCharsetStruct { int /* character set name length */ CharsetLength; ulong /* context of NCS conversion function */ NcsCf; char /* pointer to character set name to be converted to */ CharsetPtr; }; /***************************/ /* request CGI environment */ /***************************/ typedef struct RequestCgiStruct CGI_STRUCT; struct RequestCgiStruct { BOOL /* one-shot, absorb script CGI or NHP response header */ AbsorbHeader, /* do not output to client record-by-record, buffer */ BufferRecords, /* script output escape is being processed */ CalloutInProgress, /* script is requesting that its content be/not be GZIP compressed */ ContentEncodingGzip, /* the MIME type is "text/..." */ ContentTypeText, /* remove all non-printable characters */ FilterStream, /* the script has issued an initial "100 Continue" response */ Header100Continue, /* already done one of these already without a "real" header */ Header100ContinueDone, /* the WebSocket has issued an initial "101 Switching Protocols" */ Header101Switching, /* header does not contain carriage-control */ HeaderCarRet, /* is NOT a script, just the CLI being used to execute some DCL */ IsCliDcl, /* in the body of the response */ ProcessingBody, /* the response is already transfer-encoded in some way */ TransferEncoding, /* script is requesting that its content be/not be chunked */ TransferEncodingChunked; int /* length of heap memory pointed to by BufferPtr */ BufferLength, /* remaining space in heap memory pointed to by BufferPtr */ BufferRemaining, /* count of characters pointed to by 'CalloutOutputPtr' */ CalloutOutputCount, /* if the CGI response contained a content-length field */ ContentLength, /* length of "end-of-file" (output) sequence */ EofLength, /* length of "end-of-text" sequence */ EotLength, /* length of "escape" sequence */ EscLength, /* keep track of usage when buffering script header */ HeaderLength, /* CGI header lines so far */ HeaderLineCount, /* stream, record, crlf modes */ OutputMode, /* number of records (may have multiple lines) received from a script */ RecordCount, /* period before the dynamic content is considered stale */ ScriptControlCacheExpiresAfter, /* use this as the maximum allowed size to be cached */ ScriptControlCacheMaxKBytes, /* line in module error reported from */ ScriptControlErrorLine, /* script has returned a VMS status value */ ScriptControlErrorVmsStatus, /* script is forcing this HTTP status (when error reporting) */ ScriptControlHttpStatus, /* how many attempts have been made to restart a CGI script */ ScriptRetryCount, /* length of the symbol(s) truncated string */ SymbolTruncateLength, /* for VMS Apache compatibility (1.3.9 at least!) */ XVMSRecordMode; char /* heap memory in which the CGI variables are generated */ *BufferPtr, /* current position in CGI variable buffer */ *BufferCurrentPtr, /* pointer to a record output by a callout sequence */ *CalloutOutputPtr, /* dynamically allocated space for buffering script header */ *HeaderPtr, /* name of module error reported from */ *ScriptControlErrorModulePtr, /* text of error message */ *ScriptControlErrorTextPtr, /* text in commented portion of error message */ *ScriptControlErrorVmsTextPtr, /* VMS syntax script file name */ *ScriptFileNamePtr, /* pointer to the symbol(s) truncated */ *SymbolTruncatePtr; char /* "end-of-file" (output) sequence */ EofStr [32], /* "end-of-text" sequence */ EotStr [32], /* "escape" sequence */ EscStr [32]; }; /******************************/ /* request header information */ /******************************/ typedef struct RequestHeaderStruct HEADER_STRUCT; struct RequestHeaderStruct { BOOL /* client accepts ZLIB compressed streams */ AcceptEncodingGzip, /* "Cache-control: max-age=0" header field */ CacheControlMaxAgeZero, /* "Cache-control: max-stale[=0]" header field */ CacheControlMaxStaleZero, /* "Cache-control: max-fresh=0" header field */ CacheControlMinFreshZero, /* "Cache-control: no-cache" header field */ CacheControlNoCache, /* "Cache-control: no-store" header field */ CacheControlNoStore, /* "Cache-control: no-transform" header field */ CacheControlNoTransform, /* "Cache-control: only-if-cached" header field */ CacheControlOnlyIfCached, /* "Connection: close" header value */ ConnectionClose, /* "Connection: HTTP2-Settings" header value */ ConnectionHttp2Settings, /* "Connection: keep-alive" header value */ ConnectionKeepAlive, /* "Connection: Upgrade" header field */ ConnectionUpgrade, /* client body is a ZLIB compressed stream */ ContentEncodingGzip, /* client has provided an unknown content encoding */ ContentEncodingUnknown, /* "Expect: 100-continue" header field */ Expect100Continue, /* unsupported "Expect:" expectation */ ExpectUnsupported, /* "Keep-Alive:" header field */ KeepAliveConnection, /* "Max-forwards:" header field */ MaxForwards, /* "Pragma: no-cache" header field */ PragmaNoCache, /* "Proxy-Connection: close" header field */ ProxyConnectionClose, /* "ProxyConnection: keep-alive" header field */ ProxyConnectionKeepAlive, /* if read buffer is reused (e.g. body read) original header kaput */ RequestHeaderPtrInvalid, /* "Transfer-Encoding: chunked" header field detected */ TransferEncodingChunked, /* http: "Upgrade: h2c" header field */ UpgradeHttp2onHttp, /* "Upgrade: WASD-tunnel" header field */ UpgradeWASDtunnel, /* "Upgrade: WebSocket" header field */ UpgradeWebSocket, /* when WATCHing a new request has been noted */ WatchNewRequest, /* return the uninterpreted resource */ WebDavTranslateFalse, /* can overwrite a non-null resource */ WebDavOverwrite; int /* "Cache-control: max-age=n" header field */ CacheControlMaxAge, /* "Cache-control: max-stale=n" header field */ CacheControlMaxStale, /* "Cache-control: min-fresh=n" header field */ CacheControlMinFresh, /* length of "Host:" field value */ HostLength, /* value representation of HTTP protocol version number */ HttpVersion, /* length of if-modified-since header */ IfModifiedSinceLength, /* "Keep-Alive: nnn" header field */ KeepAliveSeconds, /* value representation of request HTTP method */ Method, /* length of path from HTTP header */ PathInfoLength, /* length of query string from HTTP header */ QueryStringLength, /* count of any body received with HTTP header */ RequestBodyCount, /* length of HTTP header */ RequestHeaderLength, /* length of HTTP request line */ RequestLineLength, /* length of URI (path plus query string) from HTTP header */ RequestUriLength, /* number of (forbidden) unencoded quotation marks in the URI */ RequestUriQuoteCount, /* resource depth */ WebDavDepth, /* WebSocket version number ("Sec-WebSocket-Version:")) */ WebSocketVersion; int64 /* "Content-Length:" value */ ContentLength64, /* WebDAV OSX (Apple) quirk */ XExpectedEntityLength64; char /* "Accept:" header value */ *AcceptPtr, /* "Accept-Charset:" header value */ *AcceptCharsetPtr, /* "Accept-Encoding:" header value */ *AcceptEncodingPtr, /* "Accept-Language:" header value */ *AcceptLangPtr, /* "Access-Control-Request-Headers:" header value */ *AccConRequestHeadersPtr, /* "Access-Control-Request-Method:" header value */ *AccConRequestMethodPtr, /* "Authorization:" header value */ *AuthorizationPtr, /* "Cache-Control:" header value */ *CacheControlPtr, /* stream's MIME content type header value */ *ContentTypePtr, /* "Cookie:" header value */ *CookiePtr, /* "Forwarded:" header value */ *ForwardedPtr, /* "HTTP2-Settings:" header value */ *Http2SettingsPtr, /* "Host:" header value */ *HostPtr, /* "If-Match:" header value */ *IfMatchPtr, /* "If-None-Match:" header value */ *IfNoneMatchPtr, /* "Origin:" header value */ *OriginPtr, /* pointer to heap storage of request path */ *PathInfoPtr, /* pointer to heap storage of request query string */ *QueryStringPtr, /* pointer to any body received with request header */ *RequestBodyPtr, /* pointer to request header */ *RequestHeaderPtr, /* pointer to requested resource (path and any query string) */ *RequestUriPtr, /* "Proxy-Authorization:" header value */ *ProxyAuthorizationPtr, /* "Referer:" header value */ *RefererPtr, /* pointer to HTTP request line */ *RequestLinePtr, /* sec-websocket-key: header value */ *SecWebSocketKeyPtr, /* sec-websocket-protocol: header value */ *SecWebSocketProtocolPtr, /* "Upgrade: WASD-SOCKS5-.." header field */ *UpgradeSocks5Ptr, /* "User-Agent:" header value */ *UserAgentPtr, /* "X-Forwarded-For:" header value */ *XForwardedForPtr, /* "If:" header value */ *WebDavIfPtr, /* "Depth:" header value */ *WebDavDepthPtr, /* value of above */ *WebDavDestinationPtr, /* "Lock-Token:" header value */ *WebDavLockTokenPtr, /* "Overwrite:" header value */ *WebDavOverwritePtr, /* "Timeout:" header value */ *WebDavTimeoutPtr, /* "Translate:" header value */ *WebDavTranslatePtr; char /* string representing the request's HTTP method */ MethodName [METHOD_NAME_SIZE]; /* byte-range structure */ RANGE_BYTE *RangeBytePtr; }; /***********************************/ /* request network-related storage */ /***********************************/ typedef struct RequestNetStruct NET_STRUCT; /* must be located in the non-zeroed portion of the request stucture! */ struct RequestNetStruct { int /* count of consecutive failures on a persistent connection */ ConsecutiveFailureCount, /* stores original data length over multiple GZIP writes */ GzipDataLength, /* count of how many times the TCP/IP connection is reused */ PersistentCount, /* count of data suspected of being a pipelined request */ PipelineBufferCount, /* size of buffer for data suspected of being a pipelined request */ PipelineBufferSize, /* count of how many times pipelined requests have occured */ PipelineRequestCount, /* size of network read */ ReadBufferSize, /* incremented by NetReadRawAst() with each status block error */ ReadErrorCount, /* redacted request read count */ RedactBufferCount, /* size of redacted request */ RedactBufferSize, /* incremented by NetWriteRawAst() with each status block error */ WriteErrorCount, /* size of network write */ WriteRawDataLength; ulong /* first error status */ ReadErrorStatus, /* first error status */ WriteErrorStatus; char /* points to original data over multiple GZIP writes */ *GzipDataPtr, /* dynamically stores data suspected of being a pipelined request */ *PipelineBufferPtr, /* pointer to heap storage client-read network buffering */ *ReadBufferPtr, /* redacted request buffer */ *RedactBufferPtr, /* pointer to network writes */ *WriteRawDataPtr; /* network read and write AST function pointers */ REQUEST_AST GzipAstFunction; }; /*************************/ /* request path settings */ /*************************/ typedef struct RequestPathSetStruct PATHSET_STRUCT; struct RequestPathSetStruct { BOOL /* language variant is based on file type not file name */ AcceptLangTypeVariant, /* language variant is based on file type not "text/.." */ AcceptLangWildcard, /* access according to SYSUAF profile */ AccessProfile, /* allowed to read from this path */ AccessRead, /* access as server account (best effort) */ AccessServer, /* allowed to write to this path */ AccessWrite, /* alert if path is detected */ Alert, /* all access must be authorized (or fail) */ AuthorizeAll, /* only authorize the mapped path, rather than the request path */ AuthorizeMapped, /* only authorize the full path (not as script then path) */ AuthorizeOnce, /* cache CGI-compliant script output */ CacheCGI, /* cache (non-file) requests containing cookies */ CacheCookie, /* do not cache files (traditional/backward-compatible setting) */ CacheNoFile, /* cache request network output of any kind */ CacheNet, /* cache non-parse-header script output */ CacheNPH, /* it's a permanent cache entry (cannot be flushed) */ CachePermanent, /* cache this path with query-string */ CacheQuery, /* cache Server Side Includes output */ CacheSSI, /* CORS */ CorsAllowCredentials, /* terminate the CGIPLUS stream using an EOF after the empty record */ CgiPlusInWriteof, /* access to directory listings is allowed */ DirAccess, /* access to directory listings is not allowed */ DirNoAccess, /* access is allowed the directory contains .WWW_BROWSABLE */ DirAccessSelective, /* icon plain-text link disabled */ DirNoIconLink, /* implied wildcard disabled */ DirNoImpliedWildcard, /* wildcard specification allowed */ DirWildcard, /* wildcard specification not allowed */ DirNoWildcard, /* rule mapping, SET the path to be pre-expired */ Expired, /* send an HTTP/2 ping frame */ Http2SendPing, /* move HTTP/2 to HTTP/1.1 (immediately) */ Http2ToHttp11, /* allow VMS '...' wildcard */ MapEllipsis, /* apply mapping rules to empty paths */ MapEmpty, /* this request is using an HTTP extension-method (not GET, etc.) */ MapExtensionMethod, /* if a script is mapped, DO NOT map the derived path portion */ MapOnce, /* during mapping replace path with request URI (for rewrite) */ MapUri, /* rule mapping, SET the path not-to-be-cached */ NoCache, /* do not apply any default search script */ NoDefaultSearch, /* rule mapping, SET the path not-to-be-logged */ NoLog, /* VMS user profile does not apply to this path */ NoProfile, /* path may contain SSI documents with privileged directives */ PrivSsi, /* proxy affinity domain is set */ ProxyAffinity, /* reverse proxy authorization verification */ ProxyReverseVerify, /* reverse proxy doesn't send Authorization infos to origin server */ ProxyReverseNoAuthHeader, /* provide unknown request fields in proxy request header */ ProxyUnknownRequestFields, /* by default applicable response are chunked, suppress that */ ResponseNoChunked, /* for successful responses suppress end-of-header blank line */ ResponseHeaderBegin, /* for successful responses do not *generate* a header */ ResponseHeaderNone, /* response reports origina HTTP version (e.g. HTTP/1.0) */ ResponseHttpOriginal, /* decode any chunked or gzip encoded request body */ ScriptBodyDecode, /* do not search for the script file (for RTE use) */ ScriptNoFind, /* check that the path exists as a file before activating script */ ScriptPathFind, /* do not parse the query string, let the script handle it */ ScriptQueryNone, /* do not report form-url-encoded error, let the script handle it */ ScriptQueryRelaxed, /* truncate a CGI symbol that would otherwise be too long */ ScriptSymbolTruncate, /* pass the file name and path translated in U**x syntax */ ScriptSyntaxUnix, /* rule mapping, SET the path allowing stream-LF conversion */ StmLF, /* a throttle has been set against this path */ ThrottleSet, /* WebDAV (and directory listing) does not display hidden files */ WebDavNoHidden, /* WebDAV methods do not allow/apply locking to this path */ WebDavNoLock, /* WebDAV methods access according to SYSUAF profile */ WebDavProfile, /* WebDAV methods do not allow/apply property(ies) to this path */ WebDavNoProp, /* all requests processed using WebDAV code */ WebDavAll, /* authorised access processed using WebDAV SETings */ WebDavAuth, /* to PUT on this path you need a compatible WebDAV lock */ WebDavPutLock, /* WebDAV methods allowed to read from this path */ WebDavRead, /* WebDAV methods access as server account (best effort) */ WebDavServer, /* if true emulate windows properties */ WebDavNoWinProp, /* WebDAV methods allowed to write to this path */ WebDavWrite; int /* per-path config equivalent */ AuthRevalidateTimeout, /* entry expires after this many seconds or day/hour/minute */ CacheExpiresAfter, /* prevents a cache entry being immediately reloaded */ CacheGuardSeconds, /* use this as the maximum allowed size to be cached */ CacheMaxKBytes, /* client IP address has been substituted */ ClientAddress, /* CORS */ CorsMaxAge, /* directory listing top and bottom delimiter */ DirDelimit, /* directory listing font monospace (D) or inherit */ DirFont, /* style of directory listing */ DirStyle, /* directory listing title */ DirTitle, /* if a string literal */ DirTitleLength, /* index of number of versions of each file */ DirVersionsOf, /* per-path number of concurrent streams */ Http2MaxStreams, /* send an HTTP/2 go-away frame */ Http2SendGoAway, /* response data written at high, normal or low priority */ Http2WriteQueue, /* send an HTTP/2 rst_stream frame */ Http2SendReset, /* on-disk name encoding */ OdsName, /* ODS-2, ODS-5, SRI, PATHWORKS, Advanced Server file name munging */ PathOds, /* proxy service's proxy server port */ ProxyChainPort, /* proxy "Forwarded: by" */ ProxyForwardedBy, /* proxy "X-Forwarded-For:" */ ProxyXForwardedFor, /* proxy header remove/modify */ ProxyHeaderCount, /* */ ProxyTunnelRequestLength, /* overrides global configuration directive */ PutRFM, /* overrides global configuration directive */ PutMaxKbytes, /* allows setting the syntax of the regular expression parser */ RegexSyntax, /* report bad request as this status code */ Report400as, /* report forbidden as this status code */ Report403as, /* report not found as this status code */ Report404as, /* raw, basic or detailed report */ ReportType, /* transform an HTTP 200 status to 203 for log analysis */ Response200is203, /* length of Content Security Policy header */ ResponseCspLength, /* length of Content Security Policy Report Only header */ ResponseCsproLength, /* length of additional response header fields */ ResponseHeaderAddLength, /* variable record appended carriage control */ ResponseVarRecord, /* gzip compress response body flag */ ResponseGzip, /* per-path config equivalent */ ScriptBitBucketTimeout, /* length of script activating command */ ScriptCommandLength, /* CPU limit of script */ ScriptCpuMax, /* CGI zombie or CGIplus lifetime */ ScriptLifeTime, /* length of "(name=value[,name=value])" non-CGI variables */ ScriptParamsLength, /* length of 'ssi=exec=' */ SsiExecLength, /* SSL CGI variables */ SSLCGIvar, /* index into array of lists of throttled requests */ ThrottleIndex, /* absolute maximum requests before 503 "busy" */ ThrottleBusy, /* concurrent requests before queueing */ ThrottleFrom, /* a per-user throttle has been set */ ThrottlePerUser, /* concurrent requests after which FIFOing ceases */ ThrottleResume, /* concurrent requests before FIFO processing */ ThrottleTo, /* seconds before queued request is terminated */ ThrottleTimeoutBusy, /* seconds before queued request is set to processing */ ThrottleTimeoutQueue, /* per-path config equivalent */ TimeoutNoProgress, /* per-path config equivalent */ TimeoutOutput, /* per-path config equivalent */ TimeoutPersistent, /* self-explanatory */ WebDavLockTimeoutDefault, /* self-explanatory */ WebDavLockTimeoutMax, /* WebSocket input mailbox size */ WebSocketInputSize, /* WebSocket output mailbox size */ WebSocketOutputSize; char /* if non-zero then attempt to resolve a language-specific file */ AcceptLangChar; char /* default language of files in path */ *AcceptLangPtr, /* redirection URL if VMS-authenticated password is expired */ *AuthSysUafPwdExpUrlPtr, /* associate path with a CGI variable prefix */ *CgiPrefixPtr, /* move request to this service (when mapping concluded) */ *ChangeServicePtr, /* associate path with a specific charset */ *CharsetPtr, /* really just for ease of testing */ *ClientAddressLiteralPtr, /* associate path with a specific content-type */ *ContentTypePtr, /* CORS */ *CorsAllowHeadersPtr, /* CORS */ *CorsAllowMethodsPtr, /* CORS */ *CorsAllowOriginPtr, /* CORS */ *CorsExposeHeadersPtr, /* associate directory listing with a specific charset */ *DirCharsetPtr, /* null-terminated string (e.g. "_blank") */ *DirTargetPtr, /* one of more null-terminated strings */ *DirThesePtr, /* null-terminated string literal */ *DirTitlePtr, /* document root */ *MapRootPtr, /* page formatting */ *HtmlBodyTagPtr, /* page footer formatting */ *HtmlFooterPtr, /* page footer formatting */ *HtmlFooterTagPtr, /* page header formatting */ *HtmlHeaderPtr, /* page header formatting */ *HtmlHeaderTagPtr, /* associate path with a "Index of" format */ *IndexPtr, /* string with down-stream <username>:<password> credentials */ *ProxyChainCredPtr, /* string with host name and port */ *ProxyChainHostPortPtr, /* when reverse proxying rewrites any 302 "Location:" URL */ *ProxyReverseLocationPtr, /* when reworking a proxy request header */ *ProxyReworkPtr, /* inject this "request" into a proxy tunnel stream */ *ProxyTunnelRequestPtr, /* Content Security Policy header */ *ResponseCspPtr, /* Content Security Policy Report Only header */ *ResponseCsproPtr, /* list of additional response header fields */ *ResponseHeaderAddPtr, /* value of Strict-Transport-Security: field */ *ResponseStrictTransSecPtr, /* the username the agent should execute under */ *ScriptAgentAsPtr, /* the username the script should execute under */ *ScriptAsPtr, /* script activating command and/or qualifiers and/or parameters */ *ScriptCommandPtr, /* eqivalent of "Script-Control: <...>" in CGI response header */ *ScriptControlPtr, /* script default directory */ *ScriptDefaultPtr, /* a list of "(name=value[,name=value])" non-CGI variables */ *ScriptParamsPtr, /* string containing allowed SSI #exec commands */ *SsiExecPtr, /* URL for CSS to load */ *StyleSheetPtr, /* directory to store WebDAV meta files */ *WebDavMetaDirPtr; char /* proxy header remove/modify */ *ProxyHeader [MAPURL_PROXY_HEADER_MAX]; char /* CGIPLUSIN records have explicit <LF>, <CR>, or <CR><LF> added */ CgiPlusInCC [4], /* sort columns and direction */ DirSort [2+1]; IPADDRESS /* the proxy outgoing IP address has been set */ ProxyBindIpAddress, /* proxy service's proxy server */ ProxyChainIpAddress; }; /********************/ /* request response */ /********************/ typedef struct RequestResponseStruct RESPONSE_STRUCT; struct RequestResponseStruct { BOOL /* the response body is being ZLIB compressed */ ContentEncodeAsGzip, /* the response body is already ZLIB compressed */ ContentIsEncodedGzip, /* the response body is already encoded un an unrecognised way */ ContentIsEncodedUnknown, /* report any errors using the error report script */ ErrorReportByRedirect, /* response header has been generated */ HeaderGenerated, /* response header has been sent to client */ HeaderSent, /* the response body is NOT to be chunked */ NoChunked, /* the response body is NOT to be ZLIB compressed (e.g. TRACE) */ NoGzip, /* response include an "Expires:" the same as "Last-Modified:" */ PreExpired, /* interal error - respond with a canned 500 header */ Internal500, /* response body is being chunked */ TransferEncodingChunked; int /* character set length */ CharsetLength, /* NCS conversion buffer size */ CharsetNcsBufferSize, /* the output buffer need to be this many time bigger than input */ CharsetNcsCfFactor, /* length of chunk (including hex size and carriage control) */ ChunkedLength, /* size of the currently allocated chunk buffer */ ChunkedBufferSize, /* buffer for header append length */ HeaderAppendLength, /* buffer for data length */ HeaderDataLength, /* used during HEAD method to determine when header ends */ HeaderNewlineCount, /* response header status has been set */ HeaderStatus, /* numeric equivalent of the "200", "302", etc., HTTP status code */ HttpStatus, /* value representation of response HTTP protocol version number */ HttpVersion, /* length of error report text/query-string */ ErrorReportLength, /* current buffer count for request rebuilt from callout */ RedactBufferCount, /* current buffer size for request rebuilt from callout */ RedactBufferSize; int64 /* from generated response headers (if specified) */ ContentLength64, /* response duration */ Duration64; ulong /* NCS conversion function */ CharsetNcsCf; char /* NCS conversion buffer */ *CharsetNcsBufferPtr, /* point to currently allocated chunk buffer */ *ChunkedBufferPtr, /* from generated headers and CGI responses */ *ContentTypePtr, /* "Cookie:" response header array */ *CookiePtr [RESPONSE_COOKIE_MAX], /* buffer for data pointer */ *HeaderDataPtr, /* pointer to heap storage of redirection location path */ *LocationPtr, /* pointer to other info when generating error report */ *ErrorOtherTextPtr, /* pointer to error text/query-string */ *ErrorReportPtr, /* pointer to explanation when generating error report */ *ErrorTextPtr, /* message character set */ *MsgCharsetPtr, /* pointer to boundary string */ *MultipartBoundaryPtr, /* buffer to contain request being rebuilt from callout */ *RedactBufferPtr; char /* buffer to contain hex chunk size string */ ChunkedSizeString [8], /* HTTP/1.1 entity tag */ EntityTag [ENTITY_TAG_MAX+1]; /* item list descriptors used for chunked buffer list */ VMS_ITEM_LIST2 ChunkedP5 [4]; /* AST function pointers */ REQUEST_AST HeaderAstFunction; }; /************************/ /* request time storage */ /************************/ typedef struct RequestTimeStruct TIME_STRUCT; struct RequestTimeStruct { int64 /* start of request processing */ BeginTime64, /* time from "If-Modified-Since:" header */ IfModifiedSinceTime64, /* time from "If-Range:" header */ IfRangeBeginTime64, /* time from "If-UnModified-Since:" header */ IfUnModifiedSinceTime64; ushort /* component equivalent of 'BeginTime64' */ BeginTime7 [7]; char /* GMT-adjusted string equivalent of 'BeginTime64' */ GmDateTime [48]; }; /******************/ /* request timers */ /******************/ typedef struct RequestTimrStruct TIMR_STRUCT; /* must be located in the non-zeroed portion of the request stucture! */ struct RequestTimrStruct { LIST_ENTRY ListEntry; int /* counter for input timeout */ InputSecond, /* index into 5, 15, 60, 300, 300+ (etc.) second queues */ ListIndex, /* previous Rx bytes for output no-progress checking */ NoProgressBytesRx, /* previous Tx bytes for output no-progress checking */ NoProgressBytesTx, /* counter for output no-progress */ NoProgressSecond, /* storage for server value (WATCH must be able to manipulate this) */ NoProgressPeriod, /* counter for output timeout */ OutputSecond, /* counter for persistent connection timeout */ PersistentSecond, /* counter for imediate termination */ TerminateSecond, /* counter for throttle timeout */ ThrottleSecond, /* supervisor timer has expired */ TimeoutCount, /* contains TIMEOUT_.. value to indicate type of timeout */ TimeoutType; }; /**************/ /* web socket */ /**************/ typedef struct RequestWebSocketStruct WEBSOCKET_STRUCT; struct RequestWebSocketStruct { LIST_ENTRY WebSockListEntry; REQUEST_STRUCT *RequestPtr; BOOL CalloutInProgress, RawSocket; int InOutCount, InputSize, OutputSize, QueuedInput, QueuedNetRead, QueuedNetWrite, QueuedOutput; ushort InputChannel, OutputChannel; ulong ScriptProcessPid; char *InputPtr, *OutputPtr; char InputDevName [DCL_MAILBOX_DEVNAM_MAX+1], OutputDevName [DCL_MAILBOX_DEVNAM_MAX+1], Utf8Char [4]; struct dsc$descriptor_s InputDevNameDsc; struct dsc$descriptor_s OutputDevNameDsc; IO_SB CalloutIOsb, InputIOsb, OutputIOsb; }; /******************************/ /* per-request data structure */ /******************************/ typedef struct RequestStruct REQUEST_STRUCT; struct RequestStruct { /***************************/ /* general purpose storage */ /***************************/ /* Storage areas at the beginning of this structure, specifically above the field 'RetainAboveZeroBelow', are retained between successive requests during persistent connections. When a "keep-alive" connection is reinitialized ready for a potential new request all of this structure below (and including) that field are zeroed, effectively allowing a new request. */ /* for maintaining the list of request structures */ LIST_ENTRY ListEntry; /* zone ID for request heap's virtual memory management */ ulong VmHeapZoneId; /* number of pages used by the request heap */ long VmHeapStatPages; /* network parameters, request timer data, etc */ NET_STRUCT rqNet; TIMR_STRUCT rqTmr; HTTP2_STREAM_STRUCT Http2Stream; /* pointer to network I/O structure */ NETIO_STRUCT *NetIoPtr; /* pointer to service structure of host/port etc of service connected to */ SERVICE_STRUCT *ServicePtr, *ServiceBeforeChangePtr; /* generally points at the local client data but can be re-pointed */ CLIENT_STRUCT *ClientPtr, *ClientResetPtr; BOOL /* redirect for request X-ray purposes */ RedirectedXray; int /* to prevent consecutive auth revalidation 401s */ AuthRevalidateCount, /* server number of IP accept() and request creation */ ConnectNumber, /* avoid redirection loops by keeping track of the number */ KeywordRedirectCount, /* HTTP 1 or 2 for the request network communication */ NetworkHttp, /* avoid redirection loops by keeping track of the number */ RedirectCount, /* an error is being reported from a redirect path */ RedirectErrorStatusCode, /* number of time redact has been attempted to be used */ RedactCount, /* see REQUEST_STATE_.. in request.h */ RequestState, /* request is being WATCHed */ WatchItem; char /* notepad is persistent */ *NotePadPtr, /* location rewrite storage is persistent */ *ProxyReverseLocationPtr, /* when redirecting this points to any current authentication realm */ *RedirectErrorAuthRealmDescrPtr; /* request dictionary */ DICT_STRUCT *rqDictPtr; /* for speedy access to the notepad entry */ DICT_ENTRY_STRUCT *NotePadDictEntry; /* the rest of this structure will be zeroed with a persistent connection */ /******************/ ulong ZeroedBegin; /******************/ BOOL /* sanity check agent busy */ AgentBusyCount, /* "temporary" file, delete it on close */ DeleteOnClose, /* request handled internally by the server */ InternalRequest, /* true if a mapping rule identifies this as a "CGIplus" script */ IsCgiPlusScript, /* do not get the response from cache */ NotFromCache, /* the port initiates the mapping at connection */ ConnectRequest, /* extended file specifications to be used on this path */ PathOdsExtended, /* this request is using a persistent network connection */ PersistentRequest, /* the response is to be made expecting a persistent connection */ PersistentResponse, /* proxy request (e.g. "http://...", "ftp://...") */ ProxyRequest, /* proxy tunnel (only for accounting purposes) */ ProxyTunnelRequest, /* lot like a WebSocket request only different (see WEBSOCK.C) */ RawSocketRequest, /* the virtual service specific in the request was unknown */ UnknownVirtualService, /* WebDAV method detected */ WebDavMethod, /* request has a WebDAV method or a specific request header field */ WebDavRequest, /* as the name suggests... */ WebSocketRequest, /* though not definitively WebDAV it still smells like it */ WhiffOfWebDav, /* a client certificate is required by the meta config */ X509ClientCertMeta; int /* counter representing request activity has been incremented */ AccountingDone, /* bytes rx plus tx divided by the duration of the request */ BytesPerSecond, /* percentage of original size for GZIPed response */ BytesTxGzipPercent, /* length of configuration directory */ ConfigDirectoryLength, /* size of buffer space for sys$output from DCL subprocess */ DclSysOutputSize, /* used as temporary storage for ZLIB memory management accounting */ GzipMemoryAllocated, /* when trying home pages this returns the VMS status */ HomePageStatus, /* length of mapped path */ MappedPathLength, /* pass through rules (mapping rules, 1 or 2) */ MetaConPass, /* prevent runaway restarts through rules */ MetaConRestartCount, /* integer representing prefered message language */ MsgLanguage, /* on-disk file naming specification */ PathOds, /* local port from outgoing proxy connection (logging purposes only) */ ProxyLocalPort, /* length of remote user name */ RemoteUserLength, /* count of home page file names tried */ RequestHomePageIndex; uint64 /* count of REQUEST-RELATED bytes received from the client */ BytesRx64, /* count of REQUEST-RELATED bytes sent to the client */ BytesTx64; char /* v12... agent request (non-NULL means agent script in-progress) */ *AgentRequestPtr, /* v12... agent response data */ *AgentResponsePtr, /* buffer space for sys$output from DCL subprocess */ *DclSysOutputPtr, /* pointer to mapped path */ *MappedPathPtr, /* v12... metacon agent response */ *MetaConAgentPtr, /* pointer to (being) mapped path (during mapping rule processing) */ *MetaConMappedPtr, /* pointer to script name (during mapping rule processing) */ *MetaConScriptPtr; char /* source of configuration information */ ConfigDirectory [METACON_CONFIG_DIR_LENGTH+1], /** NOTE: MUST BE BACK-TO-BACK (see ProxySocks.c) **/ /* authenticated user name from "Authorization:" */ RemoteUser [AUTH_MAX_USERNAME_LENGTH+1], /** NOTE ABOVE **/ /* storage when authenticating remote user */ RemoteUserPassword [AUTH_MAX_PASSWORD_LENGTH+1], /** NOTE ABOVE **/ /* file mapped from path to specification */ RequestMappedFile [ODS_MAX_FILE_NAME_LENGTH+1], /* run-time mapped from rules */ RequestMappedRunTime [ODS_MAX_FILE_NAME_LENGTH+1], /* script mapped from path to specification */ RequestMappedScript [ODS_MAX_FILE_NAME_LENGTH+1], /* mapped script name */ ScriptName [SCRIPT_NAME_SIZE+1]; /* descriptor-associated storage for when NewWriteBuffered() */ BOOL NetWriteEscapeHtml, NetWriteFlushOnly; int NetWriteBufferCount; STR_DSC NetWriteBufferDsc; REQUEST_AST NetWriteAstFunction; /* MD5 hash of mapped path */ MD5_HASH Md5HashPath; /* structures containing specific request storage */ struct RequestHeaderStruct rqHeader; struct RequestBodyStruct rqBody; struct RequestAuthorizationStruct rqAuth; struct RequestCacheStruct rqCache; struct RequestCgiStruct rqCgi; struct RequestPathSetStruct rqPathSet; struct RequestResponseStruct rqResponse; struct RequestTimeStruct rqTime; struct RequestWebSocketStruct rqWebSocket; struct ContentTypeStruct rqContentInfo; /* when a path is throttled this will be in the active or waiting list */ LIST_ENTRY ThrottleListEntry; BOOL ThrottlePerUser; /* include to get the GZIP_COMPRESS structure */ #define GZIP_COMPRESS_ONLY #include "gzip.h" #undef GZIP_COMPRESS_ONLY GZIP_COMPRESS GzipCompress; PROCTOR_STRUCT *ProctorPtr; FILE_CONTENT *FileContentPtr; ODS_STRUCT ParseOds; /* most likely cast to a pointer to some structure */ void *AgentAstParam; /**************/ /* task lists */ /**************/ /* these two modules can have multiple, concurrent instances */ LIST_HEAD DirTaskList, SsiTaskList; /* these modules/tasks can only have one total or multiple serially */ ADMIN_TASK *AdminTaskPtr; DCL_TASK *DclTaskPtr; DECNET_TASK *DECnetTaskPtr; DESCR_TASK *DescrTaskPtr; DIR_TASK *DirTaskPtr; FILE_TASK *FileTaskPtr; HISS_TASK *HissTaskPtr; HTADMIN_TASK *HTAdminTaskPtr; PROXY_TASK *ProxyTaskPtr; PUT_TASK *PutTaskPtr; SSI_TASK *SsiTaskPtr; STREAM_TASK *StreamTaskPtr; TRACE_TASK *TraceTaskPtr; UPD_TASK *UpdTaskPtr; WEBDAV_TASK *WebDavTaskPtr; /*****************/ ulong ZeroedEnd; /*****************/ }; #pragma member_alignment __restore #endif /* WASD_H_LOADED */ /*****************************************************************************/