1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 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 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036
|
2014-02-11 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Fix a wrong comparison in cmp_int().
2014-01-20 Corey Minyard <cminyard@mvista.com>
* configure.in -> configure.ac
Plus some cleanups and update the version to 2.0.21.
2014-01-10 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell_mod.c: Add a command to directly
set the duty cycle of the fans.
2013-12-23 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/mcserv.h, lanserv/OpenIPMI/msg.h, lanserv/bmc.c:
The IANA numbers are supposed to be in bytes 2-4 off responses to IANA
commands, but they were not being put there. Fix this in the main IANA
handling to do this automatically, and modify the command handling to
strip the IANA from the command and add it to a message field. This
makes handling of IANA commands more natural and allows standard message
response generation to work.
* sol.c: Adjust for the previous change.
* marvell-bmc/marvell_mod.c: ditto
* lanserv/sol.c: Check that an MC has SOL enabled befor attempting
to use the SOL data when setting custom SOL settings.
2013-11-07 Corey Minyard <cminyard@mvista.com>
* lanserv/ipmi_sim.c: Set SO_REUSEADDR on the serial TCP and IPMI
LAN sockets to avoid "address in use" errors when quitting and
restarting.
2013-11-06 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/persist.h, lanserv/persist.c, lanserv/ipmi_sim.c:
Add a way to pass in the state directory on the command line so
the persist location can be specified then instead of just at
compile time.
2013-10-10 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/os_handler.h: Add a real and monotonic time
fetcher.
* cmdlang/os_debug: Add the new time fetchers.
* tcl/tcl_os_hnd.c, unix/unix_os_hnd.c, ui/ui_os.c: ditto
* unix/posix_os_hnd.c, unix/posix_thread_os_hnd.c: ditto
* unix/selector.c: Switch to using monotonic time.
* lib/ipmi_lan.c: Change gettimeofday() to the proper time handlers.
* lib/mc.c, lib/oem_atca_conn.c, lib/sdr.c: ditto
* lib/sensor.s, sample/ipmicmd.c, tcl/test_handlers.c: ditto
* ui/basic_ui.c, ui/ui.c, unix/test_handlers.c: ditto
* lanserv/OpenIPMI/serv.h: Add a real and monotonic time
fetcher.
* lanserv/ipmi_sim.c, lanserv/lanserv.c: Supply time fetchers
using the os handler.
* lanserv/bmc.c: Use the time fetchers instead of gettimeofday().
* lanserv/bmc_app.c, lanserv/bmc_storage.c: ditto
* lanserv/marvell-bmc/marvell_mod.c: ditto
2013-08-30 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/Makefile.am: Add ipmi_string.h to the
distributed includes.
* configure.in: Move to version 2.0.20-rc3.
2013-08-29 Corey Minyard <cminyard@mvista.com>
* lanserv/sdrcomp/Makefile.am, lanserv/marvell-bmc/Makefile.am:
Remove the sdrcomp_build program, it wasn't necessary.
* configure.in: The dia program changed the --version output
from stdout to stderr. Account for that.
* configure.in: Move to version 2.0.20-rc2.
2013-08-28 Corey Minyard <cminyard@mvista.com>
* unix/posix_thread_os_hnd.c: Add a lock to the timer to avoid
races starting and stopping the timer.
* cmdlang/cmd_lanparm.c: Cleanups for warnings.
* cmdlang/cmd_solparm.c: ditto
* lanserv/ipmi_sim.c: ditto
* lib/entity.c: ditto
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
* lib/mc.c: ditto
* lib/oem_atca.c: ditto
* lib/sensor.c: ditto
* sample/ipmicmd.c: ditto
* sample/sample2.c: ditto
* ui/basic_ui.c: ditto
* ui/ui.c: ditto
* utils/ipmi_malloc.c: ditto
* utils/string.c: ditto
* tcl/test_handlers.c: Call Tcl_CreateInterp() to initialize
the Tcl code before using.
* include/OpenIPMI/ipmi_cmdlang.h: Add some missing includes.
* lanserv/OpenIPMI/persist.h, lanserv/persist.c, lanserv/emu_cmd.c:
Add a emu command to disable persistence, mostly for testing.
* lanserv/ipmi_sim.c: Still write '> ' if echo is off, so the test
code can tell when a command is done.
* lanserv/lanserv_ipmi.c: Fix the response length on set_channel
access, fix the lan parameter command and rollback so it works
multiple times.
* swig/perl/Lanserv.pm: Big rework of the tests so they work with
recent simulator changes.
* swig/perl/Makefile.am: ditto
* swig/perl/lan.conf: ditto
* swig/perl/test_chan: ditto
* swig/perl/test_fru: ditto
* swig/perl/test_lanparm: ditto
* swig/perl/test_pef: ditto
* swig/perl/test_pet: ditto
2013-08-28 Nikita Yushchenko <nyushchenko@dev.rtsoft.ru>
* unix/posix_thread_os_hnd.c: This patch makes behaviour of
posix_thread_os_hnd's stop_timer() same as behaviour of
posix_os_hnd's stop_timer() currently is.
* swig/perl/.gitignore, swig/python/.gitignore, tcl/.gitignore:
More .gitignore.
2013-08-27 Nikita Yushchenko <nyushchenko@dev.rtsoft.ru>
* lib/ipmi_lan.c: This change is needed to allow software using
library to see "connection timeout" error, that happens when BMC
indeed does not respond.
2013-06-13 Nikita Yushchenko <nyushchenko@dev.rtsoft.ru>
* lib/ipmi_lan.c: Fix misbehaviour of code in
check_session_seq_num() when incoming sequence number contains
garbage. Also, it fixes type of 'bit' variable same as type of
(*map) it operates on... but still not enough for lt_allowed=16.
* lib/ipmi_lan.c: Change the message map size to 32 bits so it can
handle a full 16-message window.
2013-05-29 `Corey Minyard <cminyard@mvista.com>
* lanserv/serv.c: Don't return negative of the checksum, let the
calling routine do that so it can do running checksums.
* lanserv/bmc.c, lanserv/lanserv.c: Negate the checksum.
* lanserv/serial_ipmi.c, lanserv/lanserv_ipmi.c: Fix some style issues
around the checksum code.
2013-05-06 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell.emu: Change the SEL size to 1000 entries.
* lanserv/sol.c: Fix an error shutdown issue that can result in a
SIGSEGV.
2013-04-15 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell_mod.c: Modify the power on sequence
to hold the reset for 100ms after power on.
2013-04-11 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell_mod.c: Fix the calculations for the
1.05V sensor.
* lanserv/marvell-bmc/marvell_mod.c: Add a duty cycle modify field
to let you adjust the duty cycle of the fans.
2013-03-28 Corey Minyard <cminyard@mvista.com>
* lanserv/bmc_storage.c: Modified the fru_trywait to be
fru_timedwait when waiting for the FRU semaphore, and added a
250ms timeout on it. That should be enough time for any
asynchronous operation to complete, but avoids an error return.
2013-03-27 Corey Minyard <cminyard@mvista.com>
* lanserv/bmc_storage.c: Added EINTR and partial read/write
handling for FRU data.
2013-03-08 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell_mod.c: Fix a typo in an error string.
* sample/ipmi_serial_bmc_emu.c: Fix the IP address configuration
so it actually works.
2013-03-07 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell_mod.c: The system serial number for
the board was being set wrong, the data was off by 1 in the fru
version 2 case.
* lanserv/marvell-bmc/marvell_mod.c: Rewrite the chassis info for
a board if the version of the main chassis info is different than the
version for the board.
2013-03-05 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell_mod.c: Fix a bug in the board
removal simulation.
2013-03-04 Corey Minyard <cminyard@mvista.com>
* lanserv/emu_cmd.c, lanserv/OpenIPMI/serv.h: Add the ability to
dynamically add new emulator commands. Useful for debugging.
* lanserv/emu.h: Removed things moved to serv.h.
* lanserv/marvell-bmc/marvell_mod.c: Add the ability to simulate
a board being removed.
* lanserv/bmc_sensor.c: The hysteresis was being pulled from the
wrong bytes in the SDR.
* lanserv/marvell-bmc/marvell_mod.c: For the chassis power control,
if any board is on the report the power as on.
* lanserv/marvell-bmc/marvell_mod.c: Add a bunch of internal
documentation and reorganize things a bit to make sure that
related functions are grouped together.
2013-02-25 Corey Minyard <cminyard@mvista.com>
* lanserv/bmc_sensor.c: The previous change to avoid bogus events
from polled sensors turned off the timer for polled sensors, thus
nothing happened. Start the timer.
* lanserv/marvell-bmc/lancontrol: Handle incomplete arp results.
2013-02-22 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/mcserv.h, lanserv/emu_cmd.c: Add postinit
function to the polled sensor handler to call after the sensor is
created.
* lanserv/bmc_sensor.c: Add the ability to set the initial event
state for a polled file sensor.
* lanserv/marvell-bmc/marvell_mod.c: Start out the power supply
sensor with the present bit set so that no log is issued for
normal startup.
2013-02-21 Corey Minyard <cminyard@mvista.com>
* lanserv/bmc_storage.c: Fix an issue with writing FRU data to a
file, it was writing the wrong data.
* lanserv/bmc_sensor.c: Delay enabling the FRU and reading sensor
data a bit so that false events don't get put into the event log.
* lanserv/marvell-bmc/*.sdrs: Fix the events to be deassert events
for the various deassertions.
* lanserv/marvell-bmc/marvell_mod.c: Fix the reset reason sensor,
it wasn't actually adding the proper value into the event to tell
what happened.
* lanserv/bmc_storage.c: Make the SEL overflow bit work.
2013-02-12 Corey Minyard <cminyard@mvista.com>
* lanserv/ipmi_sim.c: Add a way to catch fatal signals, and add a
shutdown handler for when the program either shuts down normally
or catches a signal.
* lanserv/sol.c, lanserv/ipmi_sim.c: Add a method to save the sol
data to a backup file when the program shuts down, and restore the
backup data when the program comes back up. Also remove the
sol_shutdown() function an move that handling over to the new
method.
* lanserv/marvell-bmc/lan.conf: Add sol shutdown/restore files for
all the sol sessions.
2013-02-07 Corey Minyard <cminyard@mvista.com>
* configure.in, lanserv/Makefile.am: Add a --with-marvell-bmc
option.
* lanserv/marvell-bmc/marvell_mod.c: Add support for the version
2.0 FRU.
2013-02-06 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell_mod.c: Add an option to disable the
watchdog timer.
* lanserv/marvell-bmc/marvell_mod.c: Fix reset reason to be hard
reset unless coldboot or warmboot is set.
2013-02-04 Corey Minyard <cminyard@mvista.com>
* configure.in: Add support for BUILD_CC.
* configure.in, lanserv/sdrcomp: Move sdrcomp into its own
subdirectory so it can be ready before marvell-bmc, and add
a build version of sdrcomp.
* lanserv/sdrcomp/marvell-bmc/Makefile.am: Get all the extra stuff
to distribute properly and build the SDRs automatically.
* lanserv/marvell-bmc/marvell_mod.c: Fix a cold power up bug,
don't change the board power state if it's not a cold power up.
* lanserv/marvell-bmc/marvell_mod.c: If the BMC sees a critical
temperature for a board, it waits until it sees it twice before
powering the board down.
* lanserv/marvell-bmc/marvell_mod.c: Switch the handling of
critical temperatures and sensor settings so the sensor setting
goes first. Before the sensor setting was after the board was
powered off and the sensor was disabled, so on an overtemp the
event wouldn't be logged.
* lanserv/marvell-bmc/marvell_mod.c: Fix the name of the dimm
sensor.
* lanserv/marvell-bmc/marvell_mod.c: Always use the motherboard
temperature sensor when calculating fan duty.
2013-02-03 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell_mod.c: Add support for /dev/watchdog.
* lanserv/marvell-bmc/marvell_mod.c: Add a sensor for reporting
the reboot reason of the BMC.
* lanserv/marvell-bmc/marvell_mod.c: Clean up some stray \n's that
shouldn't be in sys->log() calls.
* lanserv/bmc.c: Fix handling of adding commands to existing
netfns, the cb_data may be NULL in that case.
2013-01-24 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/Makefile.am: Fix the localcopy command
to actually make a local copy.
* lanserv/marvell-bmc/marvell_mod.c, lanserv/marvell-bmc/board.sdrs:
Increase the range of the 0.9V sensor.
* lanserv/marvell-bmc/marvell_mod.c: Minor cleanups and memory
usage inprovements.
2013-01-23 Corey Minyard <cminyard@mvista.com>
* lanserv/bmc_sensor.c: Don't require a sensor to be enabled to
be polled. The sensor enable is often set in the polling routine.
* lanserv/marvell-bmc/lan.conf: Fix the LAN configuration to better
match the hardware.
* lanserv/marvell-bmc/marvell_mod.c: Fix the power supply sensor,
it was fairly broken with respect to presence.
2013-01-21 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc/marvell_mod.c: Don't allow power to be
changed on a board that is not present.
* lanserv/marvell-bmc/marvell_mod.c: Light the fan fail LED on a
fan failure.
* lib/sensor.c, lib/entity.c: Allow software ids to be used as
normal addresses.
* lanserv/marvell-bmc/marvell_mod.c: Fix an issue with setting
board presence in the wrong place.
2013-01-20 Corey Minyard <cminyard@mvista.com>
* lanserv/marvell-bmc, lanserv/Makefile.am: Add the Marvell BMC
code ipmi_sim plugin.
* lanserv/ipmi_sim.c, lanserv/lanserv.c: Add config.h include so
syslog testing will work.
2013-01-18 Corey Minyard <cminyard@mvista.com>
* lanserv/*: Change the command handler to take a cb_data
parameter.
* lanserv/OpenIPMI/mcserv.h, lanserv/bmc_storage.c: Modify the FRU
data to be more memory efficient.
* lanserv/bmc_picmg.c: Adjust for previous change.
2013-01-14 Corey Minyard <cminyard@mvista.com>
* lanserv/bmc.h, lanserv/OpenIPMI/mcserv.h, lanserv/bmc_sensor.h:
Modify the sensor bit settings to use bitmasks of a uint16_t
instead of an array of characters. Less code, less memory, and
faster.
* lanserv/bmc_app.c, lanserv/bmc_picmg.c: Adjust for the previous
change.
* lanserv/bmc_sensor.c, lanserv/OpenIPMI/mcserv.h: Add handling of
sensor rearm and add a way to register to get called if a sensor
is rearmed.
2013-01-11 Corey Minyard <cminyard@mvista.com>
* lanserv/sol.c: Fix a bug where a sol connection can hang on an
overflow of data. The handling of sol reading was reworked quite
a bit because of this, and to fix other issues related to history.
The history handling throws a bit of a curve into this, because
you want data to go to the history even if you can't read any more
to send out the network interface. So reading data is no longer
flow-controlled if history is enabled. Instead the buffer size
was increased and reads always are enabled on the port.
In addition, the maximum send size was increased to 255 bytes and
a few places were a wrong timer was started were fixed.
* lanserv/extcmd.c: Fix handling of IP addresses to work on any
endianness.
* lanserv/lanserv_ipmi.c: Change the maximum message size to ~1024.
* lanserv/lanserv_ipmi.c: Modify the reading of values during a
set so that it reads values from the local data, not the external
data, when the parameter has been set but not committed. ipmitool
expects to be able to re-read parameters and get the value it
wrote.
2013-01-10 Corey Minyard <cminyard@mvista.com>
* lanserv/extcmd.c: Fix issues with IP addresses on ARM.
* lanserv/ipmi_sim: Don't bring up a LAN channel if the address
is not configured.
* lanserv/lanserv_ipmi.c: Fix allowed auths settings to use the
actual values, and fix the type 16 parameter.
* lanserv/bmc.h, lanserv/bmc_app.c, lanserv/OpenIPMI/mcserv.h: Add
version setting capability to the MC.
* lanserv/bmc.c, lanserv/OpenIPMI/mcserv.h: Add a way to fetch the
openipmi lanserv version.
* lanserv/bmc_sensor.c: Convert reading raw data for sensors to
using raw, not buffered, I/O. ASCII reading remains buffered.
* lanserv/bmc_storace.c: Convert reading/writing EEPROM data to
use raw I/O, not buffered I/O.
2013-01-09 Corey Minyard <cminyard@mvista.com>
* lanserv/sdrcomp.c: Add type 18 SDR.
2013-01-07 Corey Minyard <cminyard@mvista.com>
* lanserv/ipmi_sim.c: Fix the IO exception callback.
* lanserv/Makefile.am: Update version.
* unix/posix_os_hnd.c: Remove some dead code.
* unix/selector.c: Consolidate the processing.
* lanserv/bmc_sensor.c: Add mask capability to the file sensor.
* lanserv/sdrcomp.c: Add timestamps and entity names to SDRs.
2013-01-06 Corey Minyard <cminyard@mvista.com>
* lanserv/mcserv.h, lanserv/bmc_sensor.c: Add flags to the threshold
and event support settings to allow values to be passed in to control
which parts are initialized.
* lanserv/emu_cmd.c: Adjust for the previous changes.
* lanserv/bmc_sensor.c: Finish the SDR initialization code.
* lanserv/bmc_sensor.c: Convert the ascii file scanner to a general
scanner that can be used for raw or ascii files.
* lanserv/bmc_sensor.c: Fix the polling to to limit threshold values
from 0-255.
* lanserv/emu_cmd.c: Use standard, not base 16, for all integer values
except raw data input.
* lanserv/persist.c: Fix a bug reading lower-case hex values.
* lanserv/sdrcomp.c: Fix some issues with type 2 sdrs.
* lanserv/ipmisim1.emu: Adjust for the previous changes.
* lanserv/persist.c: Fix a memory overwrite reading data.
* lanserv/bmc_sensor.c: Don't process polled sensor data if it's
not valid.
2013-01-03 Corey Minyard <cminyard@mvista.com>
* lanserv/*: Fix const correctness issues.
* lanserv/emu_cmd.c, lanserv/config.c: Add variable definition and
include commands.
2013-01-02 Corey Minyard <cminyard@mvista.com>
* lanserv/sdrcomp.c: Lots of enhancements, names for fields,
and general things to make this easier to use.
* lanserv/bmcsensor.c: Added a multiplier for ascii file sensor
handling.
2012-12-29 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/mcserv.h, lanserv/bmc.h, lanserv/bmc_sensor.h:
Rework the just added poll sensor capability to have it return the
new value. This will make it easier to run in a separate thread,
if necessary.
* lanserv/bmc_sensor.c: Fix event delivery handling of the data
values.
* lanserv/bmc_storage.c: Fix issues with the persistent storage of
data.
* lanserv/emu.h, lanserv/bmc.c, lanserv/emu_cmd.c: Add options to
the MC and add an option to use or not use SDR persistence.
2012-12-28 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/serv.h, lanserv/config.c, lanserv/ipmi_sim.c:
Add a post-init function for modules.
2012-12-27 Corey Minyard <cminyard@mvista.com>
* lanserv/bmc.h, lanserv/bmc_sensor.c, lanserv/OpenIPMI/mcserv.h:
Added sensor infrastructure for registering and initializing
sensor types.
* lanserv/emu_cmd.c: Added code to use the registration of sensor
types and the setting of polled sensors.
2012-12-21 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/mcserv.h, lanserv/bmc_storage.c: Add the
ability to represent a FRU inventory device with a function, and
add a helper function for doing this with a file.
* lanserv/emu_cmd.c: Adjust for the previous change.
* lanserv/sel.c: Add persistence to the SEL.
* lanserv/sdrcomp.c: Add type 16 and 17 SDR types.
* lanserv/bmc.h, lanserv/bmc_storage.c: Add a function to iterate
SDRs.
* lanserv/bmc.c: Remove init_sensor_from_sdr().
* lanserv/bmc_sensor.c: Add initialization of a sensor from the
BMC's main SDR repository.
2012-12-20 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/persist.h, lanserv/persist.c: Add the ability
to write persist data to a FILE and to iterate persist data.
* lanserv/sdrcomp.c, lanserv/Makefile.am: Add the ability to
output SDRs in persist format.
* lanserv/bmc.c, lanserv/bmc.h, lanserv/bmc_storage.h: Remove the
watchdog sensor SDR init and add the ability to read and write the
SDRs from persistent data.
2012-12-18 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_string.h, utils/string.c, Makefile.am:
Move IPMI string handling to the utils library.
* include/OpenIPMI/internal/ipmi_int.h, lib/ipmi.c: Move the IPMI
string handling from here.
* lanserv/OpenIPMI/serv.h, lanserv/config.h: Add a "get_int"
handler for SDRs.
* lanserv/config.c: Add some other valid boolean values for use in
SDRs: (yes, no, 1, 0).
* lanserv/sdrcomp.c: Add start of code to compile SDRs from human
readable text.
2012-12-17 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c: Some reorganization getting ready to split
up this file.
* lanserv/serv.c, lanserv/OpenIPMI/serv.h: Create a common
ipmb_checksum routine.
* lanserv/emu.c: Use the common ipmb_checksum routine
* lanserv/lanserv.c: ditto
* lanserv/lanserv_ipmi.c: ditto
* lanserv/serial_ipmi.c: ditto
* lanserv/bmc.c: Rename from emu.c
* lanserv/bmc.c, lanserv/Makefile.am: Split this file up into
smaller pieces, roughly per NETFN.
* lanserv/bmc_app.c: ditto
* lanserv/bmc_chassis.c: ditto
* lanserv/bmc_picmc.c: ditto
* lanserv/bmc_sensor.c: ditto
* lanserv/bmc_storage.c: ditto
* lanserv/bmc_transport.c: ditto
2012-12-01 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/serv.h, lanserv/config.c, lanserv/ipmi_sim.c:
Add the ability to print the version of ipmi_sim and any loaded
modules.
2012-11-14 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI.mcserv.h, lanserv/OpenIPMI/mcserv.h: Add
graceful shutdown defines.
* lanserv/emu: Add graceful shutdown capability.
2012-11-09 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c: OpenIPMI was assigned an IANA number, so use it
for our custom messages.
2012-11-07 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/mcserv.h, lanserv/sol.c, lanserv/lan.conf:
Change noreadclear to readclear.
2012-11-06 Corey Minyard <cminyard@mvista.com>
* lanserv/Makefile.am, lanserv/sol.c, lanserv/config.c: Move the
sol code to only be compiled into ipmi_sim, not the lanserv
command.
* lanserv/emu.c, lanserv/OpenIPMI/mcserv.h: Add an IANA handler
and a handler for the OpenIPMI-specific IANA and allow other
parts of the system to register commands against it.
* lanserv/sol.c: Add a new command to limit the size fetched from
the SOL history buffer.
2012-10-29 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/serv.h, lanserv/ipmi_sim.c: Add a gen_rand
function to the sys_data_t structure.
* lanserv/OpenIPMI/mcserv.h, lanserv/sol.c, lanserv/config.c:
By default clear the SOL history buffer after it is read, but
add a parameter to not clear it.
2012-10-05 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c, lanserv/OpenIPMI/mcserv.h: Reworked the chassis
control function a bit to make it more flexible. Added power
cycle capability.
* lanserv/Makefile.am, lanserv/ipmi_sim.c: Add a version number to
the simulator.
2012-10-04 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c: Fix a problem handling FRU data that is larger
than 64K.
2012-10-03 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/serv.h: Increase the number of IPMBs to 256
and modify the code to allow odd IPMB addresses.
* lanserv/config.c: ditto
* lanserv/emu.c: ditto
* lanserv/ipmi_sim.c: ditto
* lanserv/sol.c: ditto
* lib/Makefile.am: Remove '-L$(libdir)' from the LDFLAGS, as that
causes issues with cross compiling.
* lanserv/persist.c: Fix a problem reading integet persisten
values.
* lanserv/sol.c, lanserv/emu.c: Fix some bugs with SOL config
handling.
2012-10-02 Corey Minyard <cminyard@mvista.com>
* lanserv/sol.c, lanserv/config.c: Add a way to disable RTS/CTS
handling on the port.
* lanserv/sol.c: Fix a bug handling data when the buffer gets
full.
2012-10-01 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/serv.h: Add printf attribute to the log functions.
* lanserv/serv.c, lanserv/lanserv_ipmi.c: Fix problems with log
function attributes being wrong.
2012-09-29 Corey Minyard <cminyard@mvista.com>
* lanserv/config.c, lanserv/ipmi_sim.c: Move the dynamic loading
to after the main part of the simulator is initialized.
* lanserv/sol.c: Print the right pid if the device is UUCP locked.
2012-09-27 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c: Added an internal capability to do power control.
2012-09-26 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/serv.h, lanserv/ipmi_sim.c: Add a way to do I/O
handling to the sys_data structure.
* lanserv/sol.c: Switch sol over to use the sys_data I/O handling
instead of directly using the OS handlers.
2012-09-25 Corey Minyard <cminyard@mvista.com>
* lanserv/config.c: Have the module initialization function
return an int, 0 for success and errno for failure.
2012-09-24 Corey Minyard <cminyard@mvista.com>
* doc/Makefile.am: One more fix for building outside the source
directory.
* lanserv/OpenIPMI/Makefile.am: Add a missing file.
* lanserv/Makefile.am: Fix a cross-compile issue.
2012-09-21 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c, lanserv/lanserv_ipmi.c: Test handling a SOL
session on a satellite MC, fix some issues with that.
2012-09-20 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c: Make the FRU history be per-session so multiple
users will consistent data.
2012-09-19 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c: Convert the command handling over to using
tables to allow commands to be dynamically added, and add
a function to do this.
* lanserv/config.c: Add a way to dynamically load libraries
into the simulator.
* cmdlang/Makefile.am: Rework so OpenIPMI can build in an external
directory.
* cmdlang/ipmish.c: ditto
* include/OpenIPMI/ipmi_conn.h: ditto
* include/OpenIPMI/ipmi_lan.h: ditto
* include/OpenIPMI/ipmi_types.h: ditto
* include/OpenIPMI/ipmiif.h.in: ditto
* lib/Makefile.am: ditto
* sample/Makefile.am: ditto
* swig/perl/Makefile.am: ditto
* swig/python/Makefile.am: ditto
* swig/python/openipmigui/Makefile.am: ditto
* ui/Makefile.am: ditto
* unix/Makefile.am: ditto
2012-09-17 Corey Minyard <cminyard@mvista.com>
* lanserv/extcmd.c, lanserv/OpenIPMI/extcmd.h: Add a mapping
capability to map values to strings.
* lanserv/emu.c, lanserv/lanserv_ipmi.c: Convert over to the
extcmd string mapping facility.
2012-09-16 Corey Minyard <cminyard@mvista.com>
* lanserv/config.c, lanserv/emu.c: Add an external command
function for doing power and reset control.
* lanserv/ipmi_sim_chassiscontrol: Add an example script for power
configuration.
* lanserv/emu.c: Add boot config control handling.
* lanserv/ipmi_sim_chassiscontrol: Add boot config control.
2012-09-15 Corey Minyard <cminyard@mvista.com>
* lanserv/extcmd.c, lanserv/extcmd.h: Add an external command
processing facility.
* lanserv/lanserv_ipmi.c, lanserv/OpenIPMI/lanserv.h: Use the
external command processing facility to handle reading and writing
the external LAN configuration parameters.
* lanserv/ipmi_sim_lancontrol: Add an example script for LAN
configuration.
2012-09-14 Corey Minyard <cminyard@mvista.com>
* lanserv/lanserv_ipmi.c, lanserv/OpenIPMI/serv.h: Rework the
session registration code to be able to add a separate MC for
different payloads.
* lanserv/sol.c, lanserv/emu.c, lanserv/OpenIPMI/mcserv.h:
Add the ability to fetch the SOL history buffer as FRU
data.
2012-09-13 Corey Minyard <cminyard@mvista.com>
* lanserv/sol.c: Finish up the SOL implementation by adding
a timer and modem control signal handling.
* lanserv/sol.c, lanserv/config.c, lanserv/OpenIPMI/mcserv.h: Add
a history buffer that tracks the last N bytes of serial port
output, where N is specific in the config file.
2012-09-11 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/os_handler.h: Add functions to handle write
and except status on an FD.
* unix/posix_os_hnd.c: Add the above functions for this handler.
2012-09-08 Corey Minyard <cminyard@mvista.com>
* lanserv/*: Start adding SOL functionality, implement commands,
start working on payload handling and getting all the various
pieces tied in to the frameworks.
2012-09-07 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/mcserv.h, lanserv/sol.c: Implemented UUCP
locking on SOL ports and basic SOL device setup.
2012-09-05 Corey Minyard <cminyard@mvista.com>
* lanserv/lanserv_ipmi.c, lanserv/OpenIPMI/lanserv.h: Remove a
bunch of LAN config options we are not supporting.
* lanserv/lanserv_ipmi.c: Implement Get Channel Cipher Suites
and implement a few other authentication mechanisms that needed
to be done.
* lanserv/config.c, lanserv/persist.c, lanserv/persist.h: Allow
printf-type names for alloc and read persist operations.
* lanserv/lanserv_ipmi.c, lanserv/OpenIPMI/lanserv.h: Add persistence
for some LAN data.
* lanserv/sol.c, lanserv/emu.c, lanserv/lanserv_ipmi.c: Start
adding the SOL protocol.
2012-09-04 Corey Minyard <cminyard@mvista.com>
* lanserv/persist.c, lanserv/persist.h, lanserv/Makefile.am: Add a
persistence tool to use for storing data on the disk.
* lanserv/config.h, lanserv/emu.c, lanserv/ipmi_sim.c: Save and
restore users information using the persistence tool.
* lanserv/OpenIPMI/serv.h, lanserv/ipmi_sim.c, lanserv/lanserv.c:
Remove the write_config function, replacing it with the persistence
tool.
2012-08-09 Corey Minyard <cminyard@mvista.com>
* lanserv/*: Move the receive queue into the MC where it belongs.
* swig/python/openipmigui/_mc_chan.py: Fix channel scanning code
so it scans channel 15, too.
* lanserv/*: Move the channel structures into the MC and allow
per-MC channel settings.
* lanserv/*: Move the startcmd into the MC to allow more than
one VM to hook to simulated IPMI environment on different MCs.
* lib/chassis.c, lib/mc.c, include/OpenIPMI/internal/ipmi_mc.h:
Create power and reset controls for non-BMC MCs with the chassis
bit set, use the IPMB address for the instance in that case.
* lanserv/*: Move the user and PEF structures into the MC.
2012-08-08 Corey Minyard <cminyard@mvista.com>
* lanserv/*: Rename "bmc_data_t" to "sys_data_t" because it's mostly
info about the whole emulator, not BMC-specific. Also, move the
lmc_data_t structure and functions to a separate include file.
This is getting ready to move some things that are in bmc_data_t
to the specific MCs, as some of the things are mc-specific, like
channels.
2012-08-03 Jim Mankovich
* unix/posix_os_hnd.c: The unix/posix_os_hnd.c stop_timer function
will stop the timer correctly, but it can never be restarted again
because the os_hnd_timer_id_t running status is not reset to zero
(0 == !running). I ran into this problem when trying to change
the ipmb rescan timer value via ipmi_domain_set_ipmb_rescan_time).
If you ever call this function, the ipmb rescan timer will be
stopped and you can never restart it again. This function should
really check the result of start_timer and report an error if it
can't restart the timer.
2012-07-21 Corey Minyard <cminyard@mvista.com>
* lanserv/lan.conf: Fix the startcmd example to match changes
made in the qemu code.
* lib/pet.c: Someone running static analysis (they didn't give
their name, just a sourceforge login) reported that the sizeof
operator for an array parameter always returns the size of a
pointer. This was used when copying a MAC address, and was thus
incorrect. Change the memcpy to use "6".
* lib/ipmi_smi.c: Someone noticed that the return values from
opening an IPMI device could be inconsistent because it tries a
bunch of possibilities and returns the last error. So ignore
ENOENT as it is meaningless unless everything return ENOENT.
2012-07-21 Bob Cagle <rcagle@ccpu.com>
* lib/normal_fru.c: The length can exceed a char size in a board
info area, but a char was used to hold the length. Change it to
an int.
2012-07-21 Stephane Blain <stblain@sf.net>
* lib/sensor.c: If there are not valid sensors in the SDR, don't
return an error from scanning the SDRs. There's just no sensors.
* lib/oem_atca.c: Fix an issue with invalid severe errors coming
out due to the floating IPMB address being picked up.
* lib/sdr.c: In oem_atca.c (atca_event_handler),
ipmi_start_ipmb_mc_scan is called each time an 0xf0 event is
received. because of the race condition, the MC callback is called
with wrong information (sdr_fetch_info_t->changed is not set
correctly).
2012-07-01 Corey Minyard <cminyard@mvista.com>
* cmdlan/Makefile.am, glib/Makefile.am, lib/Makefile.am:
Fix some build issues with libraries.
* tcl/Makefile.am, unix/Makefile.am: ditto
* configure.in: Move to version 2.0.20-rc1.
2012-06-28 Corey Minyard <cminyard@mvista.com>
* swig/python/sample.py, swig/python/sample2.py: Fix some issues
with proper shutdown and cleanup.
* sample/ipmicmd.c: Don't free the response, let the system do it
in the normal case.
* lib/ipmi_lan.c: Fix issues with locking and reporting connection
failure status.
* sample/ipmi_serial_bmc_emu.c: Convert to work with IPv6.
* lanserv, man: Did a massive restructure of lanserv and the
IPMI simulator for supporting a VM interface.
* swig/python/openipmigui/_sensor.py: Fix a reference error
causing a failure in some cases when setting event thresholds.
* swig/python/openipmigui/gui_setdialog.py: BooleanVar will return
an integer in some cases, account for that.
2012-05-24 Corey Minyard <cminyard@mvista.com>
* lanserv/OpenIPMI/ipmi_sim_info.h, lanserv/OpenIPMI/lanserv.h:
Moved some generic information into ipmi_sim_info.h for use by
the emulator and lanserv.
* lanserv/emu.c, lanserv/emu.h, lanserv/emu_cmd.h: Rework the
emulator to move some generic information into ipmi_sim_info.h
structures.
* lanserv/ipmi_sim.c, lanserv/lanserv.c, lanserv/lanserv_config.c:
Rework for the above changes.
* lanserv/lanserv_ipmi.c: ditto
2012-05-21 Corey Minyard <cminyard@mvista.com>
* os_handler.c, ipmi_malloc.c: Since the OS handler waiter stuff
uses ipmi_malloc(), initialize it from there. And only initialize
the os_handler once in ipmi_malloc_init(), to avoid any issues
with the OS handler changing.
* lanserv_emu.c, ipmi_sim.c, Makefile.am: Rename lanserv_emu to
ipmi_sim, and modify ipmi_sim to use the OS handler.
* lanserv/emu.c: Fix a buffer overrun if a SEND_MSG response was
too large to fit into the buffer.
2012-04-27 Corey Minyard <cminyard@mvista.com>
* cmdlang/cmd_sensor.c: A sensor event does not have to be readable
to support event enables.
2012-01-05 Michael Pauzner <MichaelP@Radware.com>
* unix/posix_thread_os_hnd.c: Add pthread_attr_setinheritsched()
when setting the priority of a thread, so the set will actually
work.
2011-10-12 Corey Minyard <cminyard@mvista.com>
* Makefile.am, swig/python/Makefile.am: Fixed the rungui setting due
to changes in autoconf and such.
* configure.in: Add a check for execinfo.h that used to be automatic.
* swig/OpenIPMI.i: Fix an issue with domain.iterate_mcs(). The
callback name was inconsistent, causing issues. Make the callback
name domain_iter_mc_cb in all cases.
* swig/python/Makefile.am, swig/python/sample2.py: Add a simple
sample program to send get device id periodically.
* utils/ipmi_malloc.c: Fix a bug in the malloc code to handle if no
traceback is passed in.
* configure.in: Move to version 2.0.19.
2011-06-15 Anduras AG <https://sourceforge.net/users/anduras/>
* configure.in, ui/Makefile.am: Add support for ncursesw.
2010-07-14 Corey Minyard <cminyard@mvista.com>
* Makefile.am, configure.in, cmdlang/Makefile.am, doc/Makefile.am,
glib/Makefile.am, lanserv/Makefile.am lib/Makefile.am, tcl/Makefile.am,
ui/Makefile.am, unix/Makefile.am, utils/Makefile.am: Remove all
gnu make specific constructs and make automake happy.
* sample/ipmi_serial_bmc_emu, sample/ipmicmd.c, sample/rmcp_ping.c,
libedit/read.c, libedit/readline.c, libedit/vi.c, lib/mc.c,
lib/lanparm.c, lib/ipmi_smi.c, lib/ipmi_payload.c, lib/ipmi_lan.c,
lib/domain.c, lanserv/lanserv.c: Cleaned up some pointer aliasing
problems and some signed/unsigned compare problems.
2010-06-02 Dann Frazier <dannf at sourceforge.net>
* ipmi.init - Initscripts should be idempotent, meaning you can
safely call "start" multiple times in a row and receive a success
each time if the service is running. This requirement is mentioned
in the LSB Spec, version 3.1, section 20.2.
The openipmi initscript does not meet this requirement when the
ipmi watchdog option is enabled. The 'start' method will return an
error if /dev/watchdog already exists. But, if /dev/watchdog is
there because ipmi_watchdog is already loaded, we should not
receive an error.
This change fixes this. It also includes a fix for a syntax error
that prevents start_watchdog_common() from working at all.
2010-05-28 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Change the "share count" checking to check if
share count is > 1, not > 0, because some silly machines set the
value to one when they should set it to zero, and one is a silly
setting.
2010-05-03 Corey Minyard <cminyard@mvista.com>
* swig/python/Makefile.am, swig/perl/Makefile.am: The swig command
could possibly get the wrong target, and the OpenIPMI_wrap.c file
was being included in the distribution, which could cause the
OpenIPMI.py and OpenIPMI.pm files to not be properly generated.
Fix those problems.
* configure.in: Move to version 2.0.18.
2010-04-29 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 2.0.17.
2010-04-28 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h, lib/ipmi.c: Add a cache option
to allow using the local cache to be enabled or disabled.
* include/OpenIPMI/internal/ipmi_domain.h, lib/domain.c,
include/OpenIPMI/ipmiif.h.in:
Add support for the cache option. Also rearrange the handling
of options to parse them before the domain is setup, otherwise
the SDR allocation would be done before the cache option is
processed.
* lib/sdr.c: Add support for the cache option.
2010-04-27 Alex Deiter <alex.deiter@gmail.com>
* configure.in, cmdlang/Makefile.am, sample/Makefile.am: Properly
handle the terminal library.
* swig/perl/Makefile.am: Clean up compile issues.
* swig/python/Makefile.i, swig/OpenIPMI.i,
swig/python/openipmigui/Makefile.am:
Clean up various compile issues with the python sources.
2010-04-27 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Use unsigned int, not double, to hold the raw
sensor value.
* lib/ipmi_lan.c: Pass in the correct socket length to sendto,
not just the maximum possible size.
2010-04-21 Alex Deiter <alex.deiter@gmail.com>
* cmdlang/ipmish.c, cmdlang/out_fru.c, configure.in,
lanserv/OpenIPMI/lanserv.h, lanserv/emu.h, lanserv/lanserv.c,
lanserv/lanserv_emu.c, lib/fru_spd_decode.c, lib/oem_intel.c,
sample/dump_sensors.c, sample/ipmi_serial_bmc_emu.c,
sample/sample.c, sample/sample2.c, sample/sample3.c
sample/solterm.c, unix/selector.c, unix/test_heap.c:
Get OpenIPMI to compile under FreeBSD.
2010-03-24 Corey Minyard <cminyard@mvista.com>
* swig/python/sample.py, swig/python/Makefile.am: Added a python
sample program, converted from the perl sample program.
* swig/perl/sample: Fixed a few bugs notices in the conversion
to python.
2010-01-04 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_smi.c: Fix a bug noticed by a user who filed
Sourceforge bug 2924182 on this, error cleanup in the case of an
SMI setup failure would crash in some cases, and I noticed a
use of freed data in the same routine and fixed that, too.
2009-10-19 Corey Minyard <cminyard@mvista.com>
* cmdlang/os_debug.c, glib/glib_os_hnd.c, tcl/tcl_os_hnd.c,
unix/posix_os_hnd.c, unix/posix_thread_os_hnd.c: Fix a bug filed
by dcb on SourceForce, modify set_gdbm_filename() in all these
files to properly use the allocated name instead of the passed
in name.
2009-09-14 Jan Safranek <jsafrane@redhat.com>
* ipmi.init: On certain HW (e.g. IBM HS20 blade) the /dev/watchdog
is created by kernel during boot (provided by i6300esb
driver). /etc/init.d/ipmi script then does not recognize the
device is already there and tries to configure new one, which
obviously fails. The init script does not show any error and
pretends everything is OK. So modify the init script to detect
that another watchdog is registered and print a failure message.
2009-06-17 Eric J. Bowersox <ericb@aspsys.com>
* lib/ipmi_lan.c: Two more null-pointer fixes to ipmi_lan.c, found
in 2.0.16. The first is in a debugging message in
rmcpp_find_ipmi, which was using the IPMI_CONN_NAME(ipmi) macro in
a scenario in which the pointer it was passing would always be
NULL, causing a segfault. I modified the debug message to remove
the connection name, as none of the other debug messages in that
function use the connection name anyway.
The second is in lan_oem_done, which may be called with a NULL
"ipmi" parameter (such as, indirectly, via lan_cleanup at line
4030). It contains recovery code for that purpose, but the
initialization of "lan" at line 4308 causes a segfault before the
code gets to that point. I moved the initialization to after the
test for NULL.
2009-06-15 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca_conn.c: Fix a logic problem in the disabling
of ATCA address checking.
2009-06-13 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca_conn.c: Fix a problem where the ATCA address
checking code could be called even if it was disabled.
2009-03-16 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 2.0.16. It's been a while and
a release is a good idea, I think.
2009-01-16 Corey Minyard <cminyard@mvista.com>
* lib/normal_fru.c: An Intel document (IPMI 0.9 to IPMI 1.0 Change
Summary and Porting Considerations from October 1, 1998) mentioned
the FRU version was updated from 1 to 2. Nothing else really
changed this, but some systems used the version 2. So account for
this change.
2009-01-09 Jan Safranek <jsafrane@redhat.com>
* sample/rmcp_ping.c: I know, it's just a library sample, but
people find rmcp_ping useful and it should report something when
user provides wrong command line arguments.
2008-12-09 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c, lib/oem_atca.c, sample/dump_sensors.c: Fix some
compiler warnings.
2008-12-08 Dann Frazier
* doc/IPMI.ltx: Fix some typos.
2008-11-19 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Allow scanning IPMB address 0x20 even if the the
channel medium is not IPMB. This helps fake out things where
there is no IPMB channel but an MC at 0x20 is still reported
in the SDRs.
2008-11-07 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Fix some bugs notices by Stephane Blain
(stblain at users.sourceforge.net) dealing with the hash
function for ipmi lan objects.
2008-09-07 Corey Minyard <cminyard@mvista.com>
* unix/selector.c: Fixed a problem with a missing NULL check
on sending a signal.
* sample/Makefile.am, sample/waiter_sample.c: Add a sample that
does waiting using the OS handler waiter.
2008-09-05 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_payload.c: Work around a bug in some systems that
switch the request and response address in IPMI LAN messages.
2008-07-14 Corey Minyard <cminyard@mvista.com>
* unix/selector.c: Fixed handling of waking up threads.
2008-07-02 Corey Minyard <cminyard@mvista.com>
* utils/os_handler.c: Fixed a messed up refcount when a waiter
times out.
* lib/strings.c: Fixed another typo noticed by Nancy Nichols.
2008-06-29 Corey Minyard <cminyard@mvista.com>
* lib/hmac.c: Someone named "Sia" reported on Sourceforge that
OpenIPMI was using the wrong key for HMAC-MD5-128. And they were
right. Problem is now fixed.
2008-06-26 Corey Minyard <cminyard@mvista.com>
* lib/strings.c: Fix a typo noticed by Nancy Nichols.
* configure.in: Fixed the dia test to work with 3-level version.
* lib/hmac.c: A variable in the SHA1 init function was declared
static instead of const. This means that in a multi-threaded
program, it is possibly (though quite unlikely) that the data
could get corrupted.
* swig/python/openipmiguid/gui_domainDialog.py: Improve the error
handling to make it easier to track down problems.
2008-05-21 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Don't remove everything from the IPMB scan if
all the get channel commands fail. There may still be something
on IPMB 0.
* lib/domain.c: Fix an overflow problem dealing with IPMB
addresses. If the IPMB ignores list covered all addresses, the
scan code would go into an infinite loop.
* lib/domain.c, include/OpenIPMI/ipmi_mc.h: Cleaned up the
defaulting of the channel to IPMB, including using defines instead
of constants.
* configure.in: Move to version 2.0.15.
2008-04-21 Corey Minyard <cminyard@mvista.com>
* sample/sample.c: Fixed some array index errors that Nancy
Nichols noticed.
2008-04-12 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, include/OpenIPMI/ipmi_mc.h: Added
handlers that can be called when a registered handlers is removed
(cleaned up) automatically (usually when an object is destroyed).
This sounds kind of weird, perhaps, but object referenced as
callback data can be refcounted by perl and Python (and maybe
other things). If an object gets destroyed, there was no easy way
(besides keeping a list yourself and watching for object
destruction) to detect this. To avoid burdening the user with
having to watch that stuff, provide an easy way for them to know
when a callback handler is automatically removed.
* include/OpenIPMI/internal/ipmi_entity.h: Added helper functions
for the callback cleanup.
* lib/control.c, lib/domain.c, lib/entity.c, lib/mc.c,
lib/sensor.c: Actually implement the callback cleanup handlers.
* swig/OpenIPMI.i: Use the callback cleanup handlers to clean
things up properly and avoid memory leaks.
* swig/perl/test_pet: Remove the now-unneeded cleanup of the
update handlers.
2008-04-10 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Don't mark a connection as started unless it
starts up completely.
* lib/ipmi.c: Fixed a log race that was caused by the shutdown
changes.
* lib/pet.c: Fix some refcounting problems, make sure the pet
object exists while callbacks are in progress.
* swig/OpenIPMI.i: Clean up refcount handling for PEF, PET, and
LANPARM objects to avoid race conditions and problems on errors.
* swig/perl/Makefile.am: Set the proper glib patch so that perl
can pick it up when running tests.
* lib/pef.c: Make sure the PEF object stays around during the
capabilities check.
2008-04-04 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: The send_command_option function of a connection
is optional, only use it if it is present.
2008-04-03 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, lib/domain.c: Made the "name"
field in ipmi_open_domain a const.
* lib/fru_spd_decode.c: Made the initialization reentrant.
* lib/ipmi_lan.c: Use IPMI_CON_OPTION_LIST_END instead of "0".
Also add -M to the option list
* include/OpenIPMI/ipmi_conn.h, lib/ipmi_lan.c: Added a connection
option specifying that a message has side effects. For messages
with side effects, increase the retry timeout to 5 seconds. This
is for reservation messages; on a slow link a reservation would be
resent, then the first response would be received and the old
reservation was being returned.
* include/OpenIPMI/ipmi_mc.h, lib/mc.c: Added a side-effect send
command function.
* include/OpenIPMI/ipmiif.h.in, lib/domain.c: ditto
* lib/sel.c, lib/sdr.c: Switch over to using the side effect
functions for doing reservations.
* man/ipmi_cmdlang.7: Add the -M option.
* lib/ipmi.c: Fix init/shutdown problems to allow init to be
called after a shutdown.
* lib/aes_cbc.c: ditto
* lib/hmac.c: ditto
* lib/md5.c: ditto
* lib/rakp.c: ditto
* lib/normal_fru.c: ditto
* lib/fru_spd_decode.c: ditto
* lib/fru.c: ditto
* lib/oem_atca.c: ditto
* lib/oem_atca_conn.c: ditto
* sample/sample.c: Add test code for multiple init/shutdown.
2008-03-27 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Fixed a rather serious bug in event handling, in some
cases it would never properly deliver events.
* configure.in: Move to version 2.0.14.
2008-03-12 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/lanserv.h, lanserv/OpenIPMI/lanserv.h: Move
lanserv.h into the lanserv directory. It still installs in
OpenIPMI as before.
* configure.in, lanserv/Makefile.am, lanserv/OpenIPMI/Makefile.am:
Required changes to move lanserv.h.
* include/OpenIPMI/Makefile.am: ditto
* lanserve/Makefile.am: Remove the dependency on OpenIPMIutils by
directly handling the source files from that directory and not
linking the utils library.
2008-01-22 Serkan Çalış <adresimeyaz (at) gmail (dot) com>
* libedit/makelist: When we try to compile OpenIMPI (2.0.11 or
previous versions) under Turkish locale, we get some erors like
chared.c:442: error: 'ED_UNASSIGNED' undeclared (first use in
this function)
This is because Turkish character i. Using ASCII could solve the
problem. I am attaching a patch for makelist, so we can compile
it.
2007-12-20 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/_sel.py, swig/python/openipmigui/gui_list.py:
Fine-tune some GUI settings.
* lib/entity.c: Fix a possible race condition in the entity code.
* lib/domain.c: Make the localonly option actually work.
2007-10-16 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/gui_domainDialog.py: Insert the default
value into string and integer values, primarily so the "Max
Outstanding Msgs" field has a proper default value.
* include/OpenIPMI/internal/ipmi_fru.h: One of the changes for
problems with older compilers had bad side effects; it resulted
in corrupt data in some cases. Change it back.
* tcl/Makefile.am, glib/Makefile.am: I was instructed by the
Debian maintainer that -rpath is a bad idea, and Debian had a
writeup. However, the automake documentation says that if you use
EXTRA_LTLIBRARIES for optional libraries, you must use -rpath. So
change the files back that use EXTRA_LTLIBRARIES.
* glib/Makefile.am: Add an pythoninstalllib option to instruct
where to install the shared libraries for python. Also install
the library directly in the install location and not in
lib-dynload.
* swig/OpenIPMI.i: Fixed a refcounting problem with
parse_args_iter_help().
* configure.in: Since one of the changes fixed a critical bug,
move to version 2.0.13.
2007-10-02 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/internal/ipmi_fru.h, lib/normal_fru.c: Fix
problems compiling with older compilers.
* lib/oem_atca_fru.c: ditto
* lib/ipmi_lan.c: Fixed a problem where the LAN code would pick
rmcp+ defaults that might not be available. Instead, pick the
most secure available default.
* lib/domain.c: Free mc_oem_handlers when shutting down.
* */Makefile.am: Removed -R and -rpath from everything, per
a bug report from Debian.
* swig/python/Makefile.am, swig/python/openipmigui/Makefile.am:
Use INSTALL_DATA, not INSTALL_PROGRAM, to install python code.
* man/rmcp_ping.1: Some minor manpage fixups.
* configure.in: Move to version 2.0.12.
2007-09-15 Corey Minyard <cminyard@mvista.com>
* ui/ui_os.c: This file shouldn't use the ipmi_mem_alloc and
ipmi_mem_free calls, as that introduces a circular dependency.
Only use malloc and free here.
2007-09-12 Corey Minyard <cminyard@mvista.com>
* cmdlang/cmd_mc.c: Fix an unsigned problem pointed out by Phil
Estes.
2007-09-11 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c, include/OpenIPMI/ipmi_lan.h: Add support for a
parameter to set the maximum number of outstanding messages on a
LAN connection. This used to be fixed to 2, but now can range
from 1 to 63.
* swig/python/openipmigui/gui_domainDialog.py: Remove some unused
definitions. Add support for "int" types of parameters, like the
new maximum outstanding message count. Fix a bug if the parm type
is not supported.
* lanserv/emu.c: Enable support for the reserve SDR commands. Not
having this confuses ipmitool.
2007-09-06 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c, lib/entity.c: Don't abort SDR handling if the
device string is invalid. Just go on and set the id to
"**INVALID**"
2007-08-17 Corey Minyard <cminyard@mvista.com>
* sample/dump_sensors.c, sample/Makefile.am: Added a little
program to just dump all the sensors.
2007-07-23 Corey Minyard <cminyard@mvista.com>
* lib/conn.c: Fix a possible race if an OEM check fails.
2007-07-11 Corey Minyard <cminyard@mvista.com>
* lib/domain.c, include/OpenIPMI/internal/ipmi_oem.h:
Added infrastructure for fixups for main SDRs.
* lib/oem_intel.c: Add main SDR fixups for Intel SE7520
motherboards.
2007-05-25 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Fix the domain fully up get/put operations to
work properly. Before, the fully up could come early in
some situations.
2007-05-24 Corey Minyard <cminyard@mvista.com>
* ui/ui.c: Move the call to ipmi_init() to before where things
may be allocated. Thanks to Bruce Rosenkrantz for pointing
this out.
2007-05-22 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/gui_SoL.py: Add dumping useful
information if data processing for terminal input raises an
exception.
* swig/python/openipmigui/_term.py: Add some missed range checking
to make sure Y values are within range with vt100 H and f
commands.
* swig/python/OpenIPMI_lang.i: If a method raises an exception,
print the method name.
2006-07-21 Gerhard Obrecht <varnhalt2 at users.sourceforge.net>
* lib/oem_kontron_conn.c: Add more board support.
2007-03-05 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c, include/OpenIPMI/internal/ipmi_sensor.h: Added a
new function to get/set whether the sensor should be used for
presence. This is a replacement for the ignore_if_no_entity,
whose use is vague, and abstracts this operation a little better.
* lib/control.c, include/OpenIPMI/internal/ipmi_control.h: ditto
for controls.
* lib/entity.c, lib/oem_atca.c, lib/oem_motorola_mxp.c: Switch
over to the new presence ignore functions.
* lib/oem_test.c, sample/example_oem.c: ditto
* lib/entity.c: Other presence handling fixes.
* cmdlang/Makefile.am: Remove the -L$(DESTDIR)$libdir, it was
broken to add it.
* glib/Makefile.am: ditto
* lanserv/Makefile.am: ditto
* lib/Makefile.am: ditto
* swig/perl/Makefile.am: ditto
* swig/python/Makefile.am: ditto
* tcl/Makefile.am: ditto
* ui/Makefile.am: ditto
* unix/Makefile.am: ditto
* lib/domain.c, lib/entity.c: Found some minor bugs pointed out
by new compilers.
* swig/python/Makefile.am: Create lib-dynload before installing
into it.
2007-03-05 David Greigo <dgriego@mvista.com>
* sample/ipmicmd.c: Fix problems with handling errors in
non-interactive mode.
2007-02-25 Corey Minyard <cminyard@mvista.com>
* configure.in, OpenIPMI.spec.in: Improve the handling of perl
installation. Also improve the tcl and glib12 handling to make it
more automatic.
* configure.in: Move to version 2.0.11
2007-02-09 Corey Minyard <cminyard@mvista.com>
* tcl/Makefile.am: Add $(TCL_LIBS) to the test programs ld flags.
2007-01-10 Michael Chu <michaelychu@yahoo.com>
* sdr.c: Fix ipmi_sdr_save related issues: use standard fetch size,
correct offset and record id values, parameter checking and passing,
do sdr reservation and check status after sdr clear.
2006-12-28 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/gui_cmdwin.py: Fix a problem
2006-12-06 Corey Minyard <cminyard@mvista.com>
* lanserv/Makefile.am: Added the utils library to the
applications.
2006-12-04 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/gui.py: Made more reasonable defaults
for the initial window settings.
* doc/IPMI.ltx, doc/SimpleMonitoring.dia, doc/ipmi.bib: Add some
more docs and some use cases.
2006-11-30 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c, include/OpenIPMI/ipmiif.h.in: Some sensors are not
readable, specifically event-only sensors and sensors with system
software IDs as the owner. Add a readable field to the sensor
object and check on read operations to make sure it is readable.
Technically, for SDRs with a system software ID owner, it might be
better to make sure that threadhold and event enables are not
done, but hopefully the SDRs are right. Yeah, right, I know.
* include/OpenIPMI/internal/ipmi_sensor.h: Add a function to set
the readable field for a sensor.
* swig/OpenIPMI.i: Add the readable method to the sensor object.
* swig/python/openipmigui/_sensor.py: Don't read the value for
unreadable sensors, instead put "(not readable)" in the value.
* lib/sensor.c: Fix some problems parsing type 3 SDRs. Also added
some error logs and cleaned things up a bit.
* configure.in: Move to version 2.0.10
2006-11-29 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_types.h: Increase the value of
MAX_IPMI_USED_CHANNELS to 14. It was increased to 12 in the Feb
2006 markup of the spec, but just go all the way to 14; it doesn't
really matter. We don't want to include 14, and 15, though, those
are special channels.
2006-11-20 Pierre Sangouard <psangouard@eso-tech.com>
* include/OpenIPMI/ipmi_picmg.h: I've found a small issue in
ipmi_picmg.h: Get Shelf Power Allocation command uses a wrong code
(0x19), it should be 0x22 instead. This was changed at the very
last minute before ECN-002 release since it conflicted with AMC.0
defined commands. The attached patch fixes this issue.
2006-11-16 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: ipmi_entity_fetch_frus_cb() violated the rule of
returning an error and still calling the done handler (and it
didn't check the done handler for NULL). Fix this problem.
* lib/domain.c: Fixed a problem when a shutdown occurred during
startup.
* swig/python/openipmigui/_saveprefs.py: Make sure that the
startup file is only accessible by the user and refuse to start up
if it is world orgroup accessible.
* swig/python/openipmigui/_gui_cmdwin.py: Ditto for the history file.
* configure.in: Move to version 2.0.9
2006-11-15 Corey Minyard <cminyard@mvista.com>
* lib/domain: Fix a problem with active/standby connections; now
force command rerouting when a connection goes inactive, as well
as when a connection goes active.
* lib/domain.c: Modified command rerouting a little more. The
send sequences are now per-connection instead of per-domain and
the routing is only done when a connection goes inactive or down.
This is more reliable and will make multiple active connections
work better.
2006-11-14 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/gui.py: Rework the mouse wheel stuff so
it works on older version of tk.
* swig/python/openipmigui/gui_list.py: ditto
* swig/python/openipmigui/gui_treelist.py: ditto
* Makefile.am, swig/python/Makefile.am: "make rungui" wouldn't
work on systems that could dynamically choose the glib library.
Add an LD_LIBRARY_PATH back in for that directory only.
* lib/fru.c, include/OpenIPMI/internal/ipmi_fru.h: Exported a
function to reference the FRU structure without claiming the lock.
* lib/normal_fru.c: Removed a deadlock where a FRU was referenced
while the lock was held.
* lib/fru.c: If the FRU fetch start fails, return an error.
* lib/mc.c: Fixed a deadlock in certain error cases.
* lib/oem_atca.c: Make sure the entity is gotten before creating
the FRU controls with it.
* cmdlang/os_debug.c: Can't use ipmi_mem_alloc any more to
allocate a lock, the locks are claimed too early.
* lib/ipmi_lan.c: Fixed a missing shutdown check that could cause
a race at shutdown and a possible segv.
* lib/oem_atca.c: Fixed a possible memory leak in the LEDs if an
ATCA domain is shut down while it is coming up.
* lib/sdr.c: Fix a problem with the fetch retry count being reset
to zero sometimes on a restart.
* lib/sdr.c, lib/mc.c: Added a way to stop the SDR timer
operations during cleanup of an MC.
2006-11-13 Corey Minyard <cminyard@mvista.com>
* lib/control.c, lib/sensor.c: Change the shutdown order of OEM
controls so the OEM data is freed last, after the control is
removed from the entity.
* lib/control.c, lib/sensor.c: Don't fail freeing an OEM control
or sensor if the index is reused. The control is still valid to
free.
* lib/oem_atca.c: Free all the FRUs for an entity when the entity
is freed at domain shutdown.
* lib/sdr.c: Fix a race where if the SDR data is asked for the
first time and then again immediately after, the DB will be
fetched twice and the second time will overwrite the first data.
Only fetch DB data if the SDR fetch state is idle. Also, when
fetching from the DB, free the SDR data if it is allocated.
* lib/control.c, lib/sensor.c: Modified the addition of
nonstandard sensor and controls so that the next unused number is
picked instead of having to supply the number.
* lib/oem_atca.c: Modified the controls for the IPMCs to let the
control code pick the control number. This handles a problem
controls not being handled correctly for ATCA blades with multiple
FRUs.
2006-11-10 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Don't set a connection inactive if it goes down,
let the active-reporting interface handle that. Otherwise systems
without inactive links will report inactive if the connection goes
down.
2006-11-09 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/gui_list.py: Added a way to set the
style of a column entry.
* swig/python/openipmigui/gui.py: Added a "watch list" to the GUI.
You can put controls, entities, and sensors you want to watch into
this list and monitor them.
* swig/python/openipmigui/_sensor.py: Add support for the watch list.
* swig/python/openipmigui/_control.py: ditto
* swig/python/openipmigui/_entity.py: ditto
2006-11-08 Corey Minyard <cminyard@mvista.com>
* Makefile.am, configure.in: Rework the setting up of the library
environment for Perl and Python. The code would, by default, pick
up the libraries from the installed directory instead of the local
directories. For lack of a better option, the modifications
LD_PRELOAD the libraries that are required. Also make the setting
of the libs required by swig cleaner and put it in a common place.
* swig/perl/Makefile.am: ditto
* swig/python/Makefile.am: ditto
* swig/python/openipmigui/Makefile.am: ditto
2006-11-07 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/_fru.py: Added a refresh button to
re-read the whole FRU contents. This allows you to change
multi-record data and see what happens.
* swig/python/openipmigui/gui.py: Got wheel mouse scrolling working.
* swig/python/openipmigui/gui_list.py: ditto
* swig/python/openipmigui/gui_treelist.py: ditto
* swig/python/openipmigui/gui_setdialog.py: Added an option to
allow using a Text widget for multi-line input (for multi-record
data).
* swig/python/openipmigui/_fru.py: Use the long option to
gui_setdialog for binary or unicode data.
* include/OpenIPMI/ipmi_fru.c, lib/fru.c, include/OpenIPMI/ipmi_fru.h:
Added infrastructure for getting enumeration values from FRU nodes.
* lib/normal_fru.c: Added enumeration support for multirecord FRU
nodes.
* lib/oem_atca_fru.c: Added enumeration stuff for the few items
that need it.
* swig/OpenIPMI.i: Added the enumeration interface.
* swig/python/openipmigui/_fru.py: Added support for the new FRU
enumerations.
2006-11-06 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/internal/ipmi_fru.h, lib/normal_fru.c: Redid
the adjustment of offsets and lengths to work properly with nested
arrays.
* swig/python/openipmigui/gui_cmdwin.py: Fixed some problems
dealing with backspace and delete.
2006-11-05 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/internal/ipmi_fru.h, lib/normal_fru.c: Reworked
the way writing to arrays is done so it is cleaner and allows
insertion at arbitrary points and elements that are other arrays
or basic items.
* include/OpenIPMI/ipmi_fru.h: Worked on docs for the changes.
* swig/python/openipmigui/_fru.py, lib/oem_atca_fru.c: Adjusted
for the previous changes.
* swig/OpenIPMI.i: Make sure the string on an empty binary array
is terminated.
2006-11-03 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca_fru.c: Massive rewrite to make this table-driven and
add setting capability.
* swig/python/openipmigui/gui_treelist.py: Add the ability to insert
items before a list element.
* swig/python/openipmigui/_fru.py: Add the ability to insert items
before an array element. Fix boolean handling.
* lib/normal_fru.c, include/OpenIPMI/internal/ipmi_fru.h: Move the
FRU decoding from the ATCA code into here and make it generic.
Convert the standard FRU multirecord handling to the new code.
* lib/oem_atca_fru.c: Convert multirecord handling over to the
generic version.
* configure.in: Move to version 2.0.9-rc1
2006-11-01 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Fixed a problem with scanning entity association
records.
* include/OpenIPMI/ipmi_fru.h, lib/normal_fru.c: Added
multi-record helper functions for modifying multirecord data.
* lib/normal_fru.c: Fixed some problems dealing with multirecord
lengths.
* lib/oem_atca_fru.c: Added writing FRU data for the address
table.
* swig/python/openipmigui/_fru.py: Adjustment to improve the way
this works.
2006-10-31 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_fru.h, lib/normal_fru.c: Added some better
handling of multirecord modification.
* lib/fru.c: Warn and recover on zero-length FRU writes.
* lib/normal_fru.c: Added better setup handling for new FRU areas.
* lib/normal_fru.c: Added FRU area data to the FRU information.
* swig/python/openipmigui/_fru.py: Added support for re-displaying
the FRU data if FRU area offset data changes.
* swig/python/openipmigui/gui_treelist.py: Added support for
clearing all the data in the list.
2006-10-30 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_fru.h, include/OpenIPMI/internal/ipmi_fru.h:
Added functions for getting a FRU array's subtype.
* lib/fru.c: ditto
* swig/OpenIPMI.i: ditto
* swig/OpenIPMI.i: Modify fetching a subtype to return the array
length (or -1 for non-arrays) in the value of get_field() on sub
nodes.
* lib/normal_fru.c: Added subtype handling for custom string
arrays.
* lib/normal_fru.c: Fixed reporting of arrays in custom strings so
that it is possible to tell an empty array from a non-existent
field.
* swig/python/openipmigui/gui_treelist.py: Added the ability to
remove items from the tree and added better cleanup facilities.
* swig/python/openipmigui/_fru.py: Added the ability to remove
array items.
2006-10-28 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_fru.h, include/OpenIPMI/internal/ipmi_fru.h:
Added basic function interfaces for setting values in FRU nodes.
* lib/fru.c: Added infrastructure for setting FRU nodes.
* lib/normal_fru.c: Added support for setting the basic FRU item
through the FRU nodes.
* lib/oem_atca.c, lib/oem_atca_fru.c: Modified for new multirecord
handling for setting, though no set support yet.
* swig/OpenIPMI.i: Added support for the new FRU node set field
and settable functions.
* swig/python/openipmigui/_fru.py: Added support for setting FRU
items.
2006-10-27 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca.c, doc/IPMI.ltx: Created a power feed control for
ATCA shelfs.
2006-10-26 Corey Minyard <cminyard@mvista.com>
* lib/entity.c, include/OpenIPMI/internal/ipmi_entity.h: Added a
function to refetch entity FRU information and report when it is
done.
* lib/entity.c, include/OpenIPMI/ipmiif.h.in: Added a way to know
when an entity that is reported present has all its data (FRU
information) fetched.
* cmdlang/cmd_entity.c: Added reporting of entities being fully
up.
2006-10-25 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca_fru.c: Added all the current ATCA-defined FRU
information multirecord descriptors.
* cmdlang/out_fru.c: Only parse the given number of array
elements, don't rely an an error return to finish the array.
* lib/entity.c: Fix a small problem where there was a remote
chance that a FRU fetch would occur before the entity was reported
present.
* lib/normal_fru.c: Fix a memory leak with multirecords that don't
have decoders.
* swig/python/openipmigui/_domain.py: Added a way to dump
arbitrary FRU info in a domain.
* swig/python/openipmigui/gui_treelist.py: Added a way to expand
the entire tree.
* swig/python/openipmigui/_fru.py: Expand the entire tree when
displaying FRU information.
2006-10-24 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_domain.h, lib/fru.c: More work on the
special FRU handling.
* lanserv/emu.c, lanserv/emu.h, lanserv/lanserv_emu.c: Added
support for ATCA FRU locking.
* lib/oem_atca.c: Added FRU data handling for reading/writing FRU
inventory device 254 on the shelf manager.
* swig/python/openipmigui/_fru.py: Make sure FRU data gets freed.
2006-10-23 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_bits.h, lib/strings.c: Add some new sensor
types from IPMI 2.0.
* lib/oem_atca.c: Added support for detecting version changes with
a version change sensor event.
* include/OpenIPMI/ipmi_domain.h, lib/domain.c, lib/fru.c: Added
infrastructure for handling special FRU characteristics for a
domain.
2006-10-22 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca_conn.c: Fixed a few glitches with the new ATCA
auxiliary connection facility.
* doc/IPMI.ltx: Added info on the new ATCA capabilities.
2006-10-21 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c, lanserv/emu.h, lanserv/lanserv_emu.c: Added
support for the PICMG get IP addresses and get FRU control
capabilities commands.
* lib/domain.c: Interpret ENOENT from a low-level connection
change to mean the connection no longer exists.
* lib/oem_atca.c: Free the new FRU control capabilities controls.
* lib/oem_atca_conn.c: Clean up the ATCA IP address pinging stuff
to work properly.
* sample/rmcp_ping.c: Fix a problem with specifying the port.
* swig/python/openipmigui/gui.py: Add a port removal function.
* swig/python/openipmigui/_domain.py: Pass some more parameters
to the port up function.
* swig/python/openipmigui/_conn.py: Allow dynamic changes to the
ports.
2006-10-20 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, lib/domain.c: Added a function to
get port information.
* include/OpenIPMI/ipmi_conn.h, lib/ipmi_lan.c: ditto
* cmdlang/cmd_conn.c, man/ipmi_cmdlang.7: Added support for the
new port information.
* swig/OpenIPMI.i: ditto
* swig/python/openipmi/_conn.py: ditto
* include/OpenIPMI/ipmi_lan.h, lib/ipmi_lan.c: Exposed some
internals for use by the OEM ATCA handler dealing with RMCP ping
sockets.
* include/OpenIPMI/ipmi_picmg.h: Added the new PICMG messages from
the new ATCA spec.
* lib/oem_atca_conn.c: Added support for ATCA RMCP ping sockets so
that the auxiliary IP connections on ATCA chassis can be
monitored.
2006-10-16 Corey Minyard <cminyard@mvista.com>
* doc/IPMI.ltx: Added some docs on redundant connections and on
ATCA.
* man/openipmicmd.1: Added information about the proper handling
of response messages.
* swig/python/openipmigui/gui.py: Fix a problem where sensor
settings would get greyed
2006-10-12 Philipp Hahn
* man/ipmi_cmdlang.7: Various cleanups
* man/openipmi_conparms.7: ditto
* man/openipmigui.1: ditto
* man/openipmish.1 ditto
* man/rmcp_ping.1 ditto
2006-10-13 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/_mc_lanparm.py: Fix a problem in a
pulldown.
2006-10-11 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/_misc.py: Added an int array to hex
string converter.
* swig/python/gui_cmdwin.py: Print command output in hex.
* swig/python/_sel.py: Print event data in hex.
2006-10-06 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_smi.c: Fix the IPMB address setting code to only set
the channels that are reported to it.
* lib/oem_atca_conn.c: Properly initialize the ipmb array that is
passed to the other code.
2006-10-05 Corey Minyard <cminyard@mvista.com>
* sample/ipmi_serial_bmc_emu.c, sample/Makefile.am: Added a serial
BMC emulator.
2006-09-22 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui.py: Fixed a problem dealing with
different python/TCL thread models in the GUI. Major ugliness.
See the code for details.
* configure.in: Move to version 2.0.8
2006-09-21 Coly Li <colyli@gmail.com>
* swig/python/Makefile.am: Fix the path mistake for install
handling.
2006-09-21 Coly Li <colyli@gmail.com>
* swig/OpenIPMI.i: add the missed IPMI_SWIG_C_CB_EXIT to
add_domain_change_handler and remove_domain_change_handler.
2006-09-20 Corey Minyard <cminyard@mvista.com>
* cmdlang/Makefile.am: Add proper uninstall handling
* include/OpenIPMI/Makefile.am: ditto
* include/OpenIPMI/internal/Makefile.am: ditto
* sample/Makefile.am: ditto
* swig/perl/Makefile.am: ditto
* swig/python/Makefile.am: ditto
* swig/python/openipmigui/Makefile.am: ditto
* swig/OpenIPMI.i: Fix a misnamed #ifdef that caused
cleanup_lang() to not be called.
2006-09-19 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/_mc_solparm.py: Use the proper data
object for a SOL parameter window.
2006-09-15 <nok at users.sourceforge.net>
* man/openipmicmd.1: Fix the man page number in the header.
2006-09-13 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Don't set the event receiver in the MC recheck if the
user has asked it to not be set.
2006-08-24 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/gui_list.py: Split up the list processing
into two parts, one for a standalone toplevel list, and one for a
list that can be contained in something else.
2006-08-01 Corey Minyard <cminyard@mvista.com>
* configure.in, doc/Makefile.am: Autodetect the dia version and use
the right command-line arguments depending on version.
* Makefile.am, swig/Makefile.am: Add DIST_SUBDIRS so "make dist"
will work even if you don't have all the tools present.
* Makefile.am, include/OpenIPMI/Makefile.am: Added proper files to
DISTCLEANFILES.
2006-07-31 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Fixed a problem with error handling for bad SDRs.
2006-07-24 Corey Minyard <cminyard@mvista.com>
* FAQ - Added info on interpreting errors.
2006-07-22 Corey Minyard <cminyard@mvista.com>
* lib/rakp.c: Fix a problem that causes a crash in RMCP+ if the
IPMI interface is deleted between the RAKP1 and RAKP3 messages.
* swig/python/openipmigui/_mc_chan.py: Fix a shutdown problem that
could cause wierd things to happen if you delete the channel
window while it was being fetched.
2006-07-21 Gerhard Obrecht <varnhalt2 at users.sourceforge.net>
* lib/oem_kontron_conn.c: Add more board support and fix
some IPMB addressing problems.
2006-07-18 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui.py, swig/python/openipmigui/gui.py: Fix
some problems with shutdown, gets rid of an annoying failure at
shutdown and fixes a lockup problem if there are no domains.
2006-07-16 Corey Minyard <cminyard@mvista.com>
* sample/sample.c: Change over to use ipmi_parse_args2() so we
are setting a good example for the users.
* sample/sample2.c: ditto
* sample/sample3.c: ditto
2006-06-27 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/gui.py: Fix cleanup of items to clear
out parents properly.
2006-06-23 Gerhard Obrecht <varnhalt2@users.sourceforge.net>
* lib/oem_kontron_conn.c: Add new board support.
2006-06-18 Corey Minyard <cminyard@mvista.com>
* FAQ, README: Add info about the encryption used by OpenIPMI.
2006-06-08 Corey Minyard <cminyard@mvista.com>
* configure.in: Convert wxpython into Tkinter.
* configure.in: Older version of Tcl don't have Tcl_GetTime, they
have an equivalent TclpGetTime (that was private, but everyone
still used it).
* README - Update some information, including adding all the
required and optional packages.
* OpenIPMI.spec.in: Added the Tcl stuff.
* Makefile.am: Added CONFIGURING_FOR_LAN
* configure.in: Move to version 2.0.7.
2006-06-07 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/*: Get SoL and the command window working
with Tix, the GUI conversion is complete except for testing.
* doc/Makefile.am: Convert the export option for dia from
--export-to-format to --filter.
2006-06-02 Corey Minyard <cminyard@mvista.com>
* lib/pefc.c: Only call the set_done() callback if it is non-NULL.
* lib/mc.c: If a set_user() call is done with nothing changed in
the user, make sure the handler is not NULL before calling and
call the right free function.
* swig/python/openipmigui*: Rewrote the GUI using Tk. The SOL
terminal is not done yet, but I think everything else works.
Still needs testing, but most stuff should work ok.
2006-06-01 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: Fix some problems with TCL not doing logs
correctly.
2006-05-31 Corey Minyard <cminyard@mvista.com>
* configure.in: For gdbm, make sure to check for the library and
not just the header file.
2006-05-30 Corey Minyard <cminyard@mvista.com>
* configure.in: Fix the TCL_LIBS value when --with-tcllibs is
hand-specified.
2006-05-26 Corey Minyard <cminyard@mvista.com>
* lib/mc.c, lib/ipmi_lan.c: Fix a couple of more signed/unsigned
comparison warning.
* swig/OpenIPMI.i: Fix the TCL init code.
2006-05-12 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_posix.h: Remove selector interface.
* unix/posix_os_hnd.c: Remove selector interface and make
sset_log_handler static.
* unix/posix_thread_os_hnd.c: ditto
* cmdlang/os_debug.c: Make sset_log_handler static.
* unix/selector.c: Rework the mutex code to use the os handler,
not some special interfaces that break static compiles.
2006-05-02 Corey Minyard <cminyard@mvista.com>
* include/Makefile.am, include/net, lib/ipmi_smi.c, lanserv/lanserv.c:
Remove include/net, as the socket interface is not used any
more.
* README: Improved the code structure information.
2006-04-18 Corey Minyard <cminyard@mvista.com>
* configure.in, lanserv/lanserv.c: Add detection for syslog.
2006-04-06 Corey Minyard <cminyard@mvista.com>
* tcl/tcl_os_hnd.c, tcl/test_handlers.c: Get these working.
* cmdlang/ipmish.c: Add TCL support.
* swig/OpenIPMI.i: ditto
* swig/perl/Makefile.am: ditto
* swig/python/Makefile.am: ditto
2006-04-05 Corey Minyard <cminyard@mvista.com>
* tcl/*, include/OpenIPMI/ipmi_tcl.h, configure.in, Makefile.am:
Start adding TCL support.
* OpenIPMItcl.pc.in: ditto
2006-03-31 Corey Minyard <cminyard@mvista.com>
* */Makefile.am: Add -Wsign-compare to find signed/unsigned
comparison problems.
* practically everything: Fixed signed/unsigned comparison problems.
2006-03-18 Corey Minyard <cminyard@mvista.com>
* lib/sel.c: There were some subtle problems with deletes of large
SEL contents with per-event deletion. This cleans those up to
make deleting large numbers of SEL entries more efficient.
* swig/python/openipmigui/_sel.py: Call DeleteAllItems, not
ClearAll, to remove all the elements of the list. ClearAll
cleared the columns, too.
2006-03-17 Corey Minyard <cminyard@mvista.com>
* lib/ipmi.c: Fix a bug, the input length for binary/unicode data
wasn't being checked in device string parsing.
* lib/ipmi.c, include/OpenIPMI/internal/ipmi_int.h: Modify
ipmi_get_device_string() to return an error instead of the length,
so that errors can be handled properly in device strings.
* lib/normal_fru.c: Adjust for previous change.
* lib/oem_atca.c: ditto
* lib/oem_atca_fru.c: ditto
* lib/entity.c: ditto
* lib/sensor.c: ditto
* swig/python/openipmigui/_sel.py: Cleaned up this file.
2006-03-14 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: If the ipmi connections received in
ll_event_handler is invalid, ignore the event.
* lib/oem_atca_conn.c: Fix the passing of the ipmb array
in an error path.
* include/OpenIPMI/ipmi_conn.h, lib/conn.c: The statistics
interface for connections was broken for supporting multiple
domains with the same connection. Add a new interface that is
capable of this.
* lib/lan.c: Add the new statistic interface support.
* lib/domain.c: ditto
2006-03-01 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca_conn.c: Need to pass an entire channel set's worth
of IPMB addresses to the IPMB address change handlers.
* lib/oem_kontron_conn.c: ditto
* lib/oem_force_conn.c: ditto
* lib/oem_motorola_conn.c: ditto
* util/ipmi_malloc.c: Fixed some problems with some memory
debugging handling. With memory debugging on, it would leak
memory!
* lib/sdr.c: Added some trace debugging stuff.
* lib/ipmi_lan.c, lib/ipmi_smi.c: Added printing of connection
names in debug output (where possible).
* lib/mc.c: Don't start operations unless the MC is in the proper
state.
* lib/entity.c: Make sure only one presence check is running at a
time.
* swig/python/openipmigui/gui.py: Fixed some ordering problems,
make sure things are not used after deletion.
* swig/python/openipmigui/fru.py: Handle some problems dealing
with certain FRU data combinations.
* lib/sel.c, lib/mc.c: Fix the SEL name string.
* configure.in: Move to version 2.0.6.
2006-02-28 Corey Minyard <cminyard@mvista.com>
* lib/chassis.c: Make sure to remove the active handler from the
list when deleting the control.
* lib/mc.c: If the timer was stopped due to a not running
condition, mark the timer as stopped.
* swig/python/openipmigui/_domain.py: Fix the interpretation of
the "connected" parameter is the connection reporting. It means
that any connection to the domain is up, not that the particular
connection is up.
* libedit/read.c: Don't beep on el_push, that causes way too much
beeping for my taste.
* lib/ipmi_lan.c, lib/ipmi_payload.c, include/OpenIPMI/ipmi_lan.h:
Make sure ipmi->handle_send_rsp_err is called outside of the
sequence lock.
* lib/sensor.c, include/OpenIPMI/internal/ipmi_sensor.h: Removed
the internal sensors wait queue (part of ipmi_sensors_t). This
was only used to serialized SDR access, but the sdr has it's own
wait queue, so this was kind of pointless.
* lib/mc.c: Removed the use of the sensor wait queue. It caused
problems handling failure conditions and was pointless. Also
added some debug tracing stuff.
2006-02-27 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Make sure use_orig_addr is handled in all cases,
including timeouts and shutdown.
* lib/domain.c: Set the connection name to something more useful.
* swig/python/openipmigui.py: Add a log to stdout option.
* lib/mc.c: Rework the startup code to properly handle all types
of failures. Some failure cases were not handled correctly and
could leave things hanging.
* lib/sdr.c: Add a useful name and proper handling of shutdown
situations to avoid leaks.
2006-02-26 Corey Minyard <cminyard@mvista.com>
* lib/domain.c, lib/ipmi.c: Don't copy address information for
system interface address responses, use the address the sender
supplied. This fixes problem with system interface MC scanning.
* cmdlang/cmd_sensor.c: Fixed some misnamed comments.
* lib/entity.c: Make sure the domain exists before calling
_ipmi_put_domain_fully_up().
* lib/ipmi_lan.c: Don't call the LAN close_done call until all the
messages have been returned as errors.
* lib/mc.c: Fix some accounting problems with errors and
startup_count.
* lib/oem_motorola_mxp.c: Don't add an AMC is the removal handler
can't be registered.
* lib/sensor.c, lib/control.c: Add some missing MC gets and puts.
* swig/python/openipmigui/*: Fix a lot of little problems with
handling certain failure cases, removal and adding of sensors, and
a host of other things.
2006-02-25 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui.py, man/openipmigui.1: Add the ability
to send log output to stderr as well as the command window.
* lib/entity.c: Fixed some possible deadlocks dealing with the
built-in hot-swap state machine and presence handling.
2006-02-24 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui.py, man/openipmigui.1: Added some
command-line parameters to control some thing about the GUI.
* sample/rmcp_ping.c, sample/Makefile.am, man/rmcp_ping.1: Add a
command to do RMCP pinging.
* OpenIPMI.spec.in: Add the rmcp_ping program.
* lib/sel.c: Fix some possible deadlocks.
* include/OpenIPMI/ipmi_conn.h: Added a way to discover how many
ports the connection supports.
* lib/ipmi_lan.c: Add the function to return the number of ports.
* lib/domain.c: Set the enabled ports right at startup to avoid
invalid readings of the number of ports.
* lib/entity.c: Fix a memory leak in certain error conditions
using the internal hot-swap state machine.
* lib/ipmi_lan.c: Fix some locking problems that could lead to
deadlock. Don't call connection handlers in certain timeout cases
with the sequence lock held.
* lib/oem_motorola_mxp.c: Add some missing entity puts.
* swig/python/openipmigui/*: Fixed problems with entities that
need to be re-parented.
2006-02-14 Corey Minyard <cminyard@mvista.com>
* utils/os_handler.c, include/OpenIPMI/os_handler.h: Add an
interface to allow easier waiting for IPMI things to complete.
* utils/Makefile.am: Add the new os_handler.c file.
* unix/test_handlers.c, unix/Makefile.am: Add some OS handler
tests and tests for the wait operations.
2006-02-13 Radisys
* lib/ipmi_smi.c: Fix the IPMB address setting code to actually
use the right types when interacting with the driver.
2006-02-12 Corey Minyard <cminyard@mvista.com>
* OpenIPMI.spec.in: Added some missing files.
* configure.in: Move to version 2.0.5.
2006-02-11 Corey Minyard <cminyard@mvista.com>
* lib/lanparm.c: Added a hack for non-compliant systems that
return 0xcc for unsupported LANPARM parameters instead of the
proper 0x80 return code.
2006-02-10 Corey Minyard <cminyard@mvista.com>
* cmdlang/Makefile.am: Fix so it will install into any random
directory.
* glib/Makefile.am: ditto
* lanserv/Makefile.am: ditto
* lib/Makefile.am: ditto
* sample/Makefile.am: ditto
* ui/Makefile.am: ditto
* unix/Makefile.am: ditto
* lib/lanparm.c: Fixed a data overrun in ipmi_lanparm_set_config.
* lib/solparm.c: ditto
* swig/python/openipmigui/*: Fixed a bunch of problems dealing
with wxPython 2.4 issues. Ugly...
* lib/normal_fru.c: Fix a cleanup order problem.
* lib/domain.c, include/OpenIPMI/ipmiif.h.in: Added a way to get
the connection type string.
* swig/OpenIPMI.i: Added the connection type string.
* swig/python/openipmigui/_conn.py: Print the connection type.
* cmdlang/cmd_control.c: Don't return that we handles the event,
pass it on.
* cmdlang/cmd_entity.c: ditto
* cmdlang/cmd_sensor.c: ditto
* cmdlang/cmd_sel.c: ditto
* swig/python/openipmigui/_entity.py: ditto
* swig/python/openipmigui/_sensor.py: ditto
* swig/python/openipmigui/errstr.py: Only do a clear in 2.4
* swig/python/openipmigui/_sel.py: Fix problems deleting single
events.
2006-02-10 Coly <colyli@gmail.com>, Corey Minyard <cminyard@mvista.com>
* libedit: Add this directory
* cmdlang/ipmish.c, cmdlang/Makefile.am: Add support for libedit
into ipmish.
2006-02-10 Corey Minyard <cminyard@mvista.com>
* configure.in: Convert over to use config.h instead of passing
everything on the command line for the compiler.
* cmdlang/ipmish.c, cmdlang/os_debug.c: ditto
* glib/glib_os_hnd.c: ditto
* lanserv/lanserv_config.c, lanserv/lanserv_ipmi.c: ditto
* lib/aes_cbc.c, lib/hmac.c, lib/md5.c, lib/rakp.c: ditto
* lib/ipmi.c, lib/ipmi_lan.c, lib/ipmi_smi.c: ditto
* swig/OpenIPMI.i: ditto
* swig/perl/Makefile.am: ditto
* swig/python/Makefile.am: ditto
* ui/basic_ui.c: ditto
* unix/posix_os_hnd.c, unix/posix_thread_os_hnd.c: ditto
* utils/ipmi_malloc.c: ditto
2006-02-09 Corey Minyard <cminyard@mvista.com>
* configure.in: Added more support for handling dual glib
libraries (1.2 and 2.0) in the swig stuff.
* glib/Makefile.am, glib/glib_os_hnd.c: Added more support for
handling dual glib libraries.
* include/OpenIPMI/ipmi_glib.h: ditto
* swig/Makefile.am: Removed glib shim, as it was not going to
work.
* swig/OpenIPMI.i: Fixed the glib stuff so it works properly with
dual glib libraries.
* swig/perl/Makefile.am, swig/python/Makefile.am: ditto
* swig/python/openipmigui/_SoL.py: Fixed to work with wxPython
2.4.
* swig/OpenIPMI.i: Added missing callback entry and exit markers
for SoL.
* swig/python/openipmigui/gui.py: Fixed getting boolean attributes
so it works with older versions of python.
2006-02-08 Corey Minyard <cminyard@mvista.com>
* swig/perl/OpenIPMI_perl.c, swig/python/OpenIPMI_lang.i: Added a
new return value type that will take an empty return and not
modify the return value.
* swig/OpenIPMI.i: Allow event handlers to take return values from
the handler, but preserve current semantics.
* swig/python/openipmigui/_entity.py: Cleanup and set return
values from event handlers.
* swig/python/openipmigui/_sensor.py: ditto
* include/OpenIPMI/ipmiif.h.in, include/OpenIPMI/ipmi_bits.h:
Added a way for an event handler to "handle" the event (not send
it to the unhandled event handler) but still pass the event data
on to other handlers.
* lib/sensor.c, lib/control.c, lib/entity.c: ditto
* lib/entity.c: Changed the internal presence handling to never
pass an event (since one is never really available, and shouldn't
matter). The API is still there, though, and should be handled as
before.
* lib/oem_atca.c: Fixed a missing event handled initialization.
* swig/OpenIPMI.i: Added the new IPMI_EVENT_HANDLED_PASS return
value.
* swig/python/openipmigui/_entity.py: Switched to the pass event
handler return.
* swig/python/openipmigui/_sensor.py: ditto
* cmdlang/cmd_control.c: ditto
* cmdlang/cmd_entity.c: ditto
* cmdlang/cmd_control.c: ditto
* configure.in, glib/Makefile.am, glib/glib_os_hnd.c: Add support
for a separate glib 1.2 library, so we can build with either.
* OpenIPMIglib.pc.in: Fix some linking problems, don't need the
glib libs or cflags.
* OpenIPMIglib12.pc.in: Add this for the new glib 1.2 library.
* swig/Makefile.am, swig/glibshim.c, swig/OpenIPMI.i: Add a glib
shim so we can do both glib-2.0 and glib-1.2 at the same time.
* swig/python/openipmigui.py: Add some parameter handling
* swig/python/openipmigui/_domain.py: Fix some problems with
handling python 2.2.
* swig/python/openipmigui/_term.py: ditto
2006-02-07 Corey Minyard <cminyard@mvista.com>
* lib/lanparm.c, include/OpenIPMI/ipmi_lanparm.h: Add a way to
detect if a parm is an enum and get the enum string and index
values.
* lib/solparm.c, include/OpenIPMI/ipmi_solparm.h: ditto
* lib/pef.c, include/OpenIPMI/ipmi_pef.h: ditto
* swig/OpenIPMI.i: Add the new enum interfaces for lanparm and
solparm and pef.
* swig/python/openipmigui/_SoL.py: Add an error report if SoL
won't work on an interface.
* swig/python/openipmigui/_mc_chan.py: Add support for detecting
if an MC supports SoL before offering solparm configuration.
* swig/python/openipmigui/_mc_lanparm.py: Add support for handling
enum values.
* swig/python/openipmigui/_mc_lanparm.py: ditto
* lib/pef.c: Return EAGAIN if the lock could not be claimed on the
PEF config fetch.
* swig/python/openipmigui/_mc.py: Add support for detecting if an
MC supports PEF and offser PEF configuration menu items for it if
so.
* swig/python/openipmigui/_mc_pef.py: Add support for PEF
configuration.
* swig/python/openipmigui/Makefile.am: Add solparm and pef
configuration files.
* Makefile.am: Added the ability to run the GUI from the main
makefile.
* man/openipmigui.1: Added docs on SOL, pefparms, solparms, and
fixed up a few things.
* lib/cmd_mc.c: Added the ability to dump all channels easily, and
added useful string names to the channel info.
2006-02-06 Corey Minyard <cminyard@mvista.com>
* lib/solparm.c, include/OpenIPMI/ipmi_solparm.c: Added
configuration of SoL parameters.
* lib/Makefile.am, include/OpenIPMI/Makefile.am: Added new solparm
files.
* cmdlang/cmd_solparm.c, cmdlang/cmdlang.c, cmdlang/Makefile.am:
Added support for solparms.
* swig/OpenIPMI.i: Added support for solparms.
* swig/OpenIPMI.i: Fixed bugs in lanparm and pef config and parm
set handling, they were referencing a possibly uninitialized
variable.
* swig/python/openipmigui/_mc_solparm.py: Added solparm support in
the GUI.
* swig/python/openipmigui/_mc_chan.py: Tie-ins for solparm support
are here.
* swig/python/openipmigui/Makefile.am: Add the new solparm file.
2006-02-03 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_sol.c: Fixed some problem with nack handling.
* swig/OpenIPMI.i: The nack_release function had an invalid
parameter.
* swig/python/openipmigui/_term.py: Finished out a lot of the ANSI
handling and added color support.
2006-02-02 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/_SoL.py: Add in all the SoL handling.
2006-02-01 Corey Minyard <cminyard@mvista.com>
* swig/python/openipmigui/_term.py: Lots of work on terminal
emulation and improving performance.
2006-01-28 Corey Minyard <cminyard@mvista.com>
* swig/perl/OpenIPMI_perl.c, swig/perl/OpenIPMI.h: Added the
ability to return a return value from a function.
* swig/python/OpenIPMI_lang.i: ditto
* swig/OpenIPMI.i: Modified sol_data_received_cb to handle the
return value properly.
* include/OpenIPMI/ipmi_sol.h, lib/ipmi_sol.c: Added a function to
release a SOL NACK situation.
* swig/OpenIPMI.i: Added the SOL NACK release function.
* swig/python/openipmigui/_term.c: Fixed a problem with character
handling.
2006-01-27 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: If the BMC returned a completely bogus response to
a get device id during connection startup, the domain would remain
in a perpetually messed up state. This adds something to the
normal domain audit to detect this situation and try again.
* lib/ipmi_sol.c: Worked on the packet and state locking to make
sure that a lock was held during state changes, locks were not
held in callbacks, and callbacks are done in the right order.
* lib/ipmi_sol.c: Added code to do packet processing in order and
not hold locks in callbacks. This required some complicated
additions of wait lists, but should guarantee to the user that all
callbacks will be in order and will occur one at a time from a SoL
connection.
* lib/entity.c: Modified MC refcounts to not be held over a
message. Bad idea.
* lib/ipmi_lan.c: The OEM finished callback could return a NULL
connection if shutdown was occurring, handle that.
* swig/python/openipmigui/_cmdwin.py: Added history saving for the
command window.
* swig/python/openipmigui.py: ditto
* swig/python/openipmigui/_saveprefs.py: Clean up error handling.
* swig/python/openipmigui/gui.py: Clean up shutdown so that
domains are cleaned up no matter how the shutdown occurs.
* swig/python/openipmigui/Makefile.am: Modify python path to
allow building and execution in alternate object directories.
* swig/perl/Makefile.am: Modify paths to allow make check to
work in alternate object directories.
2006-01-26 Corey Minyard <cminyard@mvista.com>
* lib/normal_fru.c: Clear out the FRU settings if the FRU decode
fails, to avoid a crash at FRU destruction time.
2006-01-25 Corey Minyard <cminyard@mvista.com>
* lib/strings.c: Added some sensor code strings specified by
errata to the spec.
* lib/ipmi_sol.c: Replaced the callback_lists used for reporting
status with locked lists. The locked-lists are race-free and
handle all the deletion while in use type cases.
* lib/ipmi_sol.c: Make logging consistent with the rest of
OpenIPMI, add the filename and function to all logs.
* lib/ipmi_sol.c: Add locking for OOB handling, as it was racy.
* lib/ipmi_sol.c, lib/ipmi.c: Moved SOL payload registration to
initialization routines so it is only done once.
* lib/ipmi_sol.c: Added locks for the SoL connection list and
reworked the list so the memory allocation is not required.
* lib/ipmi_sol.c: Consolidated the callback list handling into the
one place it was left in use. Converted all the fatal logs into
severe ones since fatal means the logger should termintate the
program.
* lib/ipmi_sol.c: Added refcounting to make sure the sol
connection is not in use when it is deleted.
* lib/ipmi_sol.c: Reworked the timer code to handle shutdown races
properly.
2006-01-24 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_sol.c: Modified formatting to conform with the OpenIPMI
standard formatting. Make a few minor fixes (marked with FIXMEs
for now).
* lib/ipmi_sol.c: Fixed a bunch of memory leaks. Still some left
with the callback lists, but those need to be replaced with locked
lists, so they are not worth fixing right now.
* swig/python/openipmigui/_term.py: Started working on a terminal
emulator for SoL.
* swig/python/openipmigui/_SoL.py: Started working on SoL interface
code for the GUI.
* swig/pythong/openipmigui/Makefile.am: Added the above two files.
2006-01-20 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_conn.h: Added a way to send messages with
options; primarily for supporting per-packet authentication and
encryption settings.
* include/OpenIPMI/ipmi_sol.h: Added C++ handling.
* lib/ipmi_lan.c: Added the ability to support per-packet
encryption and authentication for asynchronous packets (primarily
for SOL) using the previous change to the connection interface.
* lib/ipmi_sol.c: Added the ability to support separate
authentication and encryption on the interfaces. Also, default
the values to use encryption.
* sample/solterm.c: Modify to use encryption and authentication by
default. Also modify the way connection parameters are specified
so that it is standard (the "lan" is required") and get the
connection help via the standard interface. Also removed all the
DOS newlines and converted them to *nix.
* man/Makefile.am, man/openipmi_conparms.7: Added a man page on
the standard connection parms, so it doesn't have to be in every
man page.
* man/openipmicmd.1: Swith over to use the new conparms manpage.
* man/solterm.1: Added docs for solterm.
* lib/domain.c: Fixed a shutdown problem if a shutdown occurred
during a bus scan that detected an MC.
* swig/python/openipmigui/_domain.py: Fix a problem with shutting
down in startup. conn_change_cb could be called after the
connections were brought down (due to a race).
* swig/OpenIPMI.i: Finish out the SoL interface.
* swig/perl/OpenIPMI_perl.c: Add a "*b" format to the callback
caller to allow sizes arrays of characters (including nils) to be
passed.
* swig/python/OpenIPMI_lang.i: ditto
2006-01-19 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_sol.h, lib/ipmi_sol.c: Modified one
interface a little to pass the state as the correct type.
* include/OpenIPMI/ipmi_con.h: Added a way to increment the
usecount for a connection. Right now this is only available on
LAN, so that a domain connection can be reused for something
else.
* lib/ipmi_lan.c: Added the usecount function.
* include/OpenIPMI/ipmiif.h.in, lib/domain.c: Added a way to fetch
the connections used by a domain.
2006-01-16 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: Fix a bug in getting some event fields.
2006-01-15 Corey Minyard <cminyard@mvista.com>
* man/ipmish.1, man/openipmish.1: Rename ipmish to openipmish.
* man/ipmicmd.1, man/openipmicmd.1: Rename ipmicmd to openipmicmd.
* OpenIPMI.spec.in: Modify for renames and and the GUI.
* swig/OpenIPMI.i: Added some missing docs.
* configure.in: Move to version 2.0.4.
2006-01-13 Corey Minyard <cminyard@mvista.com>
* cmdlang/Makefile.am: Add os_debug.c into the openipmish build,
and remove it from the main library build, to allow the command
language to be used elsewhere.
* swig/OpenIPMI.i: Add command language interfaces for the swig
interfaces.
* swig/perl/Makefile.am, swig/python/Makefile.am: Now we need to
link with libOpenIPMIcmdlang.
* swig/perl/OpenIPMI_lang.i, swig/python/OpenIPMI_lang.i: Add
defines for a generic callback (assuming we have already checked
it for valid functions).
* swig/python/openipmigui/*.py, swig/python/openipmigui.py: Add a
command line interface to the GUI.
* lib/mc.c: Fixed a memory leak that occurred in certain situations
when a shutdown occurs during startup.
2006-01-12 Corey Minyard <cminyard@mvista.com>
* lib/ipmi.c, include/OpenIPMI/internal/ipmi_int.h: Massive
restructure of the way connections done. All the connection-type
specific code was moved out of ipmi.c and into the individual
connection code. A way to register connections was added, and
ways to query argument fields from connection types was added.
Basically, it completely abstract connection type information so
new connections can be seamlessly added to OpenIPMI without
changing the core code, GUI, or anything else like that.
* include/OpenIPMI/ipmi_conn.h, lib/domain.c, lib/ipmiif.h.in:
Added a way to get the arguments for a connections.
* lib/ipmi_lan.c, lib/ipmi_smi.c: Adjusted for the previous
changes.
* include/OpenIPMI/ipmiif.h.in, swig/OpenIPMI.i: Added interfaces
for the connection abstraction.
* swig/perl/OpenIPMI_lang.i, swig/python/OpenIPMI_lang.i: Added
types necessary for the new connection abstractions.
* swig/perl/test_lanparm, swig/perl/test_pet: Modified due to
a previous renumbering of the LAN parameters.
* swig/python/openipmigui.py, swig/python/openipmigui/*.py:
Massive restructure to use all the previous changes to support
dynamically determining connection type content for saving
parameters and for querying the user for new connections. Also
switched over to using domain watching to detect new domains.
2006-01-10 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/internal/ipmi_int.h, lib/ipmi.c: Add support
for connection-type registration for parsing, to remove all the
connection-specific code from ipmi.c. This is very important
because it allows OEM connection handlers to register themselves
fully and interact with standard mechanisms for connection
setup/teardown. Also add a help interface.
* lib/ipmi.c: Added handling for multiple calls to ipmi_init() and
ipmi_shutdown().
* lib/ipmi_lan.c: Add support for the new parsing interface,
basically moving stuff from ipmi.c.
* lib/ipmi_smi.c: ditto
* lib/ipm_lan.c: Remove _ipmi_lan_handle_connected, as it is not
needed any more as MXP is gone.
* swig/python/openipmigui/_conn.py: Add support for connection
handling in domains.
* swig/python/openipmigui/_domain.py: ditto
* swig/python/openipmigui/gui.py: ditto
* swig/python/openipmigui/Makefile.am: Add the _conn.py file.
* sample/ipmicmd.c, sample/Makefile.am: Remove the popt parsing
code, it could not properly handle the new-style arguments (that
had "-<c>" after popt finished parsing the options. It's a lot
shorter without popt, anyway.
* include/OpenIPMI/ipmiif.h.in: Added parse args and option help
interfaces.
* swig/OpenIPMI.i: Added parse args and option help interfaces.
* cmdlang/cmdlang.c, include/OpenIPMI/ipmi_cmdlang.h: Add a
"help_finish" function to commands to allow dynamic help
content.
* cmdlang/ipmish.c: Adjust for previous changes.
* cmdlang/cmd_domain.c: Make the "domain open" help dynamic based
upon the new help interfaces.
* include/OpenIPMI/ipmi_conn.h: Add an interface to the connection
for returning the current arguments that could be fed to a new
connection.
2006-01-09 Corey Minyard <cminyard@mvista.com>
* man/openipmigui.1, man/Makefile.am: Started a man page for the
GUI.
* lib/domain.c, include/OpenIPMI/ipmiif.h: Added a way to rescan
all IPMB busses known by the domain.
* swig/OpenIPMI.i: Added the rescan all IPMB busses function.
* lib/lanparm.c: Moved the num_alert_destinations field to a
location that makes more sense.
* swig/python/openipmigui.py: Renamed "~/.ipmigui.startup" to
"~/.openipmigui.startup"
* swig/python/openipmigui/*.py: Finish up user handling, clean up
a bunch of other things.
2006-01-08 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Added handling of checking if the channel support
RMCP+ before allowing setting of 20-bit passwords. Also allow
a null handler for ipmi_mc_set_user().
* swig/python/openipmigui/*.py: Work on IPMI user handling.
2006-01-06 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: Need a separate blocking and callback setup
define, as we might need to handle these differently.
* swig/python/OpenIPMI_lang.i: Add defines for the previous
change.
* swig/perl/OpenIPMI_lang.i: ditto
* swig/python/openipmigui/*.py, swig/python/openipmigui.py: More
work on getting the 2.4 version of wxPython working.
* swig/OpenIPMI.i: Fix a comment, change the users callback
and object list reference to pass the proper value.
* swig/perl/OpenIPMI_perl.c: Adjust for the previous change.
* lib/mc.c: Allow a NULL callback in ipmi_mc_channel_set_access().
* swig/python/openipmigui/*.py: Work on getting the lanparm values
and channel values settable.
2006-01-05 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: Add a way for the languages to plug-in code at
the beginning and end of a function that handles callbacks or may
block. This allows Python to release the GIL lock in older
versions of Python.
* swig/python/OpenIPMI_lang.i: Add defines for the previous
change.
* swig/perl/OpenIPMI_lang.i: ditto
* swig/OpenIPMI.i: Only initialize gthreads if it is not already
initialized.
* swig/python/openipmigui.py: Fix the GUI startup to use the
proper OnInit structure for wxPython.
* unix/posix_thread_os_hnd.c, unix/posix_os_hnd.c: Fix the
get_random() function to fill in all the data.
* swig/python/openipmigui/*.py: Convert over from the wxPython 2.6
Bind() functions to the older EVT_xxx() bind functions.
2005-12-30 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: Fix problems with the channel info and
channel access data structures provided in callbacks; make
copies of those so the use can keep them around in the swig
languages. Also add copy operations on the channel access
and user data structures and fix some problems with references
on various set operations.
* swig/python/OpenIPMI_lang.i: Create references for objects
passed to Python parameters, since Python doesn't do that
automatically.
* swig/python/openipmigui/Makefile.am: Add _mc_chan.py and
_mc_lanparm.py.
* swig/python/openipmigui/_mc_chan.py: Add MC channel info
handling
* swig/python/openipmigui/_mc_lanparm.py: Add MC lanparm
handling.
* swig/python/openipmigui/_domain.py: Fix some formatting
* swig/python/openipmigui/_mc.py: Add support for the MC channel
and lanparm handling.
2005-12-29 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_payload.c: Fix things so send message commands can be
routed through a LAN channel. This allows ATCA AMCs to be
directly communicated with.
2005-12-28 Corey Minyard <cminyard@mvista.com>
* cmdlang/cmd_domain.c, man/ipmi_cmdlang.7: Add doc info about
the authtype and privilege fields.
* lib/rakp.c: Fix a comment error about the message the rolem hack
applies to.
* swig/python/Makefile.am: Add a way to run the gui from the
makefile, to avoid having to set the paths by hand.
2005-12-20 Corey Minyard <cminyard@mvista.com>
* doc/IPMI.ltx: Fixed a cross reference.
* doc/Makefile.am: Fixed the latex build to run bibtex and latex
the apropriate number of times.
2005-12-14 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i, swig/python/OpenIPMI_lang.i: Added support for
older versions of Python.
* OpenIPMI.spec.in: Cleaned up some GUI stuff.
* swig/python/openipmigui: Lots of work in this directory, have a
mostly complete GUI now.
* include/OpenIPMI/ipmi_posix.h; Added posix_vlog() back so
openhpi will compile. posix_vlog() is still considered
deprecated, though.
* unix/posix_thread_os_hnd.c, unix/posix_os_hnd.c: ditto
* cmdlang/cmd_domain.c, man/ipmi_cmdlang.7: Fixed some problems
with the "domain open" documentation.
* cmdlang/cmd_domain.c: Fixed a problem with a possible memory
leak in one failure scenario.
* swig/OpenIPMI.i, samples/solterm.c: Switch over to the new log
handler.
* unix/posix_thread_os_hnd.c: Fix a problem where a wrong
function was being called for logging.
* swig/OpenIPMI.i, configure.in: Modified things to use the
right threads library for perl and python.
* swig/perl/Makefile.am, swig/perl/OpenIPMI_lang.i: ditto
* swig/python/Makefile.am, swig/python/OpenIPMI_lang.i: ditto
* configure.in: Move to version 2.0.3.
2005-12-13 Corey Minyard <cminyard@mvista.com>
* lib/rakp.c: Add a proper error handler for timeouts.
* lanserv/lanserv_ipmi.c: return an error on invalid auth to
rakp3.
* cmdlang/ipmish.c, cmdlang/cmd_domain.c: Add useful error
reporting.
* include/OpenIPMI/ipmi_err.h, lib/strings.h: Added a way to get
the length of an error string so it can be dynamically allocated
to the right size.
* swig/OpenIPMI.i: Added an error string fetcher.
2005-12-08 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: Added the event method call_handlers that allow
an event to be interpreted after the fact.
2005-12-06 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: Fix wrong name of set_event_log_enable for the
MC class.
2005-12-05 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: Added compare functions for all entity ids.
* swig/OpenIPMI.i: Redid all constants to use %constant. Also
renamed some misnamed ones, they are not supposed to begin with
IPMI_.
* swig/OpenIPMI.i: Fixed the hot-swap comments for the
auto-activate/deactivate settings.
* include/OpenIPMI/ipmiif.h.in, lib/entity.c, swig/OpenIPMI.i:
Added a function that returns if the entity supports auto activate
or auto deactivate time.
* lib/fru.c: Make sure to return an error instead of crashing if a
root node fetcher is not installed.
* lib/oem_atca.c: Set the auto activate/deactivate function to
NULL instead of real functions that return value. That lets the
upper level code detect that this is not supported.
* swig/python/OpenIPMI_lang.i: Fixes problems with returning NULL
char ** and other ** objects.
2005-12-03 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: Added a method to get the MC id for an entity.
2005-12-02 Corey Minyard <cminyard@mvista.com>
* swig/OpenIPMI.i: There was a critical error in the
convert_to_xxx methods; they returned a string instead of an error
and were inconsistent (A NULL return might mean success or an
error). Make them consistently return an int and remove the
"convert_" prefix since it seems unnecessary. This is,
unfortunately, not backwards compatible, but needs to be fixed.
And hopefully there are not too many perl/python users yet.
* swig/perl/*, swig/python/*: Adjusted for the previous change.
* swig/OpenIPMI.i: Fixed problems dealing with threshold and event
strings.
* swig/OpenIPMI.i: Have the discrete event handle call the proper
callback.
* swig/OpenIPMI.i: Add an event delete capability.
* swig/python/OpenIPMI_lang.i: Fix a hidden (in a macro) vague
else clase.
2005-12-01 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_mc.h, include/OpenIPMI/internal/ipmi_sensor.h:
Move the ipmi_sensor_get_mc() call to a more public interface,
primarily to give the GUI access to it.
* swig/OpenIPMI.i: Add get_mc() to the sensor class.
* swig/OpenIPMI.i: Added function to conver the various threshold
and event values into strings.
2005-11-30 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Got something wrong in the new MC state machine. Need
to call mc_startup without any locks held.
* lib/entity.c: Fixed some problems with detecting presence from
children. Also fixed some bugs dealing with entity containment
SDR records.
* swig/OpenIPMI.i: Fix threshold printing
2005-11-29 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Keep the entity key around (channel, IPMB, id,
instance) even if the entity's SDR is destroyed.
* lib/mc.c: Added a callback when the MC is completely up. This
was a major undertaking, the basic operation of MCs had to change
substantialy. Before, MCs could go active and inactve any number
of times and the transitions were counted and reported
appropriately. This no longer happens; the MC will go through a
state machine and active/inactive/fully up will only happen in
order.
* swig/OpenIPMI.i: Add the MC fully up handler methods.
* lib/oem_atca.c: Make sure the MC is scanned when the entity is
newly present (as well as when it goes away, which was already
there). Also some code cleanups.
* lib/ipmi_smi.c: Fix a "memory use while free" problem at
shutdown.
* cmdlang/cmd_domain.c: Remove the code and requirement for
including internal/ipmi_event.h
* lib/domain.c: Restart the domain audit timer immediately when
the timeout is set.
* glib/glib_os_hnd.c: Clear the running flag when timer is
stopped.
2005-11-28 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca.c: Make sure the main entities I create hang around
after devices have been removed, so the configured data from the
address table stays valid.
2005-11-27 Corey Minyard <cminyard@mvista.com>
* swig/python/ipmigui.py: removed
* swig/python/openipmigui.py, swig/pythong/openipmigui/*: Started
work on a real GUI.
* OpenIPMI.spec.in, configure.in: Added GUI directories.
2005-11-26 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca.c: Set the number of values properly on non-identifier
controls.
* swig/OpenIPMI.i: Properly name get_light and set_light (remove
the ipmi_control_ from in front of them). Fix a doc error.
* include/OpenIPMI/ipmiif.h.in: The setting light information
about local control and color support didn't have per-light
values, which was a problem. A new interface was added, the
old one only works for the first light.
* include/OpenIPMI/internal/ipmi_control.h: ditto
* lib/control.c: ditto
* cmdlang/cmd_control: ditto
* lib/oem_atca.c: ditto
* swig/OpenIPMI.i: ditto
* swig/OpenIPMI.i: Fix a problem setting light parms
2005-11-25 Corey Minyard <cminyard@mvista.com>
* lib/aes_cbc.c: Make sure we don't coredump if the connection
doesn't get set up.
* lib/domain.c: Don't iterate the domain list if it is NULL.
* lib/ipmi_lan.c: Allow RMCP+ to be specified explicitly as a
connection type.
* swig/OpenIPMI.i: On an error, pass in a valid dummy array when
delivering control value lists, since they may be NULL on an
error.
* swig/OpenIPMI.i: Add entity SDR id and entity id string fetch
methods.
2005-11-24 Corey Minyard <cminyard@mvista.com>
* lib/mc.c, lib/domain.c: Make sure certain things don't run when
the object is being destroyed.
* lib/opq.c: Fix an opq destroy error.
2005-11-23 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Remove the check for the MC being active when
allowing the sensor to perform operations. It's not always
accurate and shouldn't matter.
* lib/control.c: ditto
* swig/OpenIPMI.i: Fix some string handling errors.
* swig/OpenIPMI.i: Fix the threshold_reading_cb to pass the error
as a parameter
* swig/python/OpenIPMI_lang.i: Handle generating exception
information from callbacks.
2005-11-22 Corey Minyard <cminyard@mvista.com>
* swig/python/OpenIPMI_lang.i: Fixed all the calls to grab/release
the lock state so things will always work properly no matter where
the calls come from.
2005-11-21 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: call _ipmi_mc_put() at the end of
ipmi_entity_get_mc_id().
2005-11-17 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Make sure to handle all cases of partial data in a
set sensor event enables response. Also be sure to mask off
reserved bits.
* cmdlang/cmd_sensor.c: Fix an error report function location.
* include/OpenIPMI/ipmi_mc.h: Add ipmi_event_alloc() to this file
so you can allocate events to add to the SEL. Otherwise you would
have to include internal include files.
* cmdlang/cmd_sel.c: No longer need the event.h include.
* lanserv/lanserv_ipmi.h, include/OpenIPMI/lanserv.h: Change the
"idx" of a session to its handle (since the index is something
else) and rework the "Get Session" handling code in the lan server
to actually be correct.
2005-11-16 Corey Minyard <cminyard@mvista.com>
* swig/perl/Lanserv.pm: Removed the need for threads, use fork()
instead, for the perl tests.
* swig/perl/test_chan: ditto
* swig/perl/test_fru: ditto
* swig/perl/test_lanparm: ditto
* swig/perl/test_pef: ditto
* swig/perl/test_pet: ditto
* swig/perl/OpenIPMI_lang.i: Added unsigned in typemaps for swig.
* unix/heap.h: Fix a test so an unsigned value doesn't go negative
in a test.
* swig/perl/Makefile.am: Add test_pef, since it was missing.
* lib/pef.c: Fix a problem writing PEF alert strings.
2005-11-13 Corey Minyard <cminyard@mvista.com>
* lib/ipmi.c: Remove some bogus additions of string nil characters
and fix an incorrect index for setting the second port of a LAN
address.
2005-11-09 Corey Minyard <cminyard@mvista.com>
* lib/sel.c: Don't set startup_SEL_time if the user hand-sets
the SEL time.
* lib/oem_atca.c: Added some prints on some ATCA table errors.
2005-11-04 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Allowed null handlers in some set calls.
* include/OpenIPMI/ipmiif.h.in: Correct some documentation on
managed hot-swap.
* include/OpenIPMI/ipmi_fru.h: Added some missing information to
the comments.
* doc/IPMI.ltx: Added info on the new FRU interfaces, cleaned up a
few things.
2005-10-30 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/internal/ipmi_mc.h, lib/mc.c: Add a way to
force the active value without reporting it.
* lib/domain.c: Force the system address MC to always be active,
since it makes no sense for it to be inactive.
* lib/cmdlang.c: Make sure output is reported properly for binary
and unicode output to avoid warning messages.
2005-10-24 Matt Domsch <Matt_Domsch@dell.com>
* ipmi.sysconf: add IPMI_POWERCYCLE back in, change SuSEconfig
modulename to .ipmi
2005-10-20 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_conn.h: Modify the ipmb-providing
functions to take an array of IPMB addresses, not a single ipmb
address. Required for per-channel IPMB support. An unfortunate
(mostly internal) interface change.
* lib/domain.c, include/OpenIPMI/internal/ipmi_domain.h: Add
per-channel IPMB address support.
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
* lib/oem_atca.c: ditto
* lib/oem_atca_conn.c: ditto
* lib/oem_force_conn.c: ditto
* lib/oem_intel.c: ditto
* lib/oem_kontrol_conn.c: ditto
* include/linux/ipmi.h: Add per-channel IPMB support ioctls.
* lib/ipmi_smi.c: Remove socket support, as nobody should be using
it.
* everything: Cleaned up a bunch of new warnings from the gcc 4.0
compiler.
* include/OpenIPMI/internal/ipmi_domain.h, lib/domain.c: The MC
scanning functions were not following the rules properly; the done
function would still be called on some errors. Some users were
handling this properly and some weren't. This cleans it up to
follow the standard rules (return an error then no callback,
return success then always callback).
* lib/oem_motorola_mxp.c: ditto
* include/OpenIPMI/internal/ipmi_domain.h, lib/domain.c, lib/atca.c:
Modified the way bus scanning works so that the ATCA code can use
it.
* include/OpenIPMI/internal/ipmi_domain.h, lib/domain.c: Modified
the domain fully up code to take a debugging parm to help know who
is not releasing this properly.
* lib/entity.c: ditto
* lib/mc.c: ditto
2005-10-17 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_fru.h: Add ipmi_bits.h include.
* include/OpenIPMI/internal/ipmi_fru.h: Add some needed includes.
* lib/oem_atca.c, lib/oem_atca_fru.c: Move the FRU decoding to a
different file.
* include/OpenIPMI/ipmiif.h.in, lib/strings.c: Added ATCA blade
domain type, and the option for local-only domains.
* lib/domain.c, lib/ipmi.c, include/OpenIPMI/internal/ipmi_domain.h:
Added local-only domain options support.
* lib/domain.c, include/OpenIPMI/internal/ipmi_domain.h: Added a
way to get the connections for a domain.
* lib/oem_atca.c: Added support for local blade domains when coming
in from an system interface.
2005-10-17 Matt Domsch <Matt_Domsch@dell.com>
* ipmi.init: if ipmi_devintf can't be removed, don't delete /dev/ipmi0
* ipmi.init: merge SuSE config file foo=yes vs foo=1 changes.
* ipmi.sysconf: ditto
2005-10-13 Corey Minyard <cminyard@mvista.com>
* cmdlang/Makefile.am: Fix the clean to work properly.
* glib/Makefile.am: ditto
* lanserv/Makefile.am: ditto
* lib/Makefile.am: ditto
* ui/Makefile.am: ditto
* unix/Makefile.am: ditto
* utils/Makefile.am: ditto
* lib/fru.c: Added a call to cleanup the old FRU recs when the rec
data for the FRU information is set and old FRU data exists.
* lib/fru_spd_decode.c: Don't free the FRU data at shutdown.
* lib/normal_fru.c: If you add a record area to a non-normal FRU,
convert it to a normal FRU. This lets you edit a corrupt FRU.
* lib/oem_intel.c: Add support for the Intel SE7520 motherboard.
2005-10-09 Corey Minyard <cminyard@mvista.com>
* lib/opq.c: Added a way to pre-allocaste opq entries, a way to
put an item at the front of the opq instead of at the end, and a
way for an opq operation to return if it was started or not (an
optimization to keep from blowing the stack in operations that
might heavily nest).
* lib/control.c: Adjusted for the opq changes.
* lib/entity.c: ditto
* lib/lanparm.c: ditto
* lib/mc.c: ditto
* lib/pef.c: ditto
* lib/sdr.c: ditto
* lib/sensor.c: ditto
* lib/sel.c: Optimized SEL clearing. If the SEL detects that all
entries are deleted, it will immediately add a fetch operation at
the head of the queue. If the fetch operation succeeds and clears
the SEL, any pending deletes are marked as already done and will
return a success for the operation.
* lib/sel.c, include/OpenIPMI/internal/ipmi_sel.h: Added a way to
try to force an SEL clear immediately. NOTE: Do not use this.
This is only for HPI.
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: Added an SEL clear
function for the MC. NOTE: Do not use this. This is only for
HPI.
* include/OpenIPMI/internal/ipmi_mc.h: Added a way to set a custom
clear handler.
* cmdlang/cmd_sel.c: Added a way to force-clear an MC's SEL.
* lanserv/emu.c: Fixed some bugs in SEL handling.
2005-10-05 Corey Minyard <cminyard@mvista.com>
* lib/entity.c, include/OpenIPMI/internal/ipmi_entity.h: Added a
way to set the FRU for an entity.
* lib/oem_atca.c: Put the shelf FRU info into the chassis entity
(the 23.1 entity).
* lib/oem_atca.c: Fix some problems with references on the
multirecord decoding.
* lib/normal_fru.c: Make sure the fru is unlocked while calling
the root node handlers.
* lib/fru.c: Make sure the FRU is unlocked while decoding the FRU
data.
2005-10-04 Matt Domsch <Matt_Domsch@dell.com>
* ipmi.init: don't strictly require LSB functions on Red Hat / VMware
2005-10-02 Corey Minyard <cminyard@mvista.com>
* utils/*.c, lanserv/*.c, lanserv/*.h: Relicense part of OpenIPMI
under a dual LGPL/BSD license so it may be used as part of a BMC
implementation.
* include/OpenIPMI/internal/ilist.h: ditto
* include/OpenIPMI/internal/md2.h: ditto
* include/OpenIPMI/internal/md5.h: ditto
* include/OpenIPMI/internal/ipmi_malloc.h: ditto
* include/OpenIPMI/internal/ipmi_locks.h: ditto
* include/OpenIPMI/internal/locked_list.h: ditto
* include/OpenIPMI/ipmi_auth.h: ditto
* include/OpenIPMI/ipmi_err.h: ditto
* include/OpenIPMI/ipmi_log.h: ditto
* include/OpenIPMI/os_handler.h: ditto
* include/OpenIPMI/ipmi_debug.h: ditto
* include/OpenIPMI/ipmi_addr.h: ditto
* include/OpenIPMI/ipmi_msgbits.h: ditto
* include/OpenIPMI/ipmi_picmg.h: ditto
* include/OpenIPMI/ipmi_bits.h: ditto
* include/OpenIPMI/ipmi_types.h: ditto
* include/OpenIPMI/lanserv.h: ditto
2005-09-29 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca.c: Make sure the shelf entity is reported
before any child entities of the ATCA shelf.
2005-09-22 Corey Minyard <minyard@acm.org>
* lib/fru.c: Added an error when FRU decode failed.
* lib/normal_fru.c: Fixed the filename in error prints and remove
an error log when the checksum fails.
* lib/ipmi.c, lib/fru_spd_decode.c: Added FRU info decoding for
SPD FRU information. This info type occurs in DRAMs.
* lib/sample.c: Switched over to use the new FRU decode fetching
method.
2005-09-21 Corey Minyard <minyard@acm.org>
* lib/event.c, include/OpenIPMI/ipmiif.h.in: Added a way to
"interpret" an existing event the same way that new incoming
events are interpreted.
* cmdlang/cmd_sel.c: Added an "interp" option to the event
listing command to interpret the event.
2005-09-14 Matt Domsch <Matt_Domsch@dell.com>
* ipmi.init: use poweroff_control or poweroff_powercycle module
option to ipmi_poweroff as appropriate. kernel 2.6.14-rc1
(driver 36.0) and newer uses poweroff_powercycle.
* OpenIPMI.spec.in: %preun and %postun fixes from Fedora Core
2005-09-08 Matt Domsch <Matt_Domsch@dell.com>
* ipmi.init: silence modprobe output, matches Fedora again
2005-09-06 Corey Minyard <cminyard@mvista.com>
* lib/fru.c: Check that the write and write complete functions are
available before allowing them to be called.
2005-09-06 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.in, lib/entity.c: Added a function to
get the mcid of an entity, for MC and generic entities.
2005-08-31 Matt Domsch <Matt_Domsch@dell.com>
* ipmi.init: Updated initscript to return sane status values from
all commands.
2005-08-31 Corey Minyard <cminyard@mvista.com>
* lib/fru.c, include/OpenIPMI/ipmi_fru.h: Create a new abstract
FRU interface based upon the node stuff done with multi-records.
This is getting ready for FRU data that is not standard IPMI (SPD
in DIMMs, for instance).
* include/OpenIPMI/internal/ipmi_oem.h: Move some FRU-specific
interfaces out of here.
* include/OpenIPMI/internal/ipmi_fru.h: Move the FRU-specific
interfaces into here.
* lib/normal_fru.c, lib/oem_atca.c: Convert over to the new FRU
interfaces. This changed all the multi-record interfaces, but is
much cleaner.
* cmdlang/out_fru.c: Use new FRU data dumping interface.
* swig/OpenIPMI.i: Added an interface to get the FRU's root node,
for the new abstract FRU interface.
2005-08-29 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Fixed a possible race during shutdown with timer
handling.
* lib/opq.c: Only allow the opq destroy to be done once, in case
it is called again from the destroy callbacks.
* lib/event.c, include/OpenIPMI/internal/ipmi_event.h: Add a way
to get the generating MC from a standard IPMI event.
* lib/event.c, include/OpenIPMI/ipmiif.h.in: Add a way
to get the generating sensor from a standard IPMI event.
* lib/domain.c: Convert over to the new function to get the
generating MC.
* lib/fru.c, include/OpenIPMI/internal/ipmi_fru.h: Removed all the
"normal" FRU processing and made interfaces so it can be put into
another file and abstracted (to allow multiple FRU data types).
Not quite done yet, but a long way down the road.
* lib/normal_fru.c, lib/Makefile.am, lib/ipmi.c: The "normal" fru
processing moved here.
2005-08-26 Corey Minyard <cminyard@mvista.com>
* ipmi.init, ipmi.sysconf, Makefile.am, OpenIPMI.spec.in: Add init
script stuff.
* include/OpenIPMI/ipmi_fru.h, lib/fru.c, cmdlang/cmd_fru.c: Add
general FRU float handling.
2005-08-25 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c, lib/control.c: Fix so proper counts are held in
shutdown situations.
2005-08-24 Corey Minyard <cminyard@mvista.com>
* lib/domain.c, include/OpenIPMI/internal/ipmi_domain.h: Added a
way to tell if the domain is in shutdown.
* lib/sensor.c: Don't allow operations if the domain/mc it is
attached to is in shutdown or is not active. There was a problem
where if a sensor was getting refetched in the fetch completion
handler, and it blew the stack because the fetch would go through
the opq, fail, call the handler, start the fetch, etc.
* lib/control.c: ditto
* lib/sensor.c: Fix an error path in states_get_start() that was
incorrectly returning success. Fix a typo in a comment.
* include/OpenIPMI/ipmi_sol.h: Make this into a normal unix text
file (remove carraige returns) and general formatting cleanups.
2005-08-23 Gerhard Obrecht <varnhalt2 at users.sourceforge.net>
* lib/ipmi.c, lib/Makefile.am, lib/oem_kontron_conn.c: Add
support for the Kontron system interface IPMB address setting.
2005-08-23 Corey Minyard <cminyard@mvista.com>
* cmdlang/cmd_sensor.c, man/ipmi_cmdlang.7: Fixed the docs on the
threshold names.
* lib/sensor.c: Fix threshold setting to clear out the unused
threshold values (just so random data isn't sent).
2005-08-19 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: When doing a "set sensor enable", only disable the
bits that the sensor says it supports.
* lib/lanparm.c: Added a hack for working with broken systems that
return the wrong alert destination number with the response.
2005-08-18 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca.c: When a hot-swap event comes in and the MC
already exists, it is probably an AMC insertion/removal.
Rescan the SDRs on the IPMC when this occurs, as it probably has
new sensors.
2005-08-16 Corey Minyard <cminyard@mvista.com>
* OpenIPMI.pc.in: Fix linking and order for libOpenIPMIutils.
* OpenIPMIcmdlang.pc.in: ditto
* OpenIPMIglib.pc.in: ditto
* OpenIPMIposix.pc.in: ditto
* OpenIPMIpthread.pc.in: ditto
* OpenIPMIui.pc.in: ditto
2005-08-05 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Fix an entity destruction problem that could
result in a SEGV in some situations.
* swig/OpenIPMI.i: Fix the fru multi-record node handling.
* swig/perl/OpenIPMI_lang.i: ditto
* swig/python/OpenIPMI_lang.i: ditto
* swig/perl/sample: Added code for dumping multirecords.
2005-08-02 Corey Minyard <cminyard@mvista.com>
* cmdlang/os_debug.c: Fix so log handler gets set correctly.
* cmdlang/out_fru.c: Add support for multi-record parsing.
* include/OpenIPMI/ipmi_fru.h, lib/fru.c: Add consts where needed.
* include/OpenIPMI/internal/ipmi_int.h: ditto
* include/OpenIPMI/internal/ipmi_oem.h: ditto
* lanserv/atca.emu: Add more multi-records for testing.
* lib/fru.c: Fix return of the multi-record root name.
* lib/oem_atca.c: Fix problems with the multi-record parsing, add
support for the ATCA address table.
* swig/OpenIPMI.i: Add support for the fru nodes and multi-record
parsing.
* swig/perl/OpenIPMI_lang.i, swig/python/OpenIPMI_lang.i: new
types for multi-record parsing.
* ui/ui.c: Some const fixes.
* lib/lanparm.c: Fixed the RMCP+ cipher suites lanparm entry so it
is optional.
* include/OpenIPMI/internal/ipmi_oem.h: Add comments on
registering FRU multi-record handlers.
* lib/fru.c, include/internal/ipmi_oem.h, include/ipmi_fru.h:
Modified the fru node to return floating point and boolean
values.
* lib/oem_atca.c: ditto
* ui/ui.c: ditto
* cmdlang/out_fru.c: ditto
* lib/fru.c: Added support for the standard FRU multi-record for
power supplies (types 0-2).
2005-07-21 Darius Davis <dariusd@users.sourceforge.net>
* lib/ipmi_sol.c: Fix potential crash due to a dodgy memset().
Fixed an incorrect warning text string.
2005-07-14 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Make sure the entity for a sensor is locked even
if the MC is bad.
* lib/sel.c: Remove a bogus sel_unlock().
* include/OpenIPMI/os_handler.h: Add a way to directly set the
log handler for an os handler.
* include/OpenIPMI/ipmi_posix.h: Remove the posix_vlog garbage.
We still maintain backwards compatability, but this was a stupid
idea.
* unix/posix_os_hnd.c: ditto
* unix/posix_thread_os_hnd.c: ditto
* unix/posix_os_hnd.c: Add in the set_log_handler os_handler
function.
* unix/posix_thread_os_hnd.c: ditto
* glib/glib_os_hnd.c, include/OpenIPMI/ipmi_glib.h: ditto
* cmdlang/os_debug.c: ditto
* cmdlang/ipmish.c: Convert over to set_log_handler.
* sample/sample.c: ditto
* sample/ipmicmd.c: Remove posix_vlog and use the default one.
* sample/sample2.c: ditto
* sample/sample3.c: ditto
* configure.in: Move to version 2.0.2
2005-07-13 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/internal/ipmi_sensor.c, include/OpenIPMI/ipmiif.h.in:
Move ipmi_sensor_get_owner() to ipmiif.h for the CIM mapping.
* everything: A massive update to improve const correcteness.
2005-07-12 Corey Minyard <cminyard@mvista.com>
* lib/fru.c: Fix a problem with uninitialized variable FRU string
data and another problem with encoding later fields after a
changed field.
* cmdlang/cmd_fru.c: Must reference the FRU again before deleting;
the caller is holding their own reference and will dereference it
themselves.
* lanserv/emu_cmd.c: Fixed a problem reading continued command
strings in the emulator.
* lanserv/README.emulator: Fixed some documentation for FRU handling.
* lib/sdr.c: When checking the length of SDR data, allow extra
data at the end.
2005-07-06 Corey Minyard <cminyard@mvista.com>
* swig/perl/test_fru: Added some more tests trying to reproduce
a user problem.
2005-06-14 Forrest Zhao <forrest.zhao@intel.com>, Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_fru.h, include/OpenIPMI/internal/ipmi_oem.h
lib/fru.c, lib/oem_atca.c, ui/ui.c: Add support for OEM FRU
multirecord decode, providing a hierarchy interface for user to
get each field of decoded OEM FRU multirecord.
2005-06-10 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Fix some english grammar problems in a pring.
* swig/python/Makefile.am, OpenIPMI.spec.in: Fix so python
installs correctly.
* configure.in: Move to version 2.0.1.
2005-06-05 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_fru.h: Add some docs explaining how the
type field works in multi-records.
* lib/fru.c: Fix the definition of fru_area_info to be static
and not extern for the forward definition.
* lib/fru.c: Call fru_write_handler, not fru_data_handler, on
a write retry.
2005-06-02 Corey Minyard <cminyard@mvista.com>
* lib/fru.c: Fix the byte ordering on reading FRU time. Make sure
the in_use field is reset if the FRU is written but there are no
changes.
2005-05-19 Forrest Zhao <forrest.zhao@intel.com>
* include/OpenIPMI/ipmiif.h, lib/domain.c, lib/oem_atca.c,
lib/sensor.c: Add callback for OEM-specific sensor types.
2005-05-18 Corey Minyard <cminyard@mvista.com>
* lanserv/lanserv_ipmi.c: Use K1 instead of SIK for the initial
key for hmac_sha1, per the IPMI 2.0 R2 errata.
* lanserv/lanserv_ipmi.c: Adjust the range of allowed sequence
numbers for RMCP+, per the IPMI 2.0 R2 errata.
* lib/ipmi_lan.c: Adjust the range of allowed sequence numbers for
RMCP+, per the IPMI 2.0 R2 errata.
* lib/entity.c: Add presence bit sensors entries for drive slot
and memory sensor types, per the newly added bits in the IPMI 2.0
R2 errata.
* lib/strings.c: Add strings for sensor bit readings for memory
sensors, drive slot sensors, and cable sensors, per the IPMI 2.0
R2 errata.
2005-05-17 Corey Minyard <cminyard@mvista.com>
* lib/mc.c, include/OpenIPMI/ipmi_mc.h, swig/OpenIPMI.i: Add the
(dangerous) ability to set the system event log enable for an MC.
* cmdlang/cmd_mc.c: ditto
* lib/domain.c: Move adding the domain to the domain list to
right where the domain is created. That way it will be cleaned
up properly even if it never comes up.
2005-05-10 Paul Drews <paul.drews at intel.com>
* unix/posix_thread_os_hnd.c: Clear the internal_data structure
after allocating.
2005-05-06 Paul Drews <paul.drews at intel.com>
* unix/posix_thread_os_hnd.c: Initialize the mutex structure
after it is allocated.
2005-04-27 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_sdr.h, lib/sdr.c: Added the ability
to clear out and SDR like it has never been fetched.
* include/OpenIPMI/internal/ipmi_event.h, lib/event.c, lib/sel.c:
Added setting if the event is old into the event itself.
* lib/oem_atca.c, lib/oem_motorola_mxp.c, lib/domain.c: Use the
old event info in the event itself to reject old events.
* lanserv/README.emulator: Added channel info fetching.
* lanserv/atca.emu: ditto
* lanserv/emu.c: ditto
* lanserv/emu.h: ditto
* lanserv/emu_cmd.c: ditto
* lanserv/lanserv_emu.c: ditto
* lib/chassis.c: Tie into the MC going inactive to remove the
chassis controls.
* lib/control.c: Fix handling of shutdown when destroyed to clear
out the waitq when the control does an opq done and the control is
destroyed. Also fix some refcount problems on some error
situations.
* lib/sensor.c: Ditto, but for sensors.
* lib/mc.c: Make sure the clear out the SDR repository to an
intial state when the MC goes inactive. Also add some useful
error messages.
* lib/oem_atca.c: Fix the detection of going to or from not
installed state to be correct.
* lib/entity.c: Fixed a problem where if a presence sensor got an
error on a reading, it would not continue to try other presence
methods.
2005-04-20 Corey Minyard <cminyard@mvista.com>
* unix/posix_os_h.c, unix/posix_thread_os_hnd.c: Fix incorrect
return values from perform_one_op() in these os handlers.
* sample/ipmicmd.c: When performoning a non-interactive operation,
make sure to not exit in the message handler, because that is done
with the LAN object still refcounted (so it won't shut down).
2005-04-18 Corey Minyard <cminyard@mvista.com>
* lib/sel.c: Fix a bug where deleting the last record of the SEL
cause the SEL fetch to not work any more on systems that support
individual deletes.
2005-04-14 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Fix a bug with multiple IPMI connections on the
same FD.
2005-04-13 Corey Minyard <cminyard@mvista.com>
* lib/strings.c, lib/ipmi_sol.c, sample/solterm.c: Fix compile
problems with older compilers.
* lib/oem_atca.c: Modify the ATCA detection to use a Get PICMG
Properties command instead of getting the shelf FRU info address,
since not all systems get the shelf FRU properly.
2005-04-08 Corey Minyard <cminyard@mvista.com>
* sample/ipmicmd.c: Make sure all error output goes to stderr and
only submit the command once in LAN mode.
2005-04-07 Corey Minyard <cminyard@mvista.com>
* OpenIPMI.spec.in: Added solterm, reorganized a little.
* swig/OpenIPMI.h: Added domaim monitoring interfaces.
2005-04-07 Darius Davis <dariusd@users.sourceforge.net>
* sample/solterm.c, sample/Makefile.am: Added solterm sample program.
2005-04-07 Darius Davis <dariusd@users.sourceforge.net>
* include/OpenIPMI/ipmi_err.h: Added error codes and macros for Serial
over LAN support
* include/OpenIPMI/ipmi_err.h: Added prototype for ipmi_get_error_string.
* include/OpenIPMI/ipmi_lan.h: #defined IPMI_RMCPP_ADDR_SOL to provide
the RMCP+ address for the SoL payload.
* include/OpenIPMI/ipmi_sol.h: New file: Serial over LAN (SoL)
interface.
* lib/Makefile.am: Added ipmi_sol.c.
* lib/ipmi_lan.c: Added support for Serial over LAN on an IPMI 1.5
connection, using the most significant "reserved" bit in the AuthType
field. Even on an IPMI 1.5 connection, the outgoing and incoming
SoL packets are treated exactly the same as packets for the SoL RMCP+
payload.
* lib/ipmi_sol.c: New file: Serial over LAN (SoL) support.
* lib/strings.c: Added descriptions for SoL and RMCP+ errors.
* lib/strings.c: Added ipmi_get_error_string function to generate a
textual description from an error code regardless of the error class.
2005-03-31 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Cleaned up some minor things.
2005-03-30 Corey Minyard <cminyard@mvista.com>
* lib/sel.c: Remove a bogus stat increment.
* lib/ipmi_lan.c: Add a missing stat.
2005-03-30 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Fix a problem with multiple connections to the
same address. These cannot share lan_fd entries because they
cannot be uniquely identified.
* include/OpenIPMI/ipmi_conn.h: Rework the RMCP+ hacks to make
them more generic.
* cmdlang/cmd_domain.c: ditto
* lib/hmac.c: ditto
* lib/rakp.c: ditto
* lib/ipmi.c: ditto
* man/ipmi_cmdlang.7: ditto
* all: Release version 2.0.0.
2005-03-29 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_conn.h: Added support for a
IPMI_CONN_HACK_BROKEN_INTEL_BMC for handling RMCP+ problems
on Intel BMCs. The Intel BMCs use the bottom 4 bits of the
ROLE(m) instead of the whole ROLE(m) byte. They also use K1
instead of SIK to authenticate normal messages. Both of these are
problems with spec compliance.
* cmdlang/cmd_domain.c: ditto.
* lib/hmac.c: ditto
* lib/rakp.c: ditto
* lib/ipmi.c: ditto
* man/ipmi-cmdlang.7: ditto
* lib/ipmi_lan.c: It seems the payload length does not include the
integrity padding, adjust for that.
* lib/hmac.c: The integrity length for normal messages is 12 bytes
for SHA1-96, not 20 bytes.
* lib/rakp.c: The integrity length for RAKP4 messages was 12
bytes, not 20 bytes.
* lanserv/lanserv_ipmi.c: It seems the payload length does not
include the integrity padding, adjust for that. The integrity
length for normal messages is 12 bytes for SHA1-96, not 20 bytes.
The integrity length for RAKP4 messages was 12 bytes, not 20
bytes.
2005-03-29 Darius Davis <dariusd@users.sourceforge.net>, Corey Minyard <cminyard@mvista.com>
* configure.in: Add test for execinfo.h
* utils/ipmi_malloc.c: #ifdef HAVE_EXECINFO_H around code dependent on
execinfo.h and the backtrace function.
2005-03-24 Corey Minyard <cminyard@mvista.com>
* cmdlang/cmdlang.c: Cast ipmi_time_t to long long when outputting
the data to avoid compiler warning.
* lib/aes_cbc.c, lanserv/lanserv_ipmi.c: Don't use the padding
from openssl, as it is incorrect for IPMI. Add our own padding
and turn openssl padding off.
2005-03-24 Darius Davis <dariusd@users.sourceforge.net>
* lib/fru.c, include/OpenIPMI/ipmi_fru.h: Moved #include<time.h>
to fru.h.
* lib/ipmi_lan.c: #ifdef around more PF_INET6 dependent code.
* lib/ipmi_lan.c: when reading AuthType field, only take low
nybble.
* lib/ipmi_lan.c: raise a warning if the BMC reports that it
supports IPMI2 in extended capabilities, but doesn't say it
provides extended capabilities.
* lib/ipmi_lan.c: move RMCP+ support detection from
auth_cap_done_p to auth_cap_done so we can give a warning for BMCs
that don't handle Get Channel Auth Conf properly.
* lib/sensor.c: change log2 to c_log2 for platforms that define
log2 as a macro (Cygwin).
2005-03-23 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/mxp.h: Fixed the license to be LGPL, as
intended.
* configure.in: Added some target detection and some
target-specific defines.
* lib/ipmi.c, lib/ipmi_smi.c: Made the init/shutdown of ipmi_smi
based upon target-specific defines.
2005-03-22 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Fix a bug in fru presence handling, addressing
beyond the end of the array.
* lib/ipmi.c: Fixed a problem with handling of 1-byte full ASCII.
* lib/ipmi_lan.c: Lots of little fixes.
* include/OpenIPMI/ipmi_lan.h: Added a string for the IPMI LAN
standard port.
* unix/posix_thread_os_hnd.c: Fix a possible double-free scenario.
* glib/glib_os_hnd.c: Fix a possible use of free data scenario.
* lanserv/lanserv_ipmi.c: in return_rmcpp_rsp, make the d[] array
be one longer to accomidate the checksum.
* lanserv/lanserv.c: in handle_msg_ipmi_dev, make the data[] array
be one longer to accomidate the checksum.
* sample/ipmicmd.c: Check to make sure the channel is present.
2005-03-21 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Added IPMI 2.0 as a supported version.
2005-03-21 Darius Davis <dariusd@users.sourceforge.net>
* lib/strings.c: Fix misnamed command string for payload activation.
2005-03-17 Corey Minyard <cminyard@mvista.com>
* lib/fru.c: Fixed an off-by-one problem when writing FRU data.
* unix/posix_thread_os_hnd.c: ifdef some gdbm stuff that needed it.
* include/OpenIPMI/internal/ipmi_utils.h, lib/fru.c: Add a
field to the notrack FRU to allow only specific areas to be
processed.
* lib/entity.c: ditto
* lib/oem_atca.c: ditto, only fetch multi-records.
2005-03-16 Corey Minyard <cminyard@mvista.com>
* lib/fru.c: Added IPMI_REQUEST_DATA_LENGTH_INVALID_CC to the
list of errors that means the FRU fetch was too big and we should
back off the fetch size.
2005-03-12 Corey Minyard <cminyard@mvista.com>
* lib/lanparm.c: Fix some minor problems with IPMI 2.0 parms.
2005-03-03 Corey Minyard <cminyard@mvista.com>
* sample/ipmicmd.c: Fixed some memory sloppiness that was causing
segvs with test_lat.
* lib/ipmi_lan.c: Added a boatload of statistics to the LAN
interface.
* lib/sel.c: Added statistics.
2005-03-02 Corey Minyard <cminyard@mvista.com>
* lib/domain.c, include/OpenIPMI/ipmiif.h.in: Added a
statistics interface.
* include/OpenIPMI/ipmi_conn.h: Added a statistics interface for
connections.
* lib/ipmi_lan.c: Started adding statistics.
* cmdlang/cmd_domain.c: Added statistics dumping.
* lib/ipmi_lan.c: Converted to socket to be non-blocking.
2005-02-28 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Modified sending to sending to odd netfns will
result in immediate send without response.
* lib/ipmi_lan.c, lib/ipmi_smi.c: Free the "name" attribute if it
is set.
* lib/control.c, lib/sensor.c, lib/entity.c: Don't check for the
lock on opq_done() operations, since the lock may not be held due
to shutdown races.
* lib/ipmi_lan.c: Removed an unecessary "retries" and "timer"
variables from the LAN structure.
* lib/oem_atca.c: More hacks for broken hardware.
* lib/sel.c: Hacks for broken hardware.
* lib/mc: Added some information for changed MCs.
2005-02-25 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca.c: Some more fixups for the Intel chassis.
2005-02-24 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Ignore controls and sensors for presence if they
are supposed to be ignored when the entity is not present. I
think I previously misunderstood this bit (not like it is well
explained, anyway).
* lib/sensor.c, lib/control.c: Make oem sensors and controls not
ignored when the entity is not present.
* lib/oem_motorola_mxp.c: ditto
* lib/oem_test.c: ditto
* lib/oem_intel.c: ditto
* lib/oem_atca.c: Set address controls to be ignored if the entity
is not present.
* lib/sensor.c: Fix a problem with handling sensor state fetches
that didn't have optional bytes.
* lib/oem_atca.c, lib/oem_atca_conn.c: Modify fetching the shelf
FRU to try the ECN 1.1 version first. Commented out some
Intel-specific hacks as the shelf gets better.
* include/OpenIPMI/internal/locked_list.h, util/locked_list.c:
Added a way for the prefunc to tell it to skip an item.
* include/OpenIPMI/ipmiif.h, lib/domain.c: Added support for
domain statistics.
* include/OpenIPMI/ipmi_conn.h: Added a statistics interface.
2005-02-23 Tariq Shureih <tariq@linux.intel.com>, Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Added a physical slot number attribute for
entities, useful for ATCA, CTCA, PICMG2.6, etc.
* include/OpenIPMI/ipmiif.h.in: ditto
* include/OpenIPMI/internal/ipmi_entity.h: ditto
* cmdlang/cmd_entity.c, man/ipmi_cmdlang.7: ditto
* lib/oem_atca.c: ditto
* lib/oem_motorola_mxp.c: ditto
* swig/OpenIPMI.i: ditto
* lib/entity.c: Fixed an ordering problem were if the FRU becomes
present before its entity data comes in, still fetch the FRU info.
2005-02-18 Corey Minyard <cminyard@mvista.com>
* cmdlang/cmd_entity.c: Add an "entity tree" command to dump
the list of entities in a tree structure.
* lib/fru.c: Add a new error to handle auto-resizing of FRU
fetches with.
2005-02-11 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_utils.c, include/OpenIPMI/ipmi_addr.h: Add an address
comparison that does not use the LUN as part of the comparison.
* lib/domain.c: Modify finding MCs to not use the LUN, since there
may be multiple LUNs on an MC.
* lib/oem_atca.c: In the Intel SDR fixups, added entity
containment records for all the entities found in the SDRs.
* lib/sel.c: Fixed problems with timestamp handling.
* lib/mc.c: Fixed an error/shutdown race with timer info.
2005-02-08 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Fixed some problems with the use of qsort and the
sorting and comparing of device locator records and entity
association records.
* glib/Makefile.am: Changed the name of a field to be glib, not
posix.
* glib/glib_os_hnd.c: Clear out the glib info so the gdbmf will be
NULL at startup.
* lib/domain.c: Added a general domains_initialized function to
know if the domain lock is valid. This is because some things can
try to do a ipmi_domain_pointer_cb() after the domains have been
shut down.
* lib/sdr.c: Only store the SDRs in the database if we have a
valid key for the MC.
* swig/OpenIPMI.i: Initialize the glib OS handler in the right
order.
* utils/ipmi_malloc.c: Don't free the memory in the alloced list
when shutting down. It may still be in use.
2005-02-02 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/os_handler.h, lib/ipmi.c: Added an interface to
protect users that have created their own OS handler from
additions to the os handler data structure.
* include/OpenIPMI/os_handler.h, lib/sdr.c: Added a non-blocking
mode to the database.
* configure.in: Added gdbm tests.
* cmdlang/os_debug.c, cmdlang/Makefile.am: Added gdbm support.
* glib/glib_os_hnd.c, glib/Makefile.am: ditto
* unix/posix_os_hnd.c, unix/posix_thread_os_hnd.cg, unix/Makefile.am:
ditto
2005-02-01 Corey Minyard <cminyard@mvista.com>
* lib/sdr.c: Add support for dynamically resizing SDR fetches if
the system cannot support the size required. This allowed an
increase in the starting size but can support smaller sizes than
were supported.
* lib/fru.c: Ditto, but for FRU data.
* lib/domain.c: Fixed channel handling to not scan the IPMB if
there is not one from the channel info command. This may cause
some broken 1.5 systems (that do not implement the get channel
info command properly) to not work, but that's too bad, they are
broken. Systems without IPMB will work much better with this
change.
* lib/oem_atca.c: Force instance to be 0x60 on all main units that
came in as entity id 7 or 0.
* include/OpenIPMI/os_handler.h: Added a database interface.
NOTE: This change is not binary backwards compatible if you have
created your own OS handler.
* lib/sdr.h: Added support for storing and retrieving SDR
data in the database for client-side caching.
2005-01-30 Corey Minyard <cminyard@mvista.com>
* lib/lanparm.c: Allow zero-length parm responses to represent
optional unsupported parms.
2005-01-27 Corey Minyard <cminyard@mvista.com>
* configure.in: Changes "==" to "=".
* swig/perl/Makefile.am: Added PERLLIB to pull the modules from
the right place.
* lib/ipmi_lan.c: Only use the get_msg_tag() method on payloads if
the session id is zero.
* include/OpenIPMI/ipmi_lan.h: Improve payload docs.
2005-01-25 Corey Minyard <cminyard@mvista.com>
* lib/event.c: Fixed a problem with the data length when getting
data.
* configure.in, lanserv/Makefile.am, sample/Makefile.am: Added
popt library detection and overriding.
2005-01-23 Corey Minyard <cminyard@mvista.com>
* lib/sel.c: Fixed a bug where the SEL lock was being held in
the SEL fetch done callback.
* include/OpenIPMI/ipmi_mc.h, include/OpenIPMI/ipmiif.h.in: Added
routines to get the GUID for the system and for each MC.
* include/OpenIPMI/internal/ipmi_mc.h: ditto (added set routine)
* lib/mc.c: ditto
* lib/domain.c: ditto
* cmdlang/cmd_mc.c: ditto
* cmdlang/cmd_domain.c: ditto
* swig/OpenIPMI.i: ditto
* man/ipmi_cmdlang.7: ditto
* lib/ipmi_lan.c, lib/rakp.c: Fixed some broken stuff caused by
the last changes to the LAN code.
2005-01-21 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_lan.h: Added a function to payloads to get
the message tag for a message, and added a message tag parm to
starting an authentication session. This is primarily to allow
the LAN code to set the message tags and get them.
* lib/rakp.c: ditto
* lib/ipmi_lan.c: ditto
* lib/ipmi_lan.c: Modified the LAN code to allow the same socket
to be reused for multiple LAN connections. This should increase
scalability by a large amount.
* lanserv/lanserv_emu.c: Added an option to override the port
number.
2005-01-20 Corey Minyard <cminyard@mvista.com>
* configure.in: Allow the SNMP and OpenSSL libraries and compile
flags to be hard-coded on the configure command line.
* lib/domain.c: Fixed a problem with the type in a log.
* lib/lanparm.c: Fixed some problem handling the newly added
parms not being there.
2005-01-19 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_lanparm.h: Added the RMCP+ and VLAN
lanparms.
* lib/lanparm.c: ditto
* cmdlang/cmd_lanparm.c: ditto
* swig/perl/test_lanparm: ditto
* include/OpenIPMI/lanserv.h: ditto
* lanserv/lanserv_ipmi.c: ditto
* lanserv/lanserv_ipmi.c: Fix a bug where the dummy session wasn't
being zeroed when handling temporary session messages.
* lib/ipmi_lan.c: Use the right size when comparing the bmc_key in
the options. Also remove some debugging cruft.
2005-01-17 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_mc.h, include/OpenIPMI/internal/ipmi_mc.h:
Moved ipmi_mc_get_address, ipmi_mc_get_channel, and
ipmi_mc_get_ipmi_address from the private to the public
interfaces.
* lib/sel.c: Added a comment on why the SEL fetch is aborted after
so many reservation losses in the fetch.
2005-01-14 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Fixed some race conditions between reuse of LAN
connections and destruction of LAN connections.
* include/OpenIPMI/ipmi_conn.h: Reworked the registering for event
handlers to use a locked list interface. Great reduction in code
size and increase in reliability.
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
* lib/domain.c: ditto
* sample/ipmicmd.c: ditto
* include/OpenIPMI/ipmiif.h.in: Added a domain option to not
activate the interfaces.
* include/OpenIPMI/internal/ipmi_domain.c: ditto
* lib/domain.c: ditto
* lib/ipmi.c: ditto
2005-01-13 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h, lib/entity.c: Undeprecated the
hot-swap requester and indicator command, since HPI provides them.
I still think it's a bad idea to use them, though.
* include/OpenIPMI/ipmi_mc.h, include/OpenIPMI/internal/ipmi_mc.h:
Moved the ipmi_mc_del_event() function to the public interface.
* lib/sel.c: Clear the SEL if the SEL is empty and the overflow
flag is set. This appears the clear the overflow flag (at least
on some systems) and is safe to do.
* lib/sel.c: Fixed a bug where if the reservation was lost
fetching a SEL, it would not fetch anything from the SEL until a
new event was added.
* lib/ipmi_lan.c: Modified the list of LAN addresses to be two
hash tables, one indexed by connection and one indexed by IP
address (all IP addresses go in).
* include/OpenIPMI/ipmi_conn.h: Changed the connection and IPMB
reporting to use an add/remove instead of a set for the handler.
* lib/ipmi_smi.c: ditto
* lib/ipmi_lan.c: ditto
* lib/domain.c: ditto
* lib/oem_motorola_mxp_intf.c, lib/ipmi.c: Removed old MXP
interface support (it shouldn't be needed any more and maintenance
was getting to be a pain).
* lib/ipmi_lan.c: Added connection reuse. If a user makes a
connection to a system and the same connection already exists
(same parms) then it will reuse the old connection.
* lib/entity.c: Found a problem with disconnect/reconnect; it was
claiming a lock recursively in once case.
2005-01-12 Corey Minyard <cminyard@mvista.com>
* configure.in: Add support for openssl.
* cmdlang/Makefile.am: ditto
* cmdlang/Makefile.am: ditto
* lib/Makefile.am: ditto
* sample/Makefile.am: ditto
* cmdlang/cmd_domain.c: Added support for the new RMCP+ LAN parms.
* doc/IPMI.ltx: Minor cleanups.
* include/OpenIPMI/ipmi_addr.h: Added a concept of an RMCP+
address. This allows payloads to be routed using the normal
addressing mechanisms.
* include/OpenIPMI/ipmi_auth.h: Added RMCP+ auth and expanded the
user password to 20 bytes.
* include/OpenIPMI/ipmi_conn.h: Modified ipmi_msgi_t so that it
can take external data as well as the internal data and knows how
to free it.
* lib/domain.c: ditto
* lib/ipmi.c: ditto
* lib/ipmi_lan.c: ditto
* lib/oem_atca_conn.c: ditto
* lib/oem_force_conn.c: ditto
* lib/oem_motorola_mxp.c: ditto
* lib/oem_motorola_mxp_intf.c: ditto
* sample/ipmicmd.c: ditto
* lib/strings.c: Adde RMCP+ auth strings.
* include/OpenIPMI/ipmi_conn.h: Added the concept of asynchronous
events so that payloads can report asyncronous data coming up.
* lib/ipmi_smi.c: ditto
* include/OpenIPMI/ipmi_conn.h, lib/conn.c: Added connection
attributes so that payloads have a place to store data.
* lib/ipmi_lan.c: Ditto
* lib/ipmi_smi.c: Ditto
* lib/oem_motorola_mxp_intf.c: Ditto
* include/OpenIPMI/ipmi_err.h: Added RMCP+ errors.
* include/OpenIPMI/ipmi_lan.h: Added support for RMCP+ payloads,
authentication, integrity, and confidentiality handling. This
includes new options for lan connection and the ability to
register the various algorithms and payload types.
* include/OpenIPMI/md5.h, utils/md5.c: Added a way to handle
multiple-length passwords with MD5.
* lib/ipmi_payload.c: Moved IPMI LAN data formatting into a
separate file.
* lib/Makefile.am, lib/ipmi.c: Added support for RMCP+ algorithms.
* lib/aes_cbc.c: ditto
* lib/hmac.c: ditto
* lib/md5.c: ditto
* lib/rakp.c: ditto
* lib/ipmi.c: Add support for the new RMCP+ data options.
* lib/ipmi_lan.c: Added RMCP+ support.
* include/OpenIPMI/lanserv.h: Added support for RMCP+ data.
* lanserv/Makefile.am: Added support for OpenSSL.
* lanserv/lanserv.c: Fixed the random data routines to work right.
* lanserv/lanserv_emu.c: ditto.
* lanserv/lanserv_config.c: Added support for some RMCP+ data.
* lanserv/lanserv_ipmi.c: Added support for RMCP+.
* man/ipmi_cmdlang.7: Added info about the RMCP+ LAN parms.
* configure.in: Update to version 2.0.0.
2005-01-11 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/internal/Makefile.am: Fixed so it installs in
the right place.
2005-01-04 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Added a warning log if the FRU fetch request
failed.
* include/OpenIPMI/ipmi_users.h, lib/mc.c, swig/OpenIPMI.i: Added
the ability to get the other information from the get user access
command.
* swig/perl/test_chan: Adjusted for the previous changes.
* cmdlang/cmd_mc.c, man/ipmi_cmdlang.7: ditto
* doc/IPMI.ltx: Added info for user and channel management.
2005-01-03 Corey Minyard <cminyard@mvista.com>
* Include/OpenIPMI/ipmi_pet.h, lib/pet.c: Added a refcount to the
PET external interface and fixed some problems with PET handling.
* swig/OpenIPMI.i: Added PET support.
* swig/perl/test_pet, swig/perl/Makefile.am: Added PET perl tests.
* glib/glib_os_hnd.c: Fixed the perform_one_op function to
time (sort of) properly.
* swig/perl/test_chan: Fix some problems with the tests.
* lanserv/lanserv_ipmi.c: Fix bugs handling channel privilege
limits.
* swig/perl/test_pef, swig/perl/test_lanparm: Minor perl cleanups.
* ui/ui.c: Fixed a parm messed up by an interface change.
* lib/entity.c: Fixed handling of FRU info from devices, we need
to look at the pending as well as the current info to know if an
entity already has a FRU device.
* configure.in: Move to version 1.4.7.
2005-01-01 Corey Minyard <cminyard@mvista.com>
* swig/perl/test_pef: Add PEF tests.
* lanserv/lanserv_ipmi.c: Fixed a few problems with PEF handling.
* lib/pef.c: Fixed some problems with PEF handling.
2004-12-31 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/lanserv.h, lanserv/lanserv_ipmi.c: Added PEF
config support.
* cmdlang/cmd_pef.c: Fixed some printing problems.
* lib/pef.c: Fixed a problem getting the last alert string and the
guid data and a few data format problems.
2004-12-30 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_strings.h: Converted return strings to
be const because the user can't change them.
* include/OpenIPMI/ipmiif.h.in: ditto
* include/OpenIPMI/ipmi_auth.h: ditto
* include/OpenIPMI/ipmi_bits.h: ditto
* include/OpenIPMI/ipmi_cmdlang.h: ditto
* include/OpenIPMI/internal/ipmi_sensor.h: ditto
* cmdlang/cmd_sensor.c: ditto
* cmdlang/cmdlang.c: ditto
* cmdlang/ipmish.c: ditto
* lib/control.c: ditto
* lib/entity.c: ditto
* lib/oem_motorola_mxp.c: ditto
* lib/sensor.c: ditto
* lib/strings.c: ditto
* sample/sample3.c: ditto
* swig/OpenIPMI.i: ditto
* include/OpenIPMI/ipmi_lanparm.h, lib/lanparm.c: Added a way to
get a config parm type from the parm number and added refcount
stuff for perl.
* swig/OpenIPMI.i: Finished adding lanparm stuff.
* lib/lanparm.c: Changes to the last alert destintation can
be fetched.
* swig/perl/test_lanparm: Added lanparm tests.
* include/OpenIPMI/ipmi_pef.h, lib/pef.c: Added a way to get data
by parm number and added refcount stuff for perl.
* swig/OpenIPMI.i: Added support for PEF.
2004-12-29 Corey Minyard <cminyard@mvista.com>
* ui/ui.c: Added printing of if the sensor/control should be
ignored if the entity is not present.
* lib/control.c: Default nonstandard controls to be ignored if the
entity is not present.
* lib/sensor.c: Default nonstandard sensors to be ignored if the
entity is not present.
* lib/entity.c: Use controls for presence detection, and clean
up the presence code to properly handle presence sensor removal.
Also modify the presence detection to be 100% compliant with
the spec, including messaging FRU devices as the last step.
* lib/chassis.c: Remove the dummy presence sensor since the
controls can be used for presence now.
* lib/oem_motorola_mxp.c, lib/oem_atca.c: Cleanup up all the
ignore if no entity setup for all the sensors and controls.
* lib/fru.c: Fix a problem with handling certain invalid
FRUs.
* lib/entity.c: Use the proper function to destroy the
entity info.
* swig/OpenIPMI.i: Fix a compile problem.
2004-12-28 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/lanparm.h, lanparm/lanparm_ipmi.c: Added
support for lanparm configuration parameters.
* lib/entity.c: Fixed presence detection to not use sensors for
entity presence that are there if the entity is not present.
* swig/perl/test_atca_entities: Added a little test script for
ATCA entities.
* swig/OpenIPMI.i: Added some missing deref callbacks.
* swig/OpenIPMI.i: Added support for lanparm configuration.
2004-12-26 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Invert the values from get/set channel access so they
are logical for the user.
* swig/OpenIPMI.i: Added user/channel access.
* swig/perl/test_fru: Fixed a timing problem.
* swig/perl/test_chan, swig/perl/Makefile.am: Added channel/user
testing.
* swig/perl/OpenIPMI_perl.c: Added a way to pass an array of
objects.
* lanserv/lanserv_ipmi.c: Fixed some minor bugs in channel
handling.
* include/OpenIPMI/ipmi_lanparm.h, lib/lanparm.c: Added an
interface for getting general data values by index/name.
2004-12-25 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Fixed some minor bugs in user handling.
* lib/cmd_mc.c: Fixed a missing put and some error strings.
* include/OpenIPMI/lanserv.h, lanserv/lanserv_ipmi.c: Added
support for all the user bits in the set and get user access
commands.
2004-12-23 Corey Minyard <cminyard@mvista.com>
* sample/ipmicmd.c: Removed the ipmi_log() func, it was junk
and caused problems.
* lib/mc.c, include/OpenIPMI/ipmi_user.h, cmdlang/cmd_mc.c: Fixed
some problems with the user stuff. Added a way to set the
enable/disable of a user (done through the set password command,
for some strange reason).
* lib/sensor.c: Fix a missing sensor in a callback.
2004-12-22 Corey Minyard <cminyard@mvista.com>
* lib/mc.c, include/OpenIPMI/ipmi_mc.h, include/OpenIPMI/ipmi_user.h:
Added handling for users and channel information.
* lib/cmd_mc.c: converted over to the standard user and channel
handling.
2004-12-17 Corey Minyard <cminyard@mvista.com>
* lib/lanparm.c, lib/pef.c, lib/pet.c: Fixed some locking and
refcount problems found with testing.
2004-12-16 Corey Minyard <cminyard@mvista.com>
* lib/fru.c: Fixed a problem with FRU area creation, where the
versions where not set properly.
* lib/ipmi.c: Fixed some last bugs dealing with IPMI strings.
* swig/OpenIPMI.i: Added handling for properly deleting FRU
information when we are done with it.
* lib/fru.c: Fixed some race conditions with the new list stuff
and FRU destruction.
* include/OpenIPMI/ipmi_fru.h, lib/fru.c: Added refcount functions
for keeping track of FRUs.
* swig/perl/test_fru: Finished up FRU tests.
* include/OpenIPMI/ipmi_fru.h, lib/fru.c: Added a FRU alloc
function that has the domain in the callback. Converted the
domain pointer in the FRU to a domain id and modified the
function to get the FRU's domain to return the domain id.
* include/OpenIPMI/internal/ipmi_util.h, lib/fru.c: Modified the
notrack FRU allocater to take the domain pointer
* lib/entity.c: ditto
* lib/domain.c: ditto
* swig/OpenIPMI.i: Fixed the FRU functions to call the FRU
destructor when the FRU was dereffed. Modified the FRU
alloc and write functions to also supply the domain as the
first parameter. Added debugging setup functions.
* swig/perl/test_fru, swig/perl/sample: Adjusted for the
previous changes.
* lib/domain.c: Pass in domain during shutdown clearing of
messages.
* lib/mc.c: Fixed some problems where the refetch callbacks
were not always being called in certain error situations.
* lib/domain.c, include/OpenIPMI/internal/ipmi_domain.c:
Modified the domain attributes to be refcount based, since
they could theoretically go away while still in use.
* lib/lanparm.c: ditto
* lib/pef.c: ditto
* lib/pet.c: ditto
* lib/fru.c: ditto
2004-12-15 Corey Minyard <cminyard@mvista.com>
* lib/fru.c, include/OpenIPMI/ipmi_fru.c: Fixe the name of the set
multi-record function function.
* cmdlang/cmd_fru.c: ditto
* swig/OpenIPMI.i: Add functions to set FRU multi-records.
Properly handle undefined values in the other FRU set functions.
* include/OpenIPMI/internal/ipmi_utils.h, lib/fru.c: Added
internal FRU destroy functions to keep users from destroying
internal FRUs.
* lib/entity.c: ditto
* lib/oem_atca.c: ditto
* swig/perl/test_fru, swig/perl/Lanserv.pm: More work on tests.
* lib/ipmi.c, lib/fru.c: Fixed some more string handling problems
that the new testing found.
* lib/domain.c: Rework error return values to make them a
single consistent set.
* lib/fru.c: ditto
* lib/ipmi.c: ditto
* lib/ipmi_smi.c: ditto
* lib/lanparm.c: ditto
* lib/mc.c: ditto
* lib/oem_atca.c: ditto
* lib/oem_motorola_mxp.c: ditto
* lib/pef.c: ditto
* lib/sdr.c: ditto
* lib/sel.c: ditto
* lib/sensor.c: ditto
* lib/.c: ditto
* swig/OpenIPMI.i: More work to fix some bugs and add the
error constants used by OpenIPMI.
2004-12-14 Corey Minyard <cminyard@mvista.com>
* lib/fru.c: Fixed some bugs with FRU handling.
* include/OpenIPMI/internal/ipmi_int.h, lib/ipmi.c: FRU data
needed some more info for decoding, handle that.
* lib/fru.c: ditto
* lib/entity.c: ditto
* lib/sensor.c: ditto
* lib/oem_atca.c: ditto
* include/OpenIPMI/ipmi_fru.h, lib/fru.c: Added functions to
convert between names and FRU field indexes.
* lanserv/lanserv_emu.c: Added a noecho command to turn off echo.
* lib/ipmi_smi.c: Return the entry when registering commands
to watch.
* swig/OpenIPMI.i: Added support for getting multirecords from
the FRU. Fixed some other FRU-related problems.
* swig/perl/test_fru, swig/perl/Lanserv.pm, swig/perl/Makefile.am:
Started working on some tests.
2004-12-13 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/internal/locked_list.h, utils/locked_list.h:
Added the ability for the user to use their own lock with locked
lists. This avoids multiple locking in areas that already have
locks.
* lib/entity.c: Converted over the entity, child, parent, sensor,
and control lists to use the main domain lock as their lock, since
that lock was always claimed anyway.
* lib/lanparm.c: Fixed a race condition between lanparm iteration
and destruction using the new locked list stuff.
* lib/pet.c: ditto
* lib/pef.c: ditto
* lib/fru.c: ditto
* lib/entity.c: Fixed some minor locking problems the previous
changed exposed.
* swig/OpenIPMI.i: Add the FRU writing support to the Perl code.
* doc/IPMI.ltx: Added documenation for FRU writing.
* swig/perl/sample: Clean up Perl warnings.
* include/OpenIPMI/internal/ipmi_entity.c, lib/entity.c: Added a
way for code to force entities to stay around.
* lib/oem_atca.c: Force the shelf entity to stay around even if
there are no sub-entities.
* cmdlang/fru_cmd.c: Added multi-record setting.
* lib/fru.c: Fixed problems writing multi-records.
2004-12-10 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/internal/ipmi_int.h, lib/ipmi.c: Fixes
to the IPMI string encoding/decoding routines.
* lib/fru.c: ditto
* lib/entity.c: ditto
* lib/oem_atca.c: ditto
* lib/sensor.c: ditto
* include/OpenIPMI/ipmi_fru.h, lib/fru.c: Added the capability
to modify FRU info and write FRU data back to the FRU.
* lib/fru.c: Added tracking of FRUs in the system.
* include/OpenIPMI/internal/ipmi_utils.c, lib/fru.c: Added an
interface for FRUs so internal stuff can allocate untracked FRU
information. This way, user's can't delete internal FRU data.
* lib/entity.c: ditto
* lib/oem_atca.c: ditto
* lib/sensor.c: ditto
* cmdlang/cmd_fru.c, cmdlang/cmdlang.c, cmdlang/Makefile: Added
FRU handling routines:
* include/OpenIPMI/ipmi_cmdlang.h: ditto
* man/ipmi_cmdlang.7: ditto
* cmdlang/cmd_domain.c: Don't deleted FRUs after they are fetched.
* cmdlang/ipmish.c: Fix unicode handling.
* cmdlang/out_fru.c: Minor FRU data handling updates.
* lib/domain.c: Minor fixes for attribute handling, make sure
things are cleared out correctly.
2004-12-07 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, lib/mc.c, lib/domain.c, lib/ipmi.c:
Added an option to not set the SEL time.
* include/OpenIPMI/ipmi_mc.h, include/OpenIPMI/internal/ipmi_mc.h:
Moved the ipmi_mc_set_current_sel_time() from the internal to
the user-visible interface.
* cmd_entity.c, man/ipmi_cmdlang.7: Added the id and entity id
string to the entity info.
* cmd_mc.c: Added a way to set the SEL time.
* include/OpenIPMI/ipmiif.h.in: Added support for a managed
hot-swap call so the user can know if the entities hot-swap
states can be managed.
* include/OpenIPMI/internal/ipmi_entity.h: ditto
* lib/entity.c: ditto
* lib/oem_atca.c: ditto
* cmdlang/cmd_entity.c: ditto
* man/ipmi_cmdlang.7: ditto
2004-12-03 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Fixed a problem where the startup SEL time was not set
if the target time was ahead of the time on the system. This
would cause old events in the SEL to be reported as new events.
* lib/oem_atca.c: Reworked the fixups for broken entity ids to
be more general.
2004-12-02 Corey Minyard <cminyard@mvista.com>
* lib/ipmi.c: fixed a problem with ipmi_parse_args mishandling
userids.
* include/OpenIPMI/*.h: Added extern "C" to all the necessary
include files.
2004-12-01 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Ignore sensors for presence if they use the
generic reading type codes.
* lib/chassis.c: Added a dummy presence sensor for the chassis
entity so it will be reported as present.
2004-11-27 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_lan.h, lib/ipmi_lan.c: Added a new, more
flexible interface for configuring a LAN connection. Hopefully
this is the last one we have to do here, this would be able
to handle anything (especially RMCP+).
* lib/ipmi.c: Adjusted to use the new LAN connection method.
2004-11-18 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_smi.c: Fix the unregister ioctl for the socket interface.
* configure.in: Fix comments on perlinstall option.
* configure.in: Allow perl, swig, and glib options to be overriden
to support cross-compilation.
* configure.in: Move to version 1.4.6.
2004-11-16 Corey Minyard <cminyard@mvista.com>
* cmdlang/cmd_mc.c: Added support for the user information
viewing and modification.
* man/ipmi_cmdlang.7: Added information about the channel
and user commands just added.
2004-11-15 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_auth.h, lib/ipmi_lan.c: Added the
ability to have a "default" auth type that will pick the
best authentication type available.
* include/OpenIPMI/ipmi_auth.h, lib/strings.c: Added strings
for the auth and privilege values.
* lib/ipmi.c: Added a new parameter parsing function that should
be easier to use.
* cmdlang/cmd_domain.c: Added support for a "domain open"
command using the new parameter parsing.
* cmdlang/cmd_mc.c: Added support for the channel info
and access control commands.
* cmdlang/cmd_mc.c: Fixed a bug where the MC was not
printed when dumping SEL info.
* include/OpenIPMI/ipmi_err.h: Fixed a bug in the IPMI_OS_ERR_VAL
macro.
* lib/ipmi_lan.c: Fixed a bug where a timer might be freed
twice on an error.
2004-11-10 Corey Minyard <cminyard@mvista.com>
* cmdlang/ipmish.c: Fixes a problem with the --execute command
line option where only the first and last command would be
executed.
2004-11-09 Corey Minyard <cminyard@mvista.com>
* OpenIPMI.spec.in: Changes to compile on Redhat.
* configure.in: Move to version 1.4.5.
2004-11-09 Andrew Cress <andrew.r.cress@intel.com>
* lib/oem_intel.c: Minor fixups for the alarm control.
2004-11-09 Kevin Gao <kevin.gao@intel.com>
* sample/ipmicmd.c: Don't segv when given bad parms.
2004-11-05 Corey Minyard <cminyard@mvista.com>
* configure.in: Another fix to the perl installation dir.
2004-11-04 Corey Minyard <cminyard@mvista.com>
* configure.in: Fix perlinstalldir to work.
* doc/IPMI.ltx: Added some docs on the Perl interface.
* lib/ipmi.c: Fixed optional SEL handling.
* lib/ipmi_smi.c: Added missing close_connection_domain callback
initialization.
* swig/OpenIPMI.i: Fixed initialization to work without glib.
2004-11-01 Corey Minyard <cminyard@mvista.com>
* FAQ: Added some useful information
* OpenIPMI.spec.in: Cleaned up the spec file andmake it correct,
added the new stuff.
* README: Added Perl info.
* configure.in, swig/perl/Makefile.am: Improved the Perl detection
support, added handling for Perl module installation.
* cmdlang/out_fru.c: Fix compiler warning.
* lib/fru.c: Modified initialization to work with older C
compilers.
* lib/mc.c, lib/entity.c: Fixed deadlocks.
* swig/Makefile.am, swig/OpenIPMI.i: Minor build cleanups.
* swig/OpenIPMI.i: Fixed some problems with handling FRU
data.
* swig/perl/sample: Fixed some problems with events.
* configure.in: Move to version 1.4.4
2004-10-29 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_conn.h: Added another connection close
handler that has a callback. This way, the domain code can know
when the connection is really closed. There were race conditions
at shutdowns that this fixes.
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
* lib/oem_motorola_mxp_intf.c: ditto
* lib/domain.c: ditto
* lib/control.c, lib/sensor.c: Fixed some shutdown ordering
problems.
* lib/oem_atca.c: Don't clean up the MC if it has already been
destroyed.
* swig/OpenIPMI.i, swig/perl/OpenIPMI.h, swig/perl/OpenIPMI_perl.c:
Added a perl interface for OpenIPMI.
* swig/perl/Makefile: ditto
* swig/perl/sample: ditto
* swig/perl/ipmi_powerctl: ditto
2004-10-27 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Fixed race conditions handling sequence numbers
and connection handling.
* include/OpenIPMI/ipmiif.h.in: Added a comment saying that a lock
is held in connection change delivery.
* lib/domain.c: Added a comment saying that locks are not
necessary to sequence event delivery.
* cmdlang/cmd_domain.c: Fix docs on "domain new".
* lib/fru.c, include/OpenIPMI/ipmi_fru.h: Added an interface to
make it possible to get FRU data in a more generic way.
* cmdlang/out_fru.c, man/ipmi_cmdlang.7: Converted over to the new
generic FRU interface and changed the output format some.
2004-10-26 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, lib/sensor.c: Renamed
ipmi_discrete_event_readable to ipmi_sensor_discrete_event_readable.
* lib/entity.c: ditto
* cmdlang/cmd_sensor.c: ditto
2004-10-24 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, lib/entity.c: Deprectated the
ability to directly handle the hot-swap indicators and requesters.
In hindsight, this seems like a bad idea. This should be under
the control of the hot-swap state machine.
2004-10-22 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Fix problems with connection failure during
startup of the connection. This fixes problems with the
connections getting stuck and never coming up.
* unix/posix_os_hnd.c: Fixed a problem with the return value of
getting the random data.
* unix/posix_thread_os_hnd.c: ditto
* glib/glib_os_hnd.c: ditto
* cmdlang/os_debug.c: ditto
* ui/ui_os.c: ditto
* lib/ipmi_lan.c: Only report the connection whose state changed
on a connection up failure/success.
* cmdlang/ipmi_sh.c, man/ipmish.1: Added the ability to turn off
the redisplay of the command line on incoming events.
2004-10-20 Corey Minyard <cminyard@mvista.com>
* Makefile.am: Added glib OS handler.
* configure.in: ditto
* glib/Makefile.am: ditto
* glib/glib_os_hnd.c: ditto
* cmdlang/cmd_domain.c, include/OpenIPMI/ipmi_cmdlang.h: Remove
selector stuff from cmdlang.
* cmdlang/ipmish.c: ditto
* cmdlang/os_debug.c: Removed rwlocks from OpenIPMI.
* include/OpenIPMI/ipmi_conn.h: ditto
* include/OpenIPMI/os_handler.h: ditto
* include/OpenIPMI/internal/ipmi_int.h: ditto
* lib/conn.c: ditto
* lib/ipmi.c: ditto
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
* lib/oem_motorola_mxp_intf.c: ditto
* lib/sdr.c: ditto
* unix/posix_thread_os_hnd.c: ditto
* include/OpenIPMI/ipmi_glib.h: ditto
* ui/ui.c: Add internal MC include file.
* cmdlang/Makefile.am: Work on adding glib support.
* glib/Makefile.am: ditto
* include/OpenIPMI/Makefile.am: ditto
* cmdlang/ipmish.c: ditto
* cmdlang/os_debug.c: Rework locking to not allow recursive locks,
and fix tons of problems with the locking.
* glib/glib_os_hnd.c: ditto
* lib/domain.c: ditto
* lib/entity.c: ditto
* lib/lanparm.c: ditto
* lib/mc.c: ditto
* lib/pef.c: ditto
* lib/sdr.c: ditto
* lib/sel.c: ditto
* lib/sensor.c: ditto
2004-10-19 Corey Minyard <cminyard@mvista.com>
* cmdlang/cmd_conn.c: Renamed IPMI_MAX_DOMAIN_NAME_LEN to
IPMI_DOMAIN_NAME LEN to make it consistent with the other defines.
* cmdlang/cmd_domain.c: ditto
* cmdlang/cmd_entity.c: ditto
* cmdlang/cmd_lanparm.c: ditto
* cmdlang/cmd_mc.c: ditto
* cmdlang/cmd_pef.c: ditto
* cmdlang/cmd_pet.c: ditto
* cmdlang/cmd_sel.c: ditto
* cmdlang/cmdlang.c: ditto
* include/OpenIPMI/ipmi_mc.h: ditto
* include/OpenIPMI/ipmiif.h.in: ditto
* lib/domain.c: ditto
* lib/fru.c: ditto
* lib/ipmi.c: ditto
* lib/mc.c: ditto
* lib/sel.c: ditto
* ui/ui.c: ditto
2004-10-18 Corey Minyard <cminyard@mvista.com>
* Practically_everything: More work on the include files, moved
the internal/OEM include files to an "internal" directory, more
restructure to make thing easier to use and make more clean
definitions of what is and is not supported.
This means that if you were naughty and used internal interfaces,
you will have to change your code.
* cmdlang/cmd_mc.c, cmdlang/cmd_domain.c, man/ipmi_cmdlang.7:
Added beter support for the SELs.
* lib/mc.c: Don't set the SEL time if that would move the time
backwards.
2004-10-14 Corey Minyard <cminyard@mvista.com>
* Practically_everything: A restructure of the include files
so the ipmiif.h is really the only thing you need to include
to do pretty much everything (except for the helper things like
pefs, lanparm, pets, etc.). There should no longer be any need
for external user programs to use ipmi_domain.h, ipmi_mc.h,
or things like that.
2004-10-14 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, lib/strings.c, lib/sensor.c: Added
sensor direction from the 2.0 spec.
* cmdlang/cmd_sensor.c, man/ipmi_cmdlang.7: Added direction
output.
* include/OpenIPMI/ipmi_bits.h, lib/strings.c: Added some more
entity IDs that are new in the 2.0 spec.
* lib/sensor.c: Added type 3 (event only) sensor support.
* include/OpenIPMI/ipmi_bits.h, lib/strings.c, lanserv/priv_table.c:
Added commands from the 2.0 spec.
* include/OpenIPMI/ipmi_bits.h, lib/strings.c: The conversion code
for commands, netfns, and completion codes was using static
buffers. Convert to using passed-in buffers so it is reentrant.
* include/OpenIPMI/ipmi_err.h: ditto
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
2004-10-12 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Fixed some race conditions with entity creation
and deletion. The changes make sure that if an entity is deleted
and re-added at about the same time, the operations occur in the
right order.
* lib/entity.c: Modified the timers to handle destruction more
gracefully so the entity doesn't have to hang around until the
timers go off.
* lib/sensor.c: Report bad SDRs by record id, not the internal
OpenIPMI index.
* lib/sensor.c: Fix handling of duplicate SDR record detection
to take the MC into account, too.
2004-10-11 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_event.h, lib/event.c: Changed the type
for getting event data to an unsigned char.
* cmdlang/cmd_mc.c, man/ipmi_cmdlang.7: Added active handler to
know when MCs go active/inactive. Added if the MC is active to
the MC info.
* cmdlang/cmd_control.c: Fixed an output problem with the
control listing.
* cmdlang/cmdlang.c: Fixed error output when no object was
selected to work in all cases.
* cmdlang/ipmish.c: Added output for ipmish-specific commands.
* lib/oem_intel.c: Attach the alarm control to MC 0x20 and scan
address 0xc0 when certain events are received.
* cmdlang/cmd_lanparm.c: Fixed a problem with losing lanparm
configs.
* cmdlang/cmd_pef.c: Fixed a problem with losing pef configs.
* include/OpenIPMI/ipmi_conn.h: Added a con_type field to the
connection type for the connection code to use to identify itself.
Added a priv_level field so the privilege of the conneciton may be
reported.
* lib/ipmi_lan.c, lib/ipmi_smi.c: Added the new items to the
connection type.
* include/OpenIPMI/ipmi_domain.h, lib/domain.c: Added a way to
query the ports of a connection to see if they are up.
* cmdlang/cmd_conn.c, man/ipmi_cmdlang.7: Added port information
reporting and reporting of if the connection is up.
* lib/domain.c: Modified setting the "set event receiver" option
to depend on the privilege level, since it requires admin access
to run.
* include/OpenIPMI/ipmi_int.h: Added a "msg err" debugging flag to
print out when errors occur in messaging.
* cmdlang/ipmish.c, cmdlang/cmdlang.c, lib/ipmi_lan.c: Added
support for the msg err debugging flag.
2004-10-10 Corey Minyard <cminyard@mvista.com>
* man/ipmi_cmdlang.7: Finished this document.
* cmdlang/cmdlang.c: Renamed the three-character short form
thresholds to be two characters to make them consistant.
* configure.in: Move to version 1.4.3
2004-10-09 Corey Minyard <cminyard@mvista.com>
* OpenIPMIcmdlang.pc.in, Makefile.am: Added file for the new
cmdlang library.
* lib/strings.c, cmdlang/cmd_entity.c, cmd/cmdlang.c: Fixed some
minor formatting things.
* cmdlang/cmd_sensor.c: Added number output for sensor types,
event readings, and units.
* man/ipmi_cmdlang.7: Lots of work adding docs. More formatting
work still to do.
2004-10-08 Corey Minyard <cminyard@mvista.com>
* doc/IPMI.ltx: Documentation cleanup
* doc/OpenIPMI.texi: Removed old docs.
* doc/Makefile.am: Removed old docs and added generation of the
LaTeX documentation.
* sample/sample.c: Cut the length of a line so it came out nicely
on the docs.
* lib/domain.c: Cleaned up log output.
* lib/entity.c: ditto
* lib/ipmi.c: ditto
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
* cmdlang/*, include/OpenIPMI/ipmi_cmdlang.h: Added the new and
improved command language.
* lib/control.c: Removed lock check from ipmi_control_get_mc()
since it is needed to check the lock.
* lib/domain.c: Fixed a lock problem in the attributes.
* lib/entity.c: Make sure the MC is locked when iterating controls.
* lib/lanparm.c: Fixed a lock problem.
* lib/pef.c: Fixed a lock problem.
* lib/sensor.c: Zero the data used when fetching event enables.
* man/ipmish.1: Added man page.
* man/ipmi_cmdlang.7: Started man page.
2004-10-07 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Fixes some problems found by a static analysis
tool.
* lib/mc.c: ditto
* lib/entity.c: ditto
* lib/control.c: ditto
* lib/sensor.c: ditto
* lib/oem_atca.c: ditto
* lib/lanparm.c: ditto
* lib/pef.c: ditto
* lib/pet.c: ditto
* lib/ipmi_utils.c: ditto
* lib/sdr.c: ditto
* lib/oem_motorola_mxp.c: ditto
* lib/strings.c: ditto
* include/OpenIPMI/ipmi_pef.h, lib/pef.c: Added a consistent
presentation of the GUID.
* include/OpenIPMI/ipmi_bits.h, lib/strings.c: Added fatal
error and gram unit types.
* lib/sensor.c: Fixed sensor reporting order so locks are
properly held.
* lib/oem_atca.c: Fixed some problems with holding the proper
refcounts on object during callbacks.
* lib/oem_intel.c: Fixed some problems with holding the proper
refcounts on object during callbacks.
* lib/entity.c: Fixed a race condition with the try count
for presence detection.
* lib/domain.c: Fixed race conditions dealing with callbacks.
* include/OpenIPMI/ipmi_sensor.h, lib/sensor.c: Added a way
to get a sensor's domain.
* include/OpenIPMI/ipmiif.h.in: Added support to the open domain
call for detecting when the domain has finished all initial
operations.
* include/OpenIPMI/ipmi_domain.h: ditto
* lib/domain.c: ditto
* lib/entity.c: ditto
* lib/mc.c: ditto
* ui/ui.c: Adjusted for the change to open domain.
* ui/basic_ui.c: ditto
* sample/sample.c: ditto
* sample/sample2.c: ditto
* sample/sample3.c: ditto
* include/OpenIPMI/ipmiif.h.in, lib/domain.c: Deprecated
ipmi_close_connection() and added ipmi_domain_close() in its
place.
* ui/ui.c: Adjusted for the change to ipmi_close_connection().
* sample/sample.c: ditto
* sample/sample2.c: ditto
* sample/sample3.c: ditto
2004-10-06 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_domain.h, lib/domain.c: Added an anonymous
attribute that allows external code to tie data into the domain
without the domain having direct knowledge of them.
* lib/pet.c: Converted the PET list to be per domain.
* include/OpenIPMI/ipmi_lanparm.h, lib/lanparm.c: Rework of the
lanparm code to keep track of the lanparms that have been
allocated, be able to list them, etc.
* include/OpenIPMI/ipmi_pef.h, lib/pef.c: Rework of the pef code
to keep track of the lanparms that have been allocated, be able to
list them, etc.
* lib/pef.c, lib/lanparm.c: Fix locking behaviour to work.
2004-10-05 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in: Renamed a bunch of the sensor
functions and types to make their names more consistent I hope
this is the last big rename effort for 1.4.
* include/OpenIPMI/ipmi_sensor.h: ditto
* lib/entity.c: ditto
* lib/oem_atca.c: ditto
* lib/oem_motorola_mxp.c: ditto
* lib/sensor.c: ditto
* sample/sample3.c: ditto
* ui/ui.c: ditto
* lanserv/emu.c, lanserv/emu.h, lanserv/emu_cmd.c: Fixed problems
with SEL handling.
* lib/mc.c, lib/sel.c, lib/event.c: Fixed some problem with
handling errors from SEL deletes.
* unix/posix_thread_os_hnd.c: Add a missing return.
2004-10-04 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_control.h, lib/control.c: Add the ability
to check the local control capability of an LED.
* include/OpenIPMI/ipmiif.h.in: ditto
* lib/oem_atca.c: ditto
* lib/control.c: Add missing ipmi_control_get_id_type() function.
* lib/oem_atca.c: Fixed color reporting to report black when
the on time is 0.
* lib/domain.c: Minor changes to domain startup reporting so
things come in the right order.
* lanserv/emu.c: Fixed local control support to use the right bit.
2004-10-02 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, include/OpenIPMI/ipmi_domain.h:
Added support for some option for enabling/disabling various
automatic scanning and fetching operations.
* lib/domain.c: ditto
* lib/mc.c: ditto
* lib/entity.c: ditto
2004-10-01 Corey Minyard <cminyard@mvista.com>
* lib/domain.c, include/OpenIPMI/ipmiif.h.in: Add support for a
global domain change handler to report addition and removal of
domains.
* lib/pet.c: Removed an extraneous mc put, cleaned up close
handling to be done in the proper order.
2004-09-25 Chetan Hiremath <chetan.hiremath@intel.com>
* lib/ipmi_smi.c: Use the proper address on received commands and
async events.
2004-09-23 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_pet.h, lib/pet.c: Modified the PETs to be
refcount based, use locked lists, and have all the information
about them available.
2004-09-17 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, lib/fru.c: Modified the FRU length
returned to include the NIL character for ASCII strings.
* include/OpenIPMI/ipmiif.h.in, lib/fru.c: Added a way to get the
domain from the fru type.
2004-09-13 Corey Minyard <cminyard@mvista.com>
* FAQ: Added some information about the driver.
2004-09-11 Corey Minyard <cminyard@mvista.com>
* lib/domain, include/OpenIPMI/ipmiif.h.in: Added options
to the ipmi_open_domain call to allow things to be done in
the future (like turn off certain functions, etc.).
* ui/ui.c, ui/basic_ui.c: Adjust for previous change
* sample/sample.c, sample/sample2.s, sample/sample3.c: ditto
2004-09-09 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Return the proper callback data for the sel_reread
function.
2004-09-08 Corey Minyard <cminyard@mvista.com>
* utils/ipmi_malloc.c, include/OpenIPMI/ipmi_malloc.h: Added
an ipmi_strndup() function.
2004-09-07 Corey Minyard <cminyard@mvista.com>
* lib/domain.c, include/OpenIPMI/ipmiif.h.in: Added a list of
domains and a way to iterate them.
* lib/domain.c, include/OpenIPMI/ipmiif.h.in: Reworked the
naming code to make thing a lot more sane and consistent.
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: ditto
* lib/entity.c: ditto
* lib/sensor.c: ditto
* lib/control.c: ditto
* sample/sample.c: Add domain name for above changes.
* sample/sample2.c: ditto
* sample/sample3.c: ditto
* ui/basic_ui.c, ui/ui.c: ditto
* lib/ipmi.c: Added a prototype for ipmi_malloc_init().
2004-09-02 Corey Minyard <cminyard@mvista.com>
* ui/ui.c: Print active information about MCs when reported.
* utils/selector.c, utils/heap.c, utils/test_heap.c, utils/Makefile.am:
Moved the selector code into the unix directory, where it really
belonged.
* unix/selector.c, unix/heap.c, unix/test_heap.c, unix/Makefile.am:
New location
* include/OpenIPMI/os_handler.h: Added memory allocation into
the os handlers. Lots of things had to change.
* utils/ipmi_mem_alloc.c: ditto.
* ui/os_hnd.c: ditto
* unix/posix_os_hnd.c: ditto
* unix/posix_thread_os_hnd.c: ditto
* lib/ipmi.c: Add mem alloc initialization
* unix/selector.c: Converted over to using "malloc" instead of
ipmi_mem_alloc() to avoid startup race conditions. This code is
now unix-specific, so that should be fine.
* unix/selector.c, include/OpenIPMI/ipmi_posix.h: Reworked the
selector code to directly use POSIX locks.
* unix/posix_os_hnd.c: ditto
* unix/posix_thread_os_hnd.c: ditto
* ui/ui.c: Reworked initialization because of the mem alloc
changes.
* ui/basic_ui.c, ui/Makefile.am: Have to link with
libOpenIPMIposix now to get the selector code.
* utils/ipmi_mem_alloc.c: Fixed a bug handling the head and
tail elements of the debug malloc list.
* sample/sample2.c, sample/sample3.c: Fixed a few small problems
in the examples.
* configure.in: Move to version 1.4.2
* lib/ipmi_lan.c: Fixed a problem where the wrong LUN was being
looked at in LAN reponses.
2004-09-01 Corey Minyard <cminyard@mvista.com>
* lib/chassis.c: Fixed a problem where the wrong error was being
passed to a callback.
* lib/mc.c: Cleaned up the logs.
* lib/sel.c: ditto
* lib/oem_force_conn.c: ditto
* lib/opq.c: Initialize the opq data.
* lib/oem_atca.c: Fixed problems due to the new refcount code.
Modify the address control numbers to just be assigned
sequentially; you cannot use the IPMB address since multiple
functions may be at the same IPMB.
* lib/control.c: Fix problems with not unlocking locks in
certain situations.
* lib/control.c: Add reporting of duplicate control numbers.
* lib/domain.c: Don't clear the active call list when
reporting updates.
* lib/domain.c: Remove a redundant set active for MCs.
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: Remove
_ipmi_mc_clear_active_call().
* lib/sensor.c: Fixed problems detecting duplicate sensor
numbers in an SDR array. The new code really works, verses
the old code which didn't work any more.
* lib/mc.c: Apply pending updated to devid data before installing
a new MC.
2004-08-23 Corey Minyard <cminyard@mvista.com>
* lib/oem_motorola_mxp.c: Fixed a problem with SDR support.
2004-08-20 Corey Minyard <cminyard@mvista.com>
* lib/oem_intel.c: Fixed some problems with the alarm panel,
modified to add the controls and entities at the right time and
to handle removal of the MC properly.
* lib/sensor.c, lib/control.c: Added an "add_pending" flag to
sensors and controls so that the sensor or control is not reported
until it has been "put" for the last time. This works like
entities and allows creators of non-standard controls and sensors
to report the entities when they want to report them.
* lib/entity.c: Make sure the entity add handler is called before
calling the sensor update handlers.
* lib/chassis.c: Reworked the getting and putting so the
controls are reported properly.
* doc/IPMI.ltx: Added docs for the Intel alarm panel.
2004-08-19 Andrew Cress <andrew.r.cress@intel.com>
* lib/oem_intel.c: Handle different bus ids for alarm panel.
2004-08-19 Corey Minyard <cminyard@mvista.com>
* doc/Makefile: Add new documentation. Note that this is LaTex
for now but will probably be switched to docbook.
* doc/IPMI.ltx: ditto
* doc/ipmi.bib: ditto
* BusSystem.dia: ditto
* ManagementController.dia: ditto
* SimpleHotSwap.dia: ditto
* ComplexHotSwap.dia: ditto
* MgmtIF.dia: ditto
* Thresh.dia: ditto
* Hyst.dia: ditto
* ServerSystem.dia: ditto
* configure.in: Move to version 1.4.1
2004-08-16 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h, include/OpenIPMI/ipmi_controls.c:
Renamed the "setting" part of a transition light to "value" to
avoid confusion with "setting" type lights.
* lib/control.c: ditto
* lib/oem_motorola_mxp.c: ditto
* lib/oem_test.c: ditto
2004-08-11 Erwan Velu <erwan@mandrakesoft.com>
* lanserv/lanserv_config.c: Print the line number of errors.
2004-08-10 Corey Minyard <cminyard@mvista.com>
* ui/ui.c: Added support for displaying the one-shot reset and
output devices.
2004-08-06 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c: Fixed some problems with handling event
masks.
* sample/sample3.c: Fixed some bugs so this works correctly.
* lib/entity.c: Fixed the relative entity strings to subtract
off 0x60 from the instance (per the spec).
* lib/oem_atca.c: Ignore the floating IPMB address (0x20) for ATCA
functions, since it's really not a physical device but a virtual
device.
* include/OpenIPMI/ipmiif.h, include/OpenIPMI/ipmi_sensor.h: Move
some user-needed functions into ipmiif.h and do some minor
cleanups.
* lib/entity.c, lib/control.c, lib/sensor.c: Don't allow
operations on destroyed objects.
2004-08-04 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, lib/sensor.c: Added a way
to tell if the threshold is returned by the sensor when the
value is read.
* include/OpenIPMI/ipmi_bits.h, include/OpenIPMI/ipmiif.h:
Made the various unit value into enums so it is easier to know
what returns what.
* lib/sensor.c: ditto
* lib/strings.c: ditto
2004-08-03 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, lib/sensor.c: Added more
consistent functions for checking if threshold and discrete
events are supported. Deprecated old functions.
* lib/entity.c: adjust for above change
* ui/ui.c: ditto
* sample/sample3.c, sample/Makefile.am: Added a new sample
file to show something about event settings.
2004-08-02 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in: Renamed some parameters to be more
clear, moved some things around that were in the wrong places.
* include/OpenIPMI/ipmi_sensor.h: ditto
* lib/entity.c: Added the processor bit presence sensor, since
there is a presence bit for processor sensors.
* lib/oem_atca.c: Fixed an error log.
2004-07-29 Corey Minyard <cminyard@mvista.com>
* lib/domain.c, include/OpenIPMI/domain.h: Added a way to fetch
the main SDRs from a domain.
2004-07-13 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_domain.h: Fixed a misnamed parm.
* Makefile.am, configure.in, OpenIPMI.spec.in: Added support
for building RPMs for OpenIPMI.
* bootstrap: Added a helper shell script for starting up a
raw CVS checkout.
* lib/entity.c: Fix a problem with entity presence detection,
entities were not being detected not-present in some cases
when they went from non-present to present.
2004-06-28 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Fixed a theoretical race condition in fetching
the system SELs.
2004-06-24 Corey Minyard <cminyard@mvista.com>
* sample/sample.c: Added event handling for sensors to the sample.
2004-06-23 Michael McMaster <Michael_McMaster@Xiotech.com>
* lib/mc.c: Initialize info->err in ipmi_mc_reread_sel().
2004-06-23 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/os_handler.h: Add some user functions for
performing operations like freeing hte handler, and waiting for
events to occur.
* include/OpenIPMI/ipmi_posix.h: Rework to use the standard
functions in the OS handler.
* unix/posix_os_hnd.c: ditto
* unix/posix_thread_os_hnd.c: ditto
* sample/sample.c: ditto
* sample/sample2.c: ditto
* lib/entity.c: Fixed a problem with always fetching FRU data.
2004-06-22 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca.c: Fix a race with deleting an MC.
2004-06-18 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h.in, include/OpenIPMI/ipmi_domain.h:
Added a ipmi_domain_get_type() function for determining the type
of domain. This is so things like ATCA domains can be detected.
* lib/domain.c: ditto
* lib/oem_motorola_mxp.c, lib/oem_atca.c: Added domain type
setting for MXP and ATCA.
* include/OpenIPMI/ipmiif.h.in, lib/strings.h: Added strings for
the domain type.
* lib/oem_atca.c: Add setting the entity id string into the entity
fixup callback.
2004-06-17 Philipp Matthias Hahn <pmhahn@titan.lahn.de>
* man/ipmi_ui.1, man/ipmicmd.1, man/ipmilan.8: Cleanups for the
man pages.
2004-06-17 Corey Minyard <cminyard@mvista.com>
* lib/domain.c, lib/mc.c: Don't check the OEM handlers if the MC
is in used, wait until the MC is no longer in use and apply the
pending data update and check OEM handlers then.
* lib/oem_atca.c: Added a control for getting the address
information of an ATCA FRU.
* lib/oem_atca.c: Added entity id strings for all ATCA entities
that OpenIPMI deals with.
* lib/entity.c: Defer reporting an entity add until the entity is
put, so that the entity can be modified by OEM handlers before
they are reported
2004-06-15 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Check for a null event in call_presence_handlers().
* unix/posix_os_hnd.c, unix/posix_thread_os_hnd.c: Fixed up some
problems with posix_vlog.
2004-05-21 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Add a callback for fetching FRU information even
if the FRU information is bad.
2004-05-14 Louis Zhuang <louis.zhuang@linux.intel.com>
* lib/oem_intel.c: Added support for the alarm panel on an Intel
server box.
2004-04-30 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_posix.c: Reworked the POSIX os handler to
make it easier to use and add helper code for handling threaded
wakeups.
* unix/posix_os_hnd: ditto
* unix/posix_thread_os_hnd: ditto
* sample/sample1.c: Reworked for the POSIX os handler changes.
* sample/sample2.c: Reworked for the POSIX os handler changes, and
made it multi-threaded.
* doc/OpenIPMI.texi: Reworked the docs on locking.
* lib/sel.c, include/OpenIPMI/ipmi_sel.c: Added a way to get the
number of entries and free bytes in the SEL.
* lib/mc.c, include/OpenIPMI/ipmi_mc.c: ditto
* lib/domain.c, lib/mc.c, lib/entities.c: More work on locking,
making sure locks are held in the proper places.
* lib/domain.c, lib/mc.c, include/OpenIPMI/ipmi_int.h: Rework the
locking on MCs so that the device id data and the active
indications are not changed until no one is using the MC.
* lib/entity.c: Rework the locking on entities so that the DLR
data does not change until no one is using the entity, and the
changed indications are not reported until the entity is not in
use. Presence is also change to work this way, but it may need
some more thinking.
2004-04-29 Corey Minyard <cminyard@mvista.com>
* everything: A massive rework of the internals. Basically,
locking was reworked completely. Now locks are *not* held in user
callbacks. Instead, items in callbacks are usecounted and will
not be destroyed until the usecount goes to zero. All the same
rules apply, there are just no locks held. This should avoid
problems with deadlocks.
* lib/domain.c, lib/entity.c: Worked on marking deprecated
functions using GCC-specific attributes.
* include/OpenIPMI/ipmi_types.h: ditto
* include/OpenIPMI/ipmi_entity.h: ditto
* include/OpenIPMI/ipmi_domain.h: ditto
* lib/sel.c: Fixed a bug in the sel get where the info allocated
can go away before the operation returns, but the info is used
after the operation returns.
* lib/sensor.c: Fix the hysteresis setting to send a message that
is the right size.
2004-04-15 Corey Minyard <cminyard@mvista.com>
* lib/oem_intel.c: More work on getting the various Intel servers
supported better.
* include/OpenIPMI/ipmiif.h.in: Modified the hot-swap state
machine slightly to support the ability to move to activation
requested state from inactive state.
* include/OpenIPMI/ipmi_entity.h, lib/entity.c: Added the calls
for ipmi_entity_set_activation_requested() to the hot-swap
variables. The normal state machine will not support it.
* lib/oem_atca.c: Added support for setting the FRU activation
policy with ipmi_entity_set_activation_requested().
* configure.in: Move to version 1.3.5
* include/OpenIPMI/ipmi_mc.h, lib/mc.c: Added callbacks for
knowing when the MC has finished reading its SDRs and reading the
SEL for the first time.
2004-04-14 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Scan MCs from MCDLRs even if the information is
not used for anything else.
* doc/OpenIPMI.texi: Add information about callbacks.
* lib/oem_intel.c, lib/ipmi.c, lib/Makefile.am: Added an Intel
server-specific file for handling special things about Intel's
servers.
* configure.in: Move to version 1.3.4.
2004-04-13 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Prefer to keep the MCDLR information for an entity
that has FRU information, and don't try any FRU detection work if
the MCDLR has FRU turned off.
* lib/oem_atca.c: Turn off setting the event reciever for the ATCA
chassis (for now), since it seems to cause all kinds of bad things
to happen.
* lib/entity.c, lib/sensor.c: Some minor changes to entity
presence detection.
2004-04-12 Corey Minyard <cminyard@mvista.com>
* lib/control.c, lib/sensor.c, lib/entity.c: Reworked the internal
naming of these to make them consistent.
* lib/domain.c: Fixed a nasty bug about MC deletion, basically
don't delete MCs from the domain list while processing, because
they can be the "next" item in the list and corrupt the list
traversal. Add a delayed delete operation.
* lib/domain.c: Do the OEM startup check after fetching the MC
information for the connection.
* lib/oem_atca.c: Fix a bunch of problems, add hacks for broken
hardware.
* lib/sensor.c: Destroy the handler list of a sensor on a
duplicate sensor entry.
* include/OpenIPMI/ipmi_conn.h: Added hacks to some of the
interfaces to support wierd things.
* lib/domain.c: ditto
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
* lib/oem_atca.c: ditto
* lib/oem_force_conn.c: ditto
* lib/oem_motorola_mxp.c: ditto
* lib/oem_motorola_mxp_intf.c: ditto
* lib/domain.c: Added sending message straight to an interface if
it matches the address of an interface.
* lib/ipmi_lan.c: Added support for a wierd hack where the first
IPMI address in a LAN message is 0x20, and the other one is the
internal address.
* lib/oem_atca_conn.c, lib/oem_atca.c: Added some hacks for the
current bugs in the Intel ATCA box.
* lib/oem_atca.c: Reworked the handling of MCs and entity addition
to happen after the user is informed of the domain.
* include/OpenIPMI/ipmi_domain.h, lib/domain.c: Added a way for OEM
code to call the MC scan done handler.
* lib/oem_atca.c: Fixed some SEL handling and report MC scan done
when it is done.
* lib/oem_atca.c: Added hacks for broken SDRs.
* configure.in: Move to version 1.3.3.
2004-04-09 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c, lanserv/emu.h, lanserv/emu_cmd.c: Added
capabilities to disable, enable, and remove MCs, also added a
sleep command.
* lanserv/lanserv_emu.c: Added support for the sleep command.
2004-04-08 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_smi.c, lib/ipmi_lan.c, lib/domain.c: Remove the broken
broadcast handling from the domain code and put it into the
lower-level code, so the lower level code knows how to time it
better.
* lib/domain.c: Add a scan of IPMB 0x20 as the first thing.
* lib/domain.c: Destroy locks last in a domain.
* lib/mc.c, lib/entity.c, include/OpenIPMI/ipmi_mc.h: Rework the
active_handlers dependency between entitys and MCs by using a
refcount instead of seeing if something is in the active handlers
list. Using the list didn't work because external (user) entities
in the list would keep the MC from being destroyed.
* lib/oem_atca.c: Added a check_hot_swap_state handler. Fixed
some problems with getting the hot-swap state.
* lib/domain.c, include/OpenIPMI/ipmi_domain.h: Added a callback
to be called when a domain starts shutting down.
* lanserv/atca.emu: Added a new board.
* lanserv/emu.c: Fixed problems with event timestamps.
* lib/domain.c, lib/entity.c, lib/mc.c, lib/oem_atca.c: Fixed a
host of problems with shutdown order. It still needs some work
because of the backwards dependency from entities to MCs created
by the requirement for active MCs to contribute to entity
presence.
* lib/oem_atca.c: Create the entities for the items in the shelf
address table at startup and keep them around.
2004-04-07 Corey Minyard <cminyard@mvista.com>
* ui/ui.c: Added an MC active callback to the UI.
* configure.in: Move to version 1.3.2.
* lib/oem_motorola_mxp.c: Added a slot GA sensor to the AMC.
2004-04-02 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c, lib/control.c: Make sure that calls that send
messages cannot be done on destroyed sensors.
2004-04-02 Corey Minyard <cminyard@mvista.com>
* lib/entity.c, lib/sensor.c, lib/control.c: Fixed a rather nasty
race condition. Sensors and control may go away after the MC goes
away underneath them if the sensor or control has an operation
pending. The entity routine to remove the sensor and control
calls ipmi_xxx_convert_to_id(), which requires the MC to exist.
These were converted to use the pointer itself.
2004-04-02 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c, lanserv/emu_cmd.c, lanserv/emu.h: Reworked LED
support to better handle ATCA. Added hot-swap support.
* lanserv/README.emulator: Added.
* lanserv/atca.emu: Added.
* lib/oem_atca.c: Worked on hot-swap support.
* configure.in: Move to version 1.3.1.
* doc/OpenIPMI.texi: Added some docs on ATCA.
* lib/entity.c: Added a check for duplicate FRU entries in the SDR
DLRs, in case there is one.
* lib/mc.c: Fixed connection up info to be freed for MCs that
never go active.
* lib/entity.c, include/OpenIPMI/ipmi_entity.c: Added support for
checking the current hot-swap state (as in an audit).
* include/OpenIPMI/ipmiif.h.in: Added functions for the above
call.
* lib/domain.c: Fix the ordering of OEM handling and reporting
things so the MC is ready for commands at that time.
* lib/entity.c: Add checking of hot-swap state along with
presence.
* lib/oem_motorola_mxp.c: Added an event for the power control.
* lib/control.c, include/OpenIPMI/ipmi_control.h: Added a way to
do noseq callbacks to controls.
2004-04-01 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c, lanserv/emu_cmd.c, lanserv/emu.h: Added a start
at ATCA support.
* lanserv/atca.emu: Emulator file for ATCA support started.
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: Added support for watching
when an MC goes active or inactive.
* lib/entity.c: For entities with FRU data, use the fru device
(whether the MC is active or not)) to know if the entity is
present.
* include/OpenIPMI/ipmi_msgbits.h: Add some netfns for the group
extensions.
* lanserv/ipmi_checksum.c, lanserv/Makefile.am: Added a small
program for calculating checksums, useful when working with
emulator files and FRU info.
* lib/domain.c: Moved the OEM domain info destroyer callback to
the end of the domain destruction so that the OEM data is
available through the destructino process.
* lib/mc.c, lib/domain.c: Newly created MCs come up inactive by
default and are set active.
* lib/oem_atca.c: Lots of little bug fixes, finally getting to
test it.
* ui/ui.c: Added multi-record dumping for FRU info.
* ui/ui.c: Added support for settings-based lights.
* lib/entity.c: A rework of the entity handling so that entities
cannot be destroyed while callback handlers are using them.
* lanserv/emu_cmd.c, lanserv/emu.h: Made command reading halt
on the first error.
2004-03-31 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c, lanserv/emu_cmd.c: Added power control, fixed
some problems with getting the event state.
* lanserv/emu.c: Added the hot-swap LED control.
* lib/oem_test.c, lib/ipmi.c: Added some test code for testing
things inside OpenIPMI.
* lib/chassis.c: Added tests to make sure the response is
long enough in power controls.
* lib/entity.c: More work on the hot-swap state machine.
* lib/sdr.c: Fix a memory leak when the SDRs are replaced.
2004-03-30 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Fix a problem checking the event capabilities
on setting the event enables.
* lanserv/emu.c, lanserv/emu.h, lanserv/emu_cmd.c: Started
actually working on a useful simulator. Added SDR, FRU data, and
sensor support.
2004-03-26 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Added calling the entity update handler when the
hot-swap capabilities change.
* lib/strings.c, include/OpenIPMI/ipmiif.h: Added strings for the
hot-swap states.
* ui/ui.c: Added hot-swap support.
* ui/ui.c: Turn off nonblocking mode on the write fd.
* lib/entity.c: Some hot-swap fixes.
* lib/oem_motorola_mxp.c: Turned on the hot-swap indicator and
hot-swap requester.
* lib/sensor.c: Alloc a handler_list for each sensor for type 2
sensors records.
* lib/entity.c: Added a slot sensor as one that has a bit presence
detector.
* lib/entity.c: Don't require event support for a presence sensor.
* lib/entity.c: Don't fetch FRU information for an entity until
it is present.
2004-03-25 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Always rescan FRU info on an entity presence change
for an entity that has FRU info.
2004-03-23 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Call _ipmi_find_or_create_mc_by_slave_addr() on new
mcdlrs.
* lib/domain.c: Scan MCs that are added from SDR sources.
* lib/oem_atca.c: Turn off SEL support for everything but the BMC.
* lib/oem_atca.c: Rework the handling of new MCs and entities to handle
things added before the FRU information is read.
* lib/entity.c: Use certain sensors that have presence bits as
presence sensors.
2004-03-20 Corey Minyard <cminyard@mvista.com>
* everything: Massive rework of the code structure.
2004-03-19 Corey Minyard <cminyard@mvista.com>
* configure.in, include/OpenIPMI/ipmiif.h.in: Completele rework
the version handling so that major, minor, release, and extra
version information are separately available for #ifdeff-ing.
* lib/ipmi.c, ui/ui.c: Use OPENIPMI_VERSION for the version
string.
* Makefile.am, configure.in, OpenIPMI.pc.in, OpenIPMIui.pc.in:
Added pkg-config info for OpenIPMI libraries.
* lib/posix_thread_os_hnd.c, lib/Makefile.am: Add a first shot
at a threaded POSIX OS handler, libOpenIPMIpthread.
* OpenIPMIpthread.pc.in, Makefile.am, configure.in: ditto
2004-03-15 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/selector.h, lib/selector.c: Unfortunately,
there were some race conditions in the freeing up of file
descriptors. Cleanups were done for this.
* include/OpenIPMI/os_handler.h: Unfortunately, there were some
race conditions in the freeing up of file descriptors. Cleanups
were done for this.
* ui/ui_os.c: Adjusted for the selector and os_handler changes.
* lib/ipmi_smi.c: ditto
* lib/ipmi_lan.c: ditto
* lib/oem_motorola_mxp_intf.c: ditto
2004-03-11 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Fix the set_time routine to pass in the info to the
message send.
2004-03-09 Corey Minyard <cminyard@mvista.com>
* lib/oem_motorola_mxp.c: Don't create the "healthy" sensor for
AMC boards.
* lib/oem_motorola_mxp.c: Clear our the right variable after the
allocation of info->con_ch_info.
2004-03-04 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_int.h, lib/sel.c, lib/mc.c: Fix broken
time calculations for events.
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
* include/OpenIPMI/ipmiif.h.in, lib/event.c, lib/domain.c: Created
a new event delete function that does not take a domain.
* doc/OpenIPMI.texi: Added some more documentation and cleaned
things up a little.
2004-03-02 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Fixed a bug where incoming SNMP traps were
compared against the wrong IP address.
* lib/oem_atca.c: Added the cold reset control.
* lib/sensor.c: Fixed the range check in ipmi_sensor_pointer_cb().
* lib/control.c: Fixed the range check in ipmi_control_pointer_cb().
2004-03-01 Corey Minyard <cminyard@mvista.com>
* lib/oem_atca_conn.c: Set broadcast_broken all the time.
* lib/ipmi.c: Added raw debug tracing for incoming SNMP traps.
* include/OpenIPMI/ipmi_conn.h, lib/ipmi.c, ui/basic_ui.c: Added
a source address length to the SNMP trap reporting handler.
2004-02-26 Corey Minyard <cminyard@mvista.com>
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: Added a way to check if an
ID is invalid.
* include/OpenIPMI/ipmiif.h.in: ditto for domains, sensors,
controls, and entities.
* lib/domain.c: ditto
* lib/sensor.c: ditto
* lib/control.c: ditto
* lib/entity.c: ditto
* lib/entity.c: Do a changed callback on the parent and child when
a parent-child relationshi<p is created or destroyed.
* include/OpenIPMI/ipmi_entity.h, lib/entity.c: Added an operation
queue and handling functions for entities.
* include/OpenIPMI/ipmi_entity.h, lib/entity.c: Added OEM
information for entities.
* include/OpenIPMI/ipmi_entity.h, lib/entity.c: Modified the
hot-swap get state routine to take a more sensible callback.
* include/OpenIPMI/ipmi_fru.h, lib/fru.h: Added a way to get the
offset of a multi-record so it may be written.
* lib/oem_motorola_mxp.c: Change the entity id selection to use
the slot, if it's a switch slot then use the switch entity id,
otherwise use the processing blade entity id.
* ipmi_conn.h: Modified the event reporting to actually send
an event, not the event message.
* lib/ipmi_lan.c: ditto
* lib/ipmi_smi.c: ditto
* lib/domain.c: ditto
* sample/ipmicmd.c: ditto
* include/OpenIPMI/ipmi_types.h: Added ipmi_time_t
* include/OpenIPMI/ipmi_mc.c: Modified the SEL time to be
ipmi_time_t.
* lib/oem_motorola_mxp.c: ditto.
* include/OpenIPMI/ipmi_event.h, lib/event.c: Added these files
and reworked the events to be opaque and easier to use.
* lib/Makefile.am, include/OpenIPMI/Makefile.am: ditto
* include/OpenIPMI/ipmi_sel.h, lib/sel.c: ditto
* include/OpenIPMI/ipmi_mc.h, lib/mc.c: ditto
* include/OpenIPMI/ipmiif.h.in, lib/domain.c: ditto
* include/OpenIPMI/ipmi_types.h: ditto
* lib/sensors.c: ditto
* lib/oem_motorola_mxp.c: ditto
* ui/ui.c: Adjusted for all the event rework.
* doc/OpenIPMI.texi: Reworked docs to add info on the event
rework.
* lib/Makefile.am: Upped the library revision.
* configure.in: Move to version 1.3.0.
2004-02-25 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Fixed a few problems were callbacks can receive
NULL values that were not being handled.
* configure.in: Move to version 1.2.16.
* lib/oem_motorola_mxp.c: Added zeroing all data structures after
they are allocated.
* lib/entity.c, include/OpenIPMI/ipmiif.h: Added a way to have
multiple callback handlers on control, sensor, and fru updates.
* ui/ui.c: Converted over to the multi-callback handlers.
2004-02-24 Corey Minyard <cminyard@mvista.com>
* lib/control.c: Added an option for light controls to be able to
set their color, on, and off times directly.
* include/OpenIPMI/ipmiif.h: ditto
* include/OpenIPMI/ipmi_control.h: ditto
* include/OpenIPMI/ipmi_bits.h, lib/strings.h: Added an "orange"
light color.
* lib/oem_atca.c: Started serious work into handling for ATCA
LEDs.
* lib/oem_motorola_mxp.c: Added handling for newer Zynx switch
boards.
* utils/Makefile.am: Removed the md2 and md5 tests since they
contain marginally free code.
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: Added a way to enable and
disable the event generation on an MC.
* ui.c, man/ipmi_ui.1: Added commands for mc event enable
settings.
* lib/entity.c, include/OpenIPMI/ipmi_entity.h: Added a way to
have multiple callback handlers called when an entity is added to
a domain.
* lib/domain.c, include/OpenIPMI/ipmiif.h: ditto
* lib/domain.c: Modified finding the event reciever to use the
event receiver bit (not the SEL bit) and to ignore BMC channels,
since their addresses would be bogus.
* lib/ipmi_lan.c: Removed scanning the system address for general
LAN connections. It will do wierd things, and is only necessary
if specific support is required.
* lib/oem_motorola_mxp.c: Re-added scanning the system address
for MXP chassis.
* lib/domain.c, include/OpenIPMI/ipmi_domain.c, lib/sensor.c:
Changed _ipmi_find_or_create_mc_by_slave_addr() to take a channel
as part of the address.
2004-02-23 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Fixed a race condition dealing with an MC going away
while the SDRs were being fetched. I wasn't following my own
rules about pointers and callbacks.
* lib/oem_motorola_mxp.c: Added a read handler for the I2C Isolate
control.
* lib/oem_motorola_mxp.c: Used the minor firmware version, not the
major version,to tell if an MXP board has SDRs on-board.
* configure.in: Move to version 1.2.15.
* lib/domain.c, lib/mc.c, lib/oem_motorola_mxp.c: Fix some
problems handling things being destroyed at startup.
* lib/oem_motorola_mxp.c: Changed the number of boards on the
half-pint chassis to 9. Fixed the detection of board versions.
2004-02-22 Corey Minyard <cminyard@mvista.com>
* lib/oem_motorola_mxp.c: Added reading the reset control for
boards. Don't create the I2C Isolate controls on the half-pint
chassis.
* man/ipmi_ui.1: Fixed the explanation of connecting using
multiple connections and LAN addresses.
* configure.in: Move to version 1.2.14.
* sensor.c: Added a missing command length setting.
2004-02-20 Corey Minyard <cminyard@mvista.com>
* lib/fru.c, include/OpenIPMI/ipmi_fru.h: Added multi-record
FRU handling.
* lib/entity.c, include/OpenIPMI/ipmiif.h: Added multi-record
FRU handling.
* lib/domain.c, include/OpenIPMI/ipmi_domain.h: Added OEM
information for a domain.
* lib/oem_atca.c: More ATCA work.
2004-02-19 Corey Minyard <cminyard@mvista.com>
* lib/lanparm.c: Initialize the callback data when cleaning
the lan parm lock.
* man/ipmicmd.1, man/ipmi_ui.1: Update to make current.
* include/OpenIPMI/ipmiif.h, lib/entity.c: Added an entity id
comparison function.
* include/OpenIPMI/ipmiif.h, include/OpenIPMI/ipmi_types.h: Added
invalid id's for all the various object id's.
* include/OpenIPMI/ipmi_mc.h: ditto
* lib/entity.c: ditto
* lib/mc.c: ditto
* lib/sensor.c: ditto
* lib/control.c: ditto
* lib/domain.c: ditto
* doc/OpenIPMI.texi: Added some more information about locking.
* lib/oem_atca.c, lib/ipmi.c: Started work on the ATCA code.
2004-02-18 Corey Minyard <cminyard@mvista.com>
* configure.in: Reworked SNMP library configuration to check
for the include files first, then the libraries.
* README: Improved quite a bit.
* lib/oem_motorola_mxp.c: Modified the power supply sensor to only
set the power feed failure bits on DC power supplies.
* doc/OpenIPMI.texi: Revised the Motorola MXP documentation.
* lib/oem_motorola_mxp.c: Discovered that the "power good" bit in
the power supply status event is really a "power fail" bit.
* configure.in: Move to version 1.2.12.
* lib/oem_motorola_mxp.c: Renumbered the sensors so that five
power supplies and fans could fit. Also split out the fan info
from the power supply info to allow different counts of fans and
power supplies. Fixed the fan IPMB for half-pint to be 0x30-0x34.
* lib/entity.c, include/OpenIPMI/ipmiif.h: Added the ability to
get the channel and address for a device-relative entity.
* configure.in: Move to version 1.2.13.
* lib/oem_motorola_mxp.c: Add fan speed raw/cooked conversion
function.
* lib/domain.c: Fixed a problem with handling old messages
on a failover. Changed so that old messages will certainly
be ignored.
2004-02-17 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_conn.h: Added a "broadcast broken" flag
to the interface data.
* include/OpenIPMI/ipmi_domain.h, lib/domain.c: Removed the ability
to set broadcast broken directly for the domain, instead we get
it from the interface data.
* lib/oem_motorola_mxp.c: Add setting broadcast broken on the
interface to an MXP, removed the domain setting of the same.
* configure.in: Move to version 1.2.11.
2004-02-12 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h, lib/entity.c: Added entity-id based
versions of some hot-swap functions and the function to get the
current entity presence.
* include/OpenIPMI/ipmiif.h, doc/OpenIMPI.texi: Added some text
about how the object pointer callbacks are always called
immediately.
* lib/sel.c: Initialize the return value in
ipmi_sel_add_event_to_sel().
* lib/sel.c, ui/ui.c: Fix some problem with adding events to the
SEL.
* configure.in: Move to version 1.2.10.
* lib/OpenIPMI/ipmi_addr.h, lib/ipmi_utils.c: Added a privilege
field to the IPMI LAN address.
2004-02-11 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Reworked sensor naming to include the entity
id and instance.
* lib/oem_atca_conn.c: Made ATCA connections always active.
* lib/entity.c, include/OpenIPMI/ipmi_entity.h: Revised the
entity addition function to take the mc channel and address, not
an MC pointer, since the MC pointer is not always available.
* lib/oem_motorola_mxp.c: adjusted for the previous change
* lib/chassis.c: adjusted for the previous change
* lib/sensor.c: adjusted for the previous change
* lib/control.c, lib/sensor.c: Fixed some problems dealing with
non-standard device-relative entities that are actually not on the
device we are dealing with.
* lib/oem_motorola_mxp.c: Added a CPCI board healthy sensor.
* ui/basic_ui: Added a '-drawmsg' parameter to start raw message
tracing at startup.
* include/OpenIPMI/ipmi_addr.h: Added updates to the lan address
stuff.
* ui/ipmicmd.c: ditto
* lib/ipmi_utils.c: Added handling of the LAN address type.
* lib/oem_motorola_mxp.c: Removed the ability to set the chassis
type control, as it is really not settable.
* configure.in: Move to version 1.2.9.
2004-02-10 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_mc.h, lib/mc.c: Added a way to send events
to the SEL of an MC.
* include/OpenIPMI/ipmi_sel.h, lib/sel.c: ditto
* ui/ui.c: Added a way to add events using the above calls.
* lib/oem_motorola_mxp.c: Make the entities for boards on the MXP
V2 chassis device-relative.
2004-02-09 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.2.7.
* lib/oem_motorola_mxp.c: Add support for MXP half-pint chassis.
* include/OpenIPMI/ipmiif.h: removed
* include/OpenIPMI/ipmiif.h.in: added, with version info
* configure.in: Added setting the version info of ipmiif.h
* include/OpenIPMI/ipmiif.h.in, lib/ipmi.c: Added a version
function.
* include/OpenIPMI/ipmi_addr.h: Added a LAN address type.
* lib/domain.c: Modified the bus scanning to put a second delay
between attempts when checking for an MC that has been removed,
just in case of a transitional failure.
* sample/ipmicmd.c: Added support for LAN addresses.
* configure.in: Move to version 1.2.8.
2004-02-08 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Don't subtract 0x60 from device-relative entity
instances in the id, just leave it.
* lib/entity.c: Fix some bugs extracting DLRs from the SDRs.
* ui/ui.c: Subtract 0x60 from device-relative entity instances on
display/input.
2004-02-02 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.2.6.
* everything: Massive rework of the logging to get more
information in there so the logs can be correlated to specific
domains, sensors, MCs, etc.
2004-01-31 Corey Minyard <cminyard@mvista.com>
* domain.c: Cleaned up logs, made them include the file and
function name.
* ipmi_lan.c: Ditto
* ipmi_lan.c: Modified message logging to separate the raw
and normla message logging.
2004-01-29 Corey Minyard <cminyard@mvista.com>
* lib/oem_motorola_mxp.c: Move the AMC chassis id and temp cool
LED to the main chassis entity, since only the active AMC handles
it.
2004-01-28 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.2.5.
* lib/oem_motorola_mxp.c: Removed the hot-swap status from the
blue leds and ejector switches, until I figure out a good way to
handle the power.
* lib/entity.c: Fixed an extraneous unlock in the hot swap code.
* lib/domain.c: Only scan the IPMB on an address change if not in
startup mode to avoid scanning an MC before the user is informed
of the domain being up.
2004-01-27 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Finished implementing the hot-swap state machine.
2004-01-26 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h, lib/sensor.c, lib/control.c,
lib/entity.c: Added some routines for dealing more directly with
ids.
* configure.in: Move to version 1.2.4.
* lib/domain.c, lib/sensor.c, lib/mc.c: Fixed some domain shutdown
problems.
* lib/oem_motorola_mxp.c: Reworked the control and sensor creation
so the object is fully correct and available when reported.
2004-01-25 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Lots of cleanups and error handling consolidation.
2004-01-24 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c, include/OpenIPMI/ipmi_sensor.c: Reworked the
default threshold handling, I misread the spec on this. These are
only valid for setting the threshold at init time.
* lib/oem_motorola_mxp.c: Removed all the SDR hacks, since it is
now all correct in the SDRs.
* configure.in: Move to version 1.2.3.
2004-01-23 Corey Minyard <cminyard@mvista.com>
* lib/ilist.c, include/OpenIPMI/ilist.h: Added a
ilist_twoitem_destroy() call.
* include/OpenIPMI/ipmi_control.h, lib/control.c: Allow controls
to generate update events.
* lib/conn.c: Fixed some memory leaks.
* include/OpenIPMI/ipmi_bits.h: Added a return value for the event
handlers to tell if the handler will manage the event or if it
should be passed on.
* include/OpenIPMI/ipmi_control.h, lib/control.c: ditto
* include/OpenIPMI/ipmi_sensor.h, lib/sensor.c: ditto
* include/OpenIPMI/ipmi_control.h, lib/control.c: Added lots of
info to the hot-swap indicator.
* include/OpenIPMI/entity.h: Added lots of info to the hot-swap
state machine description.
* include/OpenIPMI/ipmiif.h, lib/entity.c: Started work on the
hot-swap state machine.
* lib/oem_motorola_mxp.c: Went back to the old presence state
machine, except the healthy and reset events cause a presence
check, they don't directly drive the state machine, since then are
not 100% dependable.
* lib/oem_motorola_mxp.c: Modified the code to register all
product ids from 0x01 to 0x40 as MXP products.
2004-01-22 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h, include/OpenIPMI/ipmi_control.h:
Added a way for standard value controls to generate events.
* lib/control.c: ditto
2004-01-21 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h, lib/sensor.c: Added a way to register
multiple handlers on a sensor event.
2004-01-20 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h: Added hot-swap state machine and
function definitions.
* include/OpenIPMI/ipmi_entity.h, lib/entity.c: Added hot-swap
polymorphic routines.
* include/OpenIPMI/ilist.h, lib/ilist.c: Added two item list code,
primarily for handling callback lists.
* lib/conn.c: Converted OEM connection callback list to the
two item list, and call all the OEM connection callbacks at once.
2004-01-19 Corey Minyard <cminyard@mvista.com>
* lib/conn.c, include/OpenIPMI/ipmi_conn.h: Added a connection
handler for testing new connections types (primiarily for ATCA).
* lib/oem_atca_conn.c, lib/ipmi.c: Added, new code for ATCA
connection handler, for getting the IPMB address.
* lib/domain.c: Fixed a problem in domain OEM callbacks; the
iterator used may become invalid during the process of handling
the OEM callbacks.
* lib/ipmi_lan.c: Return NULL for the IPMI in a handler when the
connection is shut down.
* lib/ipmi_lan.c, lib/ipmi_smi.c: Added calls to the OEM
connection handler code.
* lib/ipmi_smi.c: Have the shutdown code call the handler on all
outstanding messages.
2004-01-14 Corey Minyard <cminyard@mvista.com>
* configure.in, ui/basic_ui.c: Added support for net snmp.
* configure.in: Move to version 1.2.2
* ui/ui.c: Added handling for controls going away when displayed.
* README.MotorolaMXP: Added.
* lib/oem_motorola_mxp.c: Modified the handling for custom AMC
sensors to only be created if it's an old AMC. Also added support
for handling the sensors from the AMC properly, setting the entity
ID properly.
* lib/domain.c: Have the domain code call the OEM handler for the
SI MC.
* lib/mc.c: Added a way to have an MC's main device repository
treated as a device SDR repository.
* lib/oem_motorola_mxp.c, doc/OpenIPMI.texi: Removed the fan speed
control (it no longer works) and added the fan speed reading.
2004-01-14 Corey Minyard <cminyard@mvista.com>
* doc/OpenIPMI.texi: Added some MXP-specific information.
* lib/oem_motorola_mxp.c: Fixed a few problems, the Chassis ID
sensor was on the wrong entity, some boards were missing, and a
few other little glitches.
* lib/domain.c: Added scanning the system interface when a
connection goes up or down.
2004-01-13 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.2.1
* configure.in, ui/Makefile.am, ui/basic_ui.c: Make the SNMP stack
optional.
* man/ipmi_ui.1: Add docs for the -snmp option
* doc/OpenIPMI.texi: Added docs for the SNMP trap handling.
* include/OpenIPMI/ipmi_conn.h, lib/ipmi.c: Added an external SNMP
trap handler.
* include/OpenIPMI/ipmi_lan.h, lib/ipmi_lan.c: Added an external
trap handler.
* include/OpenIPMI/ipmi_mc.h, lib/mc.c: Added a return code from
adding an event to know if the event was a duplicate.
* include/OpenIPMI/ipmi_sel.h, lib/sel.c: Ditto
* lib/domain.c: Modified the incoming event handler so that if it
gets a NUL event message, to rescan the SEL from the source MC.
* lib/ipmi_lan.c: Modified the sequence number handling to not use
a zero sequence number, and to ignore zero sequence numbers. This
allows things to send messages with ignored responses by setting
the sequence to zero.
* ui/basic_ui.c: Added support for SNMP traps.
2004-01-12 Corey Minyard <cminyard@mvista.com>
* lib/pet.c, include/OpenIPMI/ipmi_pet.h: Modified the PET code to
only handle a single channel, and to specify the channel and
connection explicitly. It's really impossible for this code to
know automatically what channels to configure and what IP
addresses to use for each.
* configure.in: Update version to 1.2.0.
* lib/mc.c, include/OpenIPMI/ipmi_mc.h, include/OpenIPMI/ipm_oem.h:
Added a mechanisms to fixup a sensor before anything is done with
it (to fix broken values).
* lib/oem_motorola_mxp.c: Added a fixup handler for AMC sensors to
set the entity instance properly.
* lib/oem_motorola_mxp.c: Converted over handling of semi-standard
sensors to use the standard sensor fetch mechanism, if possible.
Also added the AMC temperature sensor.
* doc/OpenIPMI.texi - Added a bunch of info on the new MXP
version.
* lib/oem_motorola_mxp_intf.c: Modified to startup up a standard
LAN connection if on a newer AMC.
* lib/sensor.c, include/OpenIPMI/ipmi_sensor.c: Added a send_lun
to the OEM sensors so they can use the normal sensor code for
things that are standard.
2004-01-09 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_bits.h, ui/ui.c, lib/strings.c: Added
one-shot reset, general output, and one-shot ouput controls.
* lib/oem_motorola_mxp.c: Added a bunch of controls for various
things in the chassis and boards.
* lib/ipmi_lan.c: Fixed a problem when receiving messages, need to
compare the netfn as well as the command when looking for sendmsg
and event msg buffer commands.
* lib/oem_motorola_mxp.c: Modified the presence sensor for normal
boards to use the CPCI healthy signal instead of the wierd thing
it was doing.
* lib/mc.c: Don't delete the MC removed handlers unless the MC is
really deleted.
2004-01-08 Corey Minyard <cminyard@mvista.com>
* lib/fru.c: Added error info logs to tell why a FRU was bad.
* doc/OpenIPMI.texi: Added documenataion for the new PEF, PET, and
LAN configuration items.
* lib/domain.c, include/OpenIPMI/ipmi_domain.h: Added code to
check if a specific connection is active and to activate a
connection explicitly.
* ui/ui.c: Added support for the connection activation.
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: Added a mc reset command
for sending MC cold and warm resets.
* lib/chassis.c: Added a one-shot reset control.
* lib/oem_motorola_mxp.c: Added controls for the version AMC
version.
2003-01-08 Jeff Zheng <jeff.zheng@intel.com>
* lib/pef.c: Various fixes for PEF handling.
2004-01-07 Corey Minyard <cminyard@mvista.com>
* ui/ui.c: Added LAN and PEF lock clearing.
* lib/pet.c, include/OpenIPMI/ipmi_pet.h: Reworked the PET to
support proper locking and to support the proper setup of the
policy number.
* ui/ui.c: Added support for the PET.
* lib/domain.c, include/OpenIPMI/ipmi_domain.h: Added a "broadcast
broken" field so systems that have non-working broadcasting can
set this. Then bus scanning wll use normal messages, not
broadcasts.
* lib/oem_motorola_mxp.c: Set the broadcast broken flag.
2004-01-06 Corey Minyard <cminyard@mvista.com>
* lib/pef.c, include/OpenIPMI/ipmi_pef.h: Reworked this to handle
locking properly, the lock is claimed on a PEF config read and the
lock is cleared on a write. Also added a specific clear lock
operation.
* lib/lanparm.c, include/OpenIPMI/ipmi_lanparm.h: Reworked this to
handle locking properly, the lock is claimed on a LAN config read
and the lock is cleared on a write. Also added a specific clear
lock operation.
2004-01-05 Corey Minyard <cminyard@mvista.com>
* ui/ui.c, ui/basic_ui.c: Added a way to free things allocated in
the main routine.
* lib/ipmi.c, include/OpenIPMI/ipmi_int.h: Added an IPMI rwlock.
* lib/pet.c: Converted the main pet lock to a rwlock.
* ui/ui.c: Consolidate MC reading.
* lib/domain.c: Fixed the system interface address handling to be
correct for the individual interfaces.
* lib/ipmi_lan.c: Removed the bind code, as if you don't bind an
address one will be auto-assigned.
* ui/ui.c: Added the ability to set the LAN and PEF parameters.
2004-01-05 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_int.h, lib/ipmi.c: Added a way for
internal code to fetch the global OS handler.
* lib/pef.c, include/OpenIPMI/ipmi_pef.h: Added a way to get the
MC for a PEF.
* lib/impi_lan.c: Added system address scanning for all LAN
connections.
* lib/ipmi.c: Added PET init and shutdown functions.
* lib/ipmi.c, include/OpenIPMI/ipmi_int.h: Added a method to get
the main OS handler.
* include/OpenIPMI/ipmi_addr.h: Added a define for the "self"
channel.
* lib/pet.c, include/OpenIPMI/ipmi_pet.c, lib/Makefile.am: Added a
way to easily set up the platform event trap stuff for just
getting all events.
* ui/ui.c: Added support for the LAN parameter display.
2004-01-02 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_int.h: Added ipmi_strdup for use by
everyone.
* include/OpenIPMI/ipmi_pef.h, lib/pef.c: Added and mostly rewrote
some PEF code from Jeff Zheng. Still not quite done.
* include/OpenIPMI/ipmi_lanparm.h, lib/lanparm.h: Added code for
handling LAN configuration parameters.
* ui/ui.c: Added some code for fetching and writing PEFs.
2003-12-26 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.1.8
2003-12-26 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_domain.h, lib/domain.c: Added a domain OEM
handler for detecting and setting up special types of domains,
mainly in preparation for ATCA.
* lib/ipmi_lan.c: IPMIv1_5_rev1_1_0926 markup, section 6.12.4,
didn't clear things up at all. Some manufacturers have
interpreted a certain way that this added code handles, but IMHO
it is incorrect.
2003-12-09 Louis Zhuang <louis.zhuang@linux.intel.com>
* lib/ilist.c: Fix a bug in the routine to go to the previous
item.
2003-12-05 Corey Minyard <cminyard@mvista.com>
* lanserv/emu.c: Work on SDR emulation.
2003-12-04 Louis Zhuang <louis.zhuang@linux.intel.com>
* include/OpenIPMI/ipmi_mc.h, lib/mc.h: Add a new function
'ipmi_mc_sel_get_last_addition_timestamp' for OpenHPI to use.
* include/OpenIPMI/ipmi_sel.h, lib/sel.h: Add a new function
'ipmi_sel_get_last_addition_timestamp'.
2003-12-04 Jeff Zheng <jeff.zheng@intel.com>, Corey Minyard <cminyard@mvista.com>
* sample/ipmicmd.c: Actually close the IPMI connection at quit.
2003-12-04 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h: Use "const" properly to get rid of
warnings.
* lib/ipmi.c: ditto
* sample/ipmicmd.c: ditto
* sample/sample.c: ditto
* ui/basic_ui.c: ditto
2003-12-03 Corey Minyard <cminyard@mvista.com>
* lib/sensor.c: Allow settable hysteresis values to be read, too.
* include/OpenIPMI/ipmi_bits.h: Added some docs on the confusing
names of the hysteresis values.
2003-12-03 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.1.7
* lib/ipmi_lan.c: Updated the response format where the send
message is include with the response to include the destination
IPMB as part of the header.
* lanserv/emu.c lanserv/lanserv.c lanserv/lanserv_emu.c: Adjustments
for the previous change.
* utils/md5.c: Fixed this to work on big and little endian without
special defines.
2003-12-02 Corey Minyard <cminyard@mvista.com>
* lanserv/emu_cmd.c, lanserv/Makefile.am, lanserv/lanserv_emu.c:
Added a command processor for handling control commands to the
emulator.
* lanserv/emu.c, lanserv/emu.h, lanserv/lanser_emu.c: Massive
restructure to clean this up and support various commands and get
IPMB working.
* lanserv/lanserv.c: Check for proper message length in broadcasts.
2003-12-02 Louis Zhuang <louis.zhuang@linux.intel.com>
* include/OpenIPMI/ipmi_mc.h, lib/mc.h: Add a new function
'ipmi_mc_event_by_recid' for OpenHPI to use.
* include/OpenIPMI/ipmi_sel.h, lib/sel.h: Add a new function
'ipmi_sel_get_event_by_recid'.
2003-12-01 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_mc.h, lib/mc.c: Renamed some functions to
remove the leading "_". This opens them up for OpenHPI to use.
* lib/domain.c: Updates for the above changes.
* lib/sel.c: ditto
* lib/sdr.c: ditto
* lib/sensor.c: ditto
* lib/control.c: ditto
* lib/oem_motorola_mxp.c: ditto
* ui/ui.c: ditto
2003-11-30 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_control.h, lib/control.c: Added a way to
get the source MC for the control.
* include/OpenIPMI/ipmi_sensor.h, lib/sensor.c: Added a way to
get the source MC for the sensor.
* lib/chassis.c, lib/mxp_oem_motorola_mxp.c: Side effects from the
above changes.
* include/ipmi_domain.h, lib/domain.c: Reworked the MC update
handler to be more standard.
* ui/ui.c, ui/basic_ui.c: Fix problems with the reconnect code.
* ui/ui.c: Added MC update handler registration so new MCs are
reported.
2003-11-28 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmiif.h, lib/ipmi.h: Added parameter parsing
code for parsing the various types of connections from argv-type
strings (really taken from ui/basic_ui.c).
* ui/basic_ui.c, sample/sample.c, sample/ipmicmd.c: Converted over
to use the new parameter parsing code.
2003-11-21 Louis Zhuang <louis.zhuang@linux.intel.com>
* lib/domain.c, include/OpenIPMI/ipmi_domain.h: Add function
'ipmi_domain_set_bus_scan_handler' to indicate bus scan
is done
* sample/sample.c: Add some code to demostrate usage of
'ipmi_domain_set_bus_scan_handler'
2003-11-21 Louis Zhuang <louis.zhuang@linux.intel.com>
* lib/domain.c: Fix a bug in ipmi_domain_reread_sels
2003-11-17 Corey Minyard <cminyard@mvista.com>
* lib/mc.c, lib/domain.c: Added support for detection old and
newer IPMI versions and issuing appropriate logs.
2003-11-11 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.1.6.
2003-11-11 Jeff Zheng <jeff.zheng@intel.com>
* configure.in: Add checking for getaddrinfo().
* include/OpenIPMI/ipmi_lan.h, lib/ipmi_lan.c: Added support for a
IPv6 capable interface.
* lanserv/lanserv.c, lanserv/lanserv_config.c, lanserv.h: Add
support for IPv6 addresses.
* sample/sample.c, ui/basic_ui.c, sample/ipmicmd.c: Reworked to
use the new IPv6 capable interfaces.
2003-11-10 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Fixed MC scanning to handle a single address
properly and fixed some error handling cases.
2003-10-30 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: Fixed MC scanning to skip addresses properly at
the beginning of a scan.
* lib/domain.c, include/OpenIPMI/ipmi_domain.h: Modified the MC
scanning ignoring to use ranges.
* lib/domain.c: The previous fix to handle an MC-less case by just
allowing scanning the BMC at 0x20, not scanning the sysaddr. The
sysaddr stuff was just too tied to the redundant BMC case.
* lib/ipmi_smi.c: Send messages with the proper size.
2003-10-31 Louis Zhuang <louis.zhuang@linux.intel.com>
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: Add const qualifier into function
2003-10-30 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_smi.c: Handle data portion of a socket message correctly.
* sample/ipmicmd.c: Fix error handling.
2003-10-30 Louis Zhuang <louis.zhuang@intel.com>, Corey Minyard <cminyard@mvista.com>
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: Add a function to set the
SEL time for an MC.
2003-10-30 Corey Minyard <cminyard@mvista.com>
* lib/selector.c: Allow a NULL send_sig handler.
2003-10-30 Jarrod Johnson <jbj-taway@ura.dnsalias.org>
* sample/ipmicmd.c: Close the connection when done.
2003-10-29 Corey Minyard <cminyard@mvista.com>
* lib/mc.c, include/OpenIPMI/ipmi_mc.h: Added a way to force
rereading the SEL.
* lib/domain.c, include/OpenIPMI/ipmiif.h: Added a way to force
rereading all the SELs in a domain.
2003-10-23 Corey Minyard <cminyard@mvista.com>
* lib/sdr.c: Fixed a bug in the random backof of SDR reading. On
a random backoff, it would also start one immediately, too. This
was bad because it didn't avoid the contention and it was possible
to have two SDR readings going on at the same time in the same SDR
structure.
2003-10-23 Corey Minyard <cminyard@mvista.com>
* lib/domain.c: If a BMC reports through its channels that is does
not have an IPMB bus, then force scanning the system address so we
will find something useful.
2003-10-20 Corey Minyard <cminyard@mvista.com>
* ui/ui.c: Added some code to print the number of SEL entries on
an mc (when dumping the MC) and the total number of SEL entries
when listing the SEL.
* lanserv/lanserv.c, lanserv/lanserv_config.c: Restructured the
LAN code to make it more flexible and split out more generic
functions.
* lanserver/lanserv_emu.c, lanserv/emu.c, lanserv/emu.h: Ditto
* include/OpenIPMI/lanserv.h: Ditto
2003-10-17 Tony Griffiths <tonyg@agile.tv>
* lib/ipmi_smi.c: Added some enhanced debugging info.
2003-10-17 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.1.5.
2003-10-16 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_mc.h, lib/mc.c: Added a way to get the
current SEL time.
2003-10-16 Louis Zhuang <louis.zhuang@intel.com>
* include/OpenIPMI/ipmi_mc.h, lib/mc.c: add a bundle of mc wapper
functions for SEL operation
2003-10-15 Corey Minyard <cminyard@mvista.com>
* ipmi_lan: Fix the send to the system address to be correct,
and handle incoming messages properly.
* lib/sdr.c: Null a message data (to keep valgrind happy).
* ui/ui_os.c: Fixed a problem valgrind found, timer data may be
freed in the user's handler, but we still used it in the timer
handler after the call to the user's handler.
2003-10-15 Jeff Zheng <jeff.zheng@intel.com>
* lib/mc.c: Null out some values on removal.
* lib/fru.c: Calculate the end of the FRU data correctly.
2003-10-09 Thomas Kanngieser <Thomas.Kanngieser@fci.com>
* lanserv/lanserv_asf.c: Send the right data for an RMCP ping.
2003-10-09 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.1.4.
* lanserv/priv_table.c: Fixed the permissions checking code, ADMIN
privilege was specified incorrectly for unknown messages and magic
numbers were replaced with defined names.
2003-10-08 Livio Pugliese <lpugliese@uxcomm.com>
* lib/sensor.c: Added the missing log2() conversion function to
the array of conversion values.
2003-10-07 Tony Griffiths <tonyg@agile.tv>
* lib/domain.c: Fix getting the vendor id from the channel info
response.
2003-10-02 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Changed the max outstanding message default
to two.
* lib/mc.c: Removed setting the event receiver for SEL devices
that are not event generators.
* ui/ui.c: Fixed problems printing entities.
2003-10-07 Tony Griffiths <tonyg@agile.tv>
* lib/domain.c: Fixed channel scanning to go on if it gets an
error from the channel. That way if channels are not present, it
will still find channels beyond the errored channel.
* lib/strings.c, include/OpenIPMI/ipmi_msgbits.h: Add strings for
the netfns, commands, and errors.
* include/OpenIPMI/ipmi_err.h: ditto
* lib/ipmi_lan.c: Convert debugging to clean up the formatting and
use the new strings.
2003-10-05 Thomas Kanngieser <Thomas.Kanngieser@fci.com>
* lib/sensor.c: The binary search converting from float to raw
values had the compare backwards.
2003-10-02 Corey Minyard <cminyard@mvista.com>
* ui/entity.c: Fixed the custom info get function names.
* ui/ui.c: Fixed a few FRU output problems.
* sample/sample.c: Fixed the FRU output.
* ui/entity.c, ui/fru.c: Added board manufacture time function.
* include/OpenIPMI/ipmi_fru.h: ditto
* include/OpenIPMI/ipmiif.h: ditto
* ui/ui.c: Converted over all display of entities to do the
relative and absolute entity names.
* lib/sdr.c: The Get Device SDR command stupidly only returns the
number of sensors, not the number of SDR entries. For device
SDRs, the SDR array will expand up to 512 entries if it runs
out of SDR entries. 256 is the max number of sensors, so this
should be safe.
2003-10-02 Thomas Kanngieser <Thomas.Kanngieser@fci.com>
* lib/sensor.c: The bit shifts for getting the hysteresis and
threshold support from the SDR were incorrect.
2003-10-01 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.1.3
* lib/ui.c: Added support for device-relative entities.
* include/OpenIPMI/ipmi_types.h: The bit assigns for
entity_instance and channel were switched in the entity id type.
* include/OpenIPMI/ipmi_control.h: Added an include for
ipmi_addr.h since it is used in this include file.
* include/OpenIPMI/ipmi_oem.h, lib/mc.c: Allow multiple OEM removal
handlers to be registered against an MC.
* include/OpenIPMI/ipmi_mc.h, lib/Makefile.am, lib/mc.c, lib/chassis.c:
Added converting chassis control commands to a power control.
2003-09-30 Corey Minyard <cminyard@mvista.com>
* lib/sdr.c: Don't refetch SDRs if the population is not dynamic.
* lib/mc.c, lib/domain.c, include/OpenIPMI/ipmi_mc.h: Added an
audit to check the SDRs for an MC and for the main SDR repository.
* lib/mc.c: Was reading the device SDRs twice. That's why it was
so slow at startup.
* lib/domain.c: Call the connection change function as soon
as the connection is up, don't wait to read the SDRs, etc.
* ui/ui.c, include/OpenIPMI/ipmi_ui.h: Add a function to set
the domain at startup.
* lib/entity.c: Make sure to free the entity SDR info when it is
destroyed.
* lib/domain.c: Initialize the running field of the
activate_timer_info data.
* ui/ui.c: Added TCSADRAIN to the tcsetattr() calls so that the
output wouldn't get chopped off on shutdown of the program. Also
properly restored the flags for the output terminal.
* ui/ui.c: Fixed a possible overrun in normal_char, it was using
strcpy but the string wasn't necessarily nil terminated. Change
to use memcpy with a length.
2003-09-29 Corey Minyard <cminyard@mvista.com>
* lib/ipmi.c: The length bits of an IPMI string are the bottom 6
bits, no the bottom 5 bits.
2003-09-28 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.1.2.
* lib/domain.c: Added handling of system ids in events.
* lib/domain.c: Don't allow messages to be sent on a shutdown
domain. This avoids an infinite loop in some cases.
* lib/domain.c: In cleanup_domain(), pass the error response in
as the response, not the original message.
* lib/entity.c, include/OpenIPMI/ipmiif.h: Added entity functions
to get FRU information so the user doesn't have to deal directly
with the FRU type.
* include/OpenIPMI/ipmiif.h, include/OpenIPMI/ipmi_fru.h:
Moved all the FRU functions and types into ipmi_fru.h.
* include/OpenIPMI/ipmi_fru.h, include/OpenIPMI/ipmi_bits.h: Moved
the chassis types into the public bits.
2003-09-26 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.1.1.
* Lib/ipmi_malloc.c: Fill debug malloced memory with junk to help
catch usage before initialization. Also cleaned up some error
messages.
* lib/entity.c: Fixed a problem where some data was being used
before initialization.
2003-09-25 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.1.0.
* doc/OpenIPMI.texi: Added a little information about FRUs.
* include/OpenIPMI/ipmiif.h, include/OpenIPMI/ipmi_entity: Moved
entity type definitions to the public part and renamed them, and
allow getting and setting the type
* lib/entity.c: ditto
* include/OpenIPMI/entity.h, lib/entity.c: Reworked the FRU
handling to be more flexible.
* include/OpenIPMI/ipmiif.h: Reworked the entity information to
make it more understandable.
* lib/entity.c: Lots of little cleanups for FRU handling and
handling of SDR records.
* lib/fru.c: Fixed handling of some data type to find some types
of errors.
* lib/ipmi_lan.c: Modified the handling of tunnelling IPMB over
LAN to work with Intel boxes. It seems their interpretation of
the spec is different than mine, but the code should now work with
both interpretations.
* lib/ipmi_malloc.c: Don't print some data that we don't have.
* lib/oem_motorola_mxp.c: Updated for FRU handling.
* ui/ui.c: Added better entity output and FRU change handling.
2003-09-24 Corey Minyard <cminyard@mvista.com>
* ui/ui.c: Added some FRU handling commands.
* lib/mc.c: Added entity scanning to device SDRs.
* lib/entity.c: Reworked the entity SDR handling code so that it
tracks the old values, detects when values change, and does the
appropriate thing.
* lib/fru.c, include/OpenIPMI/ipmi_fru.h: Added FRU handling code.
* include/OpenIPMI/ipmiif.h: ditto
* lib/Makefile.am, include/OpenIPMI/Makefile.am: ditto
* lib/entity.c: ditto
* lib/mc.c, include/OpenIPMI/ipmi_mc.c: Allow the entity code to
store MC-specific SDR information in the MC.
* lib/domain.c, include/OpenIPMI/ipmi_domain.c: ditto, but for the
main SDR repository.
* include/OpenIPMI/ipmi_bits.h: Added unicode support.
* include/OpenIPMI/ipmi_control.h: ditto
* include/OpenIPMI/ipmi_entity.h: ditto
* include/OpenIPMI/ipmi_int.h: ditto
* include/OpenIPMI/ipmi_sensor.h: ditto
* include/OpenIPMI/ipmiif.h: ditto
* lib/control.c: ditto
* lib/entity.c: ditto
* lib/ipmi.c: ditto
* lib/oem_motorola_mxp.c: ditto
* lib/sensor.c: ditto
* include/OpenIPMI/ipmi_sensor.h, include/OpenIPMI/ipmi_mc.h:
Moved the sdr fetching code to the MC code where it belonged, but
had to export the sensors waitq to do this.
* lib/mc.c, lib/sensor.c: ditto
* include/OpenIPMI/ipmiif.h, include/OpenIPMI/ipmi_int.h: Moved
the string decoding and data decoding functions into the internal
functions.
2003-09-24 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.0.4.
* lib/selector.c: Allow the selector code to be called from
multiple threads, and fix a race condition on waking up waiting
selectors.
2003-09-23 Corey Minyard <cminyard@mvista.com>
* lib/sel.c, lib/sdr.c: Fixed setting the minor version, thanks
Livio Pugliese for pointing this out.
2003-09-19 Corey Minyard <cminyard@mvista.com>
* lib/selector.c, include/OpenIPMI/selector.h: Change
sel_select_loop() to return an error if select fails(), instead of
calling exit().
2003-09-02 Corey Minyard <cminyard@mvista.com>
* lib/oem_motorola_mxp_intf.c: Changed the timer for MXP messages
to 20ms and added a 20ms delay between checking for the message
lock. Added a 20ms delay after sending 8 messages to let other
boxes have access.
* lib/oem_motorola_mxp.c: Fixed the -12V voltage sensor on the
5365 card to be 10% tolerance.
* lib/mc.c: Fixed process to continue when the SDR fetch
fails.
* lib/entity.c, include/OpenIPMI/ipmiif.h: Added a way to force
entity presence detection.
2003-08-27 Corey Minyard <cminyard@mvista.com>
* lib/ipmi_lan.c: Fixed reconnection problems.
* lib/oem_motorola_mxp_intf: Removed connection loss detection from
the MXP-specific queue fetch, because it is unreliable. Just use
the main LAN connection for failure detection.
* lib/mc.c: Don't cleanup the MC if the SDR read fails.
2003-08-13 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.0.3.
* doc/OpenIPMI.texi: Minor doc updates.
* lib/domain.c, include/OpenIPIM/ipmiif.h: Added a way for the
user to know when all the main SDRs have been read.
2003-08-13 Louis Zhuang <louis.zhuang@linux.intel.com>
* lib/selector.c: Fixed a trivial bug in process_timers
2003-08-12 Corey Minyard <cminyard@mvista.com>
* lib/sdr.c: Added code to the SDR so that it will wait until
everything outstanding is clear before restarting the fetch
operation. Also added a random timer to restart SDR operations
when the reservation was lost.
* lib/domain.c: Reworked the code to not start the connection up
process on an inactive connection.
2003-08-11 Corey Minyard <cminyard@mvista.com>
* lib/sdr.c: Fixed a locking bug in the SDR code.
* lib/domain.c: Modified the set timer code that processes a new
working connection to wait a while until activating the
connection. This allows other connections that may already be
active to come up.
2003-08-01 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 1.0.2.
* lib/sensor.c, lib/control.c: Handle NULL controls and sensors in
opq done. If a sensor is destroyed during an operation, this can
be called with NULL.
* lib/oem_motorola_mxp.c: Removed some debugging cruft.
* lib/oem_motorola_mxp_intf.c: Cleaned up the debug dump output.
2003-07-31 Corey Minyard <cminyard@mvista.com>
* lib/domain.c, include/OpenIPMI/ipmi_domain.h: Added a way to
monitor management controllers as they are added and deleted.
* lib/domain.c: Minor cleanups for handling the new MXP style of
addressing.
* lib/oem_motorola_mxp.c: Added monitoring for the AMC card.
* lib/oem_motorola_mxp.c: Split the AMC card handling up to
completely rework the way the AMCs are handled. The 0x20 address
points to the current AMC. Addresses (f 0) and (f 1) point to the
individual AMCs.
* lib/oem_motorola_mxp_intf.c: ditto
* lib/oem_motorola_mxp.c: Made the board entity instances
one-based instead of zero based.
2003-07-30 Corey Minyard <cminyard@mvista.com>
* lib/oem_motorola_mxp.c: Made entity instances start at one
for all entities instead of the random smattering that was there.
* lib/oem_motorola_mxp.c: Fixed power supply events to not use the
slave address of the power supply when translating events.
* lib/ipmi_lan.c, lib/oem_motorola_mxp_intf.c: Modified the lan
connections to make a connection for each IP address instead of
sharing a connection between IP addresses. Not all boxes support
sharing a connection between IP addresses.
* lib/domain.c: Fixed a problem handling
* lib/ipmi_lan.c, lib/oem_motorola_mxp_intf.c: Fixed a problem
where the connection state wouldn't change if only the active
value changed and not the IPMB address.
2003-07-29 Corey Minyard <cminyard@mvista.com>
* lib/oem_motorola_mxp.c: Fixed a few little things required
for the new firmware.
* lib/oem_motorola_mxp_intf.c: Modified messages directly to the
system interface to use the sequence number queue from the
standard IPMI LAN code. You couldn't use the standard message
queue because those are one-at-a-time and the messages get gummed
up in there.
2003-07-25 Corey Minyard <cminyard@mvista.com>
* doc/OpenIPMI.texi: Minor doc updates about authentication.
2003-07-24 Corey Minyard <cminyard@mvista.com>
* lib/mc.c: Delayed the start of fetching events for an MC's SEL
until the domain connection is up.
2003-07-23 Corey Minyard <cminyard@mvista.com>
* lib/entity.c: Fixed searching for the next presence sensor when
one is deleted.
* lib/entity.c: Don't set the device num for an entity if the
instance is not device-relative. Also, don't add an mcdlr if no
entity id is specified.
* lib/entity.c: Fix removal of controls from entities to compare
properly.
* lib/ipmi_oem_force_conn.c, lib/oem_force_conn.c: Renamed this
file to make it more consistent.
* lib/Makefile.am: ditto
* lib/oem_motorola_mxp.c, lib.oem_motorola_mxp_intf.c: Added
support for the Motorola MXP chassis.
* include/OpenIPMI/mxp.h: ditto
* lib/Makefile.am: ditto
* lib/ipmi.c: ditto
* ui/basic_ui.c: ditto
2003-07-22 Corey Minyard <cminyard@mvista.com>
* configure.in: Moved to version 1.0.1.
* utils/test_md5.c, utils/test_md2.c: Make the tests run
standalone.
* lanserv/Makefile.am: Make dependencies for libraries be in
the build directory, not the source directory. This way it will
build in a separate object directory.
* lib/Makefile.am: ditto
* sample/Makefile.am: ditto
* ui/Makefile.am: ditto
* configure.in: Moved to version 1.0.0.
* everything: Restructured the entire tree and split up everyting
into subdirectories. Hopefully the code is much better structured
now.
2003-07-21 Corey Minyard <cminyard@mvista.com>
* ipmi_smi.c: Added socket interface handling for the SMI
connection.
2003-07-16 Corey Minyard <cminyard@mvista.com>
* OpenIPMI.texi, sensors.c, include/OpenIPMI/ipmiif.h: Added
support for just enabling or disabling sensor event (instead of
directly setting them), added a bunch of error checking to the
enabling and disabling of sensors to make sure the sensor supports
the requested capability.
* include/OpenIPMI/ipmi_sensor.c: ditto
* entity.c: Reworked the presence sensor code to take into account
the sensor capabilities.
2003-07-11 Louis Zhuang <louis.zhuang@linux.co.intel.com>
* ipmi_lan.c, lanserv_asf.c, lanserv_ipmi.c: Cleanups to
remove some warnings.
2003-07-03 Corey Minyard <cminyard@mvista.com>
* sdr.c: When handling SDR data, be sure to check that the MC is
valid in responses, so that this properly handles MCs going away.
2003-06-11 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 0.4.3
* include/net/af_ipmi.h: Added include file for IPMI socket.
* Makefile.am: ditto
* configure.in: ditto
* include/net/Makefile.am: ditto
* lanserv.c: Modified to use IPMI socket if available.
2003-06-07 Corey Minyard <cminyard@mvista.com>
* Makefile.am: Clean up so that every '.c' is only listed once.
When used in multiple programs, create a '.o' in all but one
instance. Still need to figure out how to correctly refer to
.a libraries created by a '.la'.
* all: License updates.
2003-06-06 Corey Minyard <cminyard@mvista.com>
* sel.c: Modified to not use the state to tell if something is
going on, but to use the opq. Deletes don't modify the state, but
they may still be in process at deletion.
* mc.c: Fixed a memory leak.
2003-06-05 Corey Minyard <cminyard@mvista.com>
* sel.c: Fixed a SEL destruction race condition.
2003-06-04 Corey Minyard <cminyard@mvista.com>
* OpenIPMI.tex, README.Force: Minor updates to make some things
clearer.
* basic_ui.c: Fixed a problem with SMI connections.
* ilist.c, ilist.h: Added some helper functions.
* ui_os.c: Switch from /dev/random to /dev/urandom to avoid
blocking for lack of entropy.
* ui.c: Added a total bytes in SDR count.
* sdr.c: Added a pipeline to the SDR fetch, to speed it up for
high-latency links.
2003-06-03 Corey Minyard <cminyard@mvista.com>
* ipmicmd.c: Added the latency testing code back in.
2003-06-02 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 0.4.2.
* sensor.c: Moved the removal of the sensor from the entity to the
place of its final destruction, so the entity will exist during
callbacks related to destruction of the sensor.
* ipmi_lan.c: Send a close session command when the connection is
closed.
2003-05-30 Corey Minyard <cminyard@mvista.com>
* OpenIPMI.texi: Updated docs for handling multiple MCs.
* domain.c: Add a timer to wait for a while after detecting that
everyone is inactive before acting. This should solve race
conditions where something deactivates one and activates another,
to avoid an activation war between software devices.
* domain.c: Reworked some timers so that the handle shutdowns
correctly.
* ipmi_lan.c: Changed the failure timeout to 3 seconds.
* lanserv.c: Send all output to stdout in non-daemon mode.
2003-05-29 Corey Minyard <cminyard@mvista.com>
* domain.c: More fixes for supporting multiple connections.
* entity.c: Fixed the presence handling to use an entity id
instead of an entity pointer since the entity can go away.
* ipmi_lan.c: Modified broadcasts to not retry.
* ipmi_lan.c: Added timer frees in a few places that needed them.
* ipmi_oem_force_conn.c: Changed the broadcast of the deactivate
to a normal message so it gets retried.
* include/linux/ipmi.h: Added changes for setting the timing
parameters.
* lanserv.c: Added changes for setting the timing parameters.
* sdr.c: Fetch sdr 0 to verify the reservation, not the current
record. Also fixed some completion stuff.
* sensor.c: Fixed a shutdown case.
2003-05-28 Corey Minyard <cminyard@mvista.com>
* sel.c: Fixed a shutdown double-free.
* sdr.c: Fixed some shutdown free problems.
* mc.c: Fixed some MC shutdown problems.
* ilist.c, ilist.h: Set the malloced variable for the supplied
entry automatically.
* sdr.c: Removed some bogus frees.
* mc.c: Set the MC active when it is handled as a new MC.
* ipmiif.h: Removed ipmi_domain_get_user_data, since it doesn't
make sense any more.
* domain.c: Added support for multiple connections to a single
IPMB box.
* ipmi_oem_force_conn.c: Added handling for active and inactive
connections.
2003-05-26 Corey Minyard <cminyard@mvista.com>
* lanserv.c: Fixed the address reading code to increment the
address count when it sees an address in the configuration file.
2003-05-19 Corey Minyard <cminyard@mvista.com>
* mc.c: Modified the event receiver setting code to not modify the
event receiver unless it is pointing to a nonexistant MC or an MC
that does not have an event receiver.
2003-05-16 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 0.4.1
* lanserv_oem_force.c, ipmi_oem_force.c: The permission from
Force Computers(tm) came much faster than I expected. This
included some OEM handling for the various Force cards, for
switching the cards to/from BMC mode and for fetching the IPMB
address. Thanks to Force for their help.
* ipmi.c, lanserv.c, ipmicmd.c: Added calls to initialize the
Force OEM code.
2003-05-15 Corey Minyard <cminyard@mvista.com>
* lanserv.h: Moved to include/OpenIPMI
* lanserv.c: Handled move of lanserv.h
* lanserv_asf.c: ditto
* lanserv_ipmi.c: ditto
* lanserv_emu.c: ditto
* configure.in: Move to version 0.4.0
* ipmicmd.c: Changed the order of the lun and netfn to make it
consistent with ipmi_ui.
* ipmicmd.1: Wrote some docs for ipmicmd.
* include/OpenIPMI/ipmi_conn.h: Reworked the connection reporting,
changed "fail" to "change" everywhere to make it more accurate,
and report all connection changes through the same interface.
* domain.c: ditto
* ipmi_lan.c: ditto
* ipmi_smi.c: ditto
* ipmicmd.c: ditto
* sample.c: ditto
* ui.c: ditto
* include/OpenIPMI/ipmi_lan.h: ditto
* include/OpenIPMI/ipmi_ui.h: ditto
* include/OpenIPMI/ipmiif.h: ditto
* include/OpenIPMI/ipmiif.h, domain.c: Modified the domain
interface to support more than one connection (although the code
still only supports one).
2003-05-14 Corey Minyard <cminyard@mvista.com>
* ipmi.c, conn.c: Moved some connection handling stuff into a
new file.
* include/OpenIPMI/ipmi_int.h: ditto
* include/OpenIPMI/ipmi_conn.h: ditto
* include/OpenIPMI/ipmi_conn.h: Added a lot of connection handling
changes for handling different and dynamic IPMB addresses, and for
supporting the concept of a connection being "active".
* ipmi.c: ditto
* ipmi_lan.c: ditto
* ipmicmd.c: ditto
* ipmi_smi.c: ditto
* domain.c: ditto
* ipmi.c: ditto
* ipmi.c: ditto
* lanserv.h, lanserv.c, lanserv_ipmi.c: Added a lot of OEM
handling.
* sensor.c: Fixed a missing return.
2003-05-13 Corey Minyard <cminyard@mvista.com>
* ipmi.c, ipmi_lan.c, ipmi_smi.c: Added infrastructure so that
OEMs can see connections by device id when the connection is
first established.
* include/OpenIPMI/ipmi_oem.h: ditto
* include/OpenIPMI/ipmi_int.h: ditto
* ipmicmd.c: Reworked this so it sits on top of an IPMI
connection. This means you can make LAN connection now.
* ipmi_utils.c: Split out some generic IPMI things that don't
depend on anything else.
* everything: Added the concept of an IPMI domain, and replaced
the "BMC" with the "domain". This was not a huge change from a
usage point of view, but was a big restructure internally. This
way, we can support multiple BMC connections into a domain.
2003-05-05 Corey Minyard <cminyard@mvista.com>
* ui.c: Added connection retrying.
2003-05-04 Corey Minyard <cminyard@mvista.com>
* ipmi_lan.c: Got IPMI LAN stuff working again.
* ui.c: Updates for the new id handling.
2003-05-02 Corey Minyard <cminyard@mvista.com>
* lanserv_emu.c: Added an emulator for testing.
* include/OpenIPMI/ipmi_conn.h: Added a way for the interface code
to provide the IPMB address.
* mc.c, ipmi_lan.c, ipmi_smi.c: ditto
* mc.c: Added a valid field to the MC, right now just for BMCs, to
handle shutdown races.
2003-05-01 Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/ipmi_types.h: A restructure of the id's was
done to remove the MC validation calls from the rest of the code
and use the standard MC callbacks. It also added sequence
numbers to MCs and MC ids so that if an MC is freed and the same
memory is re-allocated, the MC still won't compare with an old
id.
* include/OpenIPMI/ipmi_mc.h: ditto
* include/OpenIPMI/ipmi_sensor.h: ditto
* control.c: ditto
* entity.c: ditto
* sensor.c: ditto
* mc.c: ditto
* sdr.c: ditto
* sel.c: ditto
* include/OpenIPMI/ipmi_int.h, ipmi.c: Added a sequence number
allocator.
2003-04-30 Corey Minyard <cminyard@mvista.com>
* lanserv.c: Modified the server to support two LAN connections
specified in the config file, and modified it to always return the
message from the file descriptor that received the message.
* mc.c: Modified the SEL time code to set the time on the SEL,
not get the time, so the SEL time will be correct.
2003-04-29 Corey Minyard <cminyard@mvista.com>
* ipmi_lan.c, include/OpenIPMI/ipmi_lan.h: Added multiple IP
addresses for a BMC.
* include/OpenIPMI/ipmi_conn.h: Started restructuring the
connection code so that the user allocates the connection and
passed it into the main IPMI code. This decouples the main IPMI
code from the connection code, and readies support for having more
than one BMC connection into a box.
* include/OpenIPMI/ipmi_lan.h: ditto
* include/OpenIPMI/ipmi_smi.h: ditto
* include/OpenIPMI/ipmi_ui.h: ditto
* include/OpenIPMI/ipmiif.h: ditto
* mc.c: ditto
* ipmi_lan.c: ditto
* ipmi_smi.c: ditto
* basic_ui.c: ditto
* sample.c: ditto
* ui.c: ditto
* include/OpenIPMI/ipmi_types.h: Moved ipmi_con_t as an opaque
type into here, so the user can access it.
2003-04-28 Corey Minyard <cminyard@mvista.com>
* lanserv.c, lanserv.h, lanserv_ipmi.c: Added logs for error and
notification handling.
* lanserv.c, lanserv.h, lanserv_ipmi.c: Added an OEM message
handler.
2003-04-27 Corey Minyard <cminyard@mvista.com>
* lanserv.c, lanserv.h, lanserv_ipmi.c: Added timeout handling
for sessions.
2003-04-26 Corey Minyard <cminyard@mvista.com>
* lanserv_ipmi.c: Added incoming session sequence number
checking.
2003-04-25 Corey Minyard <cminyard@mvista.com>
* lanserv.c, lanserv_ipmi.c, lanserv_asf.c, lanserv.h: Added a LAN
to SI interface.
* include/OpenIPMI/ipmi_auth.h: Abstracted the memory allocation
so the auth routines don't depend on OpenIPMI.
* ipmi_lan.c: ditto
* ipmi_auth.c: ditto
* md2.c, md2.h: ditto
* md5.c, md5.h: ditto
* ipmi_lan.c: ditto
* ipmi_malloc.c, include/OpenIPMI/ipmi_int.h: Made ipmi_mem_alloc
take an int size, not a size_t size.
2003-04-24 Corey Minyard <cminyard@mvista.com>
* strings.c: Fixed a bug in getting the sensor reading name.
* priv_table.c, include/OpenIPMI/ipmi_auth.h: Added a table and
handling for figuring out if a message is permitted for a certain
priviledge level.
* include/OpenIPMI/ipmi_msgbits.h: Added all the message ids from
table G-1 from the IPMI 1.5 spec.
2003-04-23 Corey Minyard <cminyard@mvista.com>
* ipmi.c, ipmi_auth.c: Created ipmi_auth.c from some stuff in
ipmi.c
* include/OpenIPMI/ipmi_msgbits.h: Added a bunch of message ids.
2003-04-22 Corey Minyard <cminyard@mvista.com>
* ipmicmd.c, include/linux/ipmi.h: Added a debug interface to
ipmicmd.
* ui.c: Added a way to dump all an mc's information.
2003-04-17 Corey Minyard <cminyard@mvista.com>
* ui.c: Fixed a double free on set_control error conditions.
* mc.c: Added set functions for all the specific MC capabilities.
* configure.in: Move to version 0.3.1.
* mc.c: Added a mechanism to ignore IPMB addresses.
* configure.in: Move to version 0.3.0b.
* ui.c: Ignore control values when an error is reported from
reading a control.
2003-04-16 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 0.3.0.
* mc.c: During shutdown, delete entities after sensors and
controls because sensors and controls may refer to entities.
2003-04-15 Corey Minyard <cminyard@mvista.com>
* ipmi_lan.c: Implemented a max outstanding message count to
avoid killing a LAN BMC, and implemented a queue to hold extra
messages.
2003-04-15 Duncan Laurie <duncan@sun.com>
* ipmi_lan.c: Fix a couple of bits when the Send Message variant
in lan_send is used. Fix a double-unlock condition that
happens with LAN response timeouts.
* ipmi_lan.c: add a Set Session Privilege Level command to the end
of the session setup sequence. It is required because despite
what you use the in the "privilege level" field in Activate
Session command it opens in User level.
2003-04-15 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 0.2.7.
* include/OpenIPMI/ipmi_mc.h, OpenIPMI.texi: Change the name
of ipmi_bmc_get_startup_SEL_time() to ipmi_mc_get_startup_SEL_time(),
in the docs and includes, since it had already changed in the code.
2003-04-14 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 0.2.6.
2003-04-10 Louis Zhuang <louis.zhuang@linux.co.intel.com>, Corey Minyard <cminyard@mvista.com>
* include/OpenIPMI/selector.h: Added sel_select() to the include
file.
* sample.c: Added an example of using sel_select().
* selector.c: Some cleanups.
2003-04-03 Duncan Laurie <duncan@sun.com>
* ipmi_lan.c: Fixups trying to the the lan code working.
2003-04-01 Corey Minyard <cminyard@mvista.com>
* mc.c: Changed the event receiver setting so that it is always
done for new MCs, and it is done after the SDRs are read. That
way, any pending conditions for a new MC will be generated
immediately with a valid sensor to handle it.
* mc.c: Modified event handling so that events from the BMC get
delivered properly. It was not converting events from the system
interface properly.
2003-03-31 Corey Minyard <cminyard@mvista.com>
* all: Really release verion 0.2.5.
* ui.c: Reset the termios on an error exit, too.
* sdr.c: Fixed the SDR fetch to only fetch the exact amount of
data left, instead of trying to get as much as possible, when at
the end of the SDR. Apparently some hardware doesn't handle this
properly.
2003-03-27 Corey Minyard <cminyard@mvista.com>
* ipmi_smi.c: Removed the timing of commands, because the
low-level driver does it, and it introduced some race conditions.
Specifically, if OpenIPMI timed out the command and the memory
address got reused before the message came back in, then the
message would be delivered to the wrong place. It generally only
happened when sitting for a long time in the debugger (so a whole
slew of things happened at once).
* example_oem.c, Makefile.am, OpenIPMI.texi: Added an example OEM
plugin file for others to use to build their plugins.
2003-03-26 Corey Minyard <cminyard@mvista.com>
* mc.c: Fixed some problems with non-BMC SELs.
* ui.c: Added a log at startup to tell you to wait until startup
is complete.
* ui.c: Added a quit command.
2003-03-25 Corey Minyard <cminyard@mvista.com>
* ui.c: The UI will no longer attempt to read unreadable
controls.
2003-03-19 Corey Minyard <cminyard@mvista.com>
* sdr.c: Modified the reservation support handling for device
SDRs. Start out assuming that it is supported, and if it returns
an invalid command then assume it is not supported. There is no
clear way to determine if reservation is supported on device SDRs.
* sdr.c: Check the proper MC flag if it is a sensor SDR to see if
it supports device SDRs.
* configure.in: Updated version to 0.2.5.
2003-03-14 Corey Minyard <cminyard@mvista.com>
* sensor.c: Yet one more cleanup for compact sensor records,
increment the source index properly.
* sensor.c: Removed handle_deleted_sensor() and always use
ipmi_sensor_destroy() to clean up a sensor.
* control.c, include/OpenIPMI/ipmi_control.h: Added a count
for the number of controls in a control repository.
* sensor.c, include/OpenIPMI/ipmi_sensor.h: Added a count
for the number of sensors in a sensor repository.
* mc.c, include/OpenIPMI/ipmi_mc.h: Added the concept of an
MC being active or inactive. Active MCs are present in the
system. Inactive MCs are not present but referenced by SDRs, so
they cannot be deleted.
2003-03-13 Jeff Zheng <Jeff.Zheng@Intel.com>
* sample.c: Added a simple sample application.
2003-03-12 Corey Minyard <cminyard@mvista.com>
* mc.c: Fixed a cleanup case in the routine that finds or creates
an MC.
* sensor.c: Minor sensor cleanup additions.
* sensor.c: Fixed compact sensor records to copy the data contents
instead of the pointer.
2003-03-06 Corey Minyard <cminyard@mvista.com>
* configure.in: Move to version 0.2.4.
* mc.c: Cleaned up some naming (use bmc when it is a bmc).
* ui.c, basic_ui.c: Added a "reconnect" command to disconnect and
reconnect to the BMC.
* configure.in: Move to version 0.2.3.
* mc.c: Added rescanning the entities when a connection comes
|