forked from maoali/freeipmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.0
1480 lines (921 loc) · 44.8 KB
/
ChangeLog.0
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
2004-05-04 Albert Chu <[email protected]>
* src/ipmi-kcs-interface.c (ipmi_kcs_write_interruptible,
ipmi_kcs_cmd_interruptible): Fixed error output corner case.
* src/ipmi-kcs-interfa.ce (ipmi_kcs_write,
ipmi_kcs_write_interruptible): Fixed return value bug. Unlock
semaphore if a EBUSY failure occurs.
2004-04-30 A Balamurugan <[email protected]>
* src/ipmi-lan-param-spec.h: new file.
* src/ipmi-serial-modem-param-spec.h: new file.
* src/Makefile.am: updated.
* src/freeipmi.h: updated.
* src/ipmi-cmd-spec.h: code cleanup.
* src/ipmi-lan-cmds.[ch]: like wise.
* src/ipmi-serial-cmds.[ch]: like wise.
2004-04-27 Anand Babu <[email protected]>
CVS tagged as release-0_1_0_alpha5-tag
2004-04-27 Albert Chu <[email protected]>
* libfreeipmi.spec.in: Fixed packaging issues.
2004-04-22 Anand Babu <[email protected]>
CVS tagged as release-0_1_0_alpha5_qa3-tag
2004-04-19 Albert Chu <[email protected]>
* src/ipmi-msg-support-cmds.c (fill_cmd_activate_session): Fixed
endian bug.
2004-04-15 Anand Babu <[email protected]>
CVS tagged as release-0_1_0_alpha5_qa2-tag
2004-04-10 Anand Babu <[email protected]>
* configure.ac: Mysteriously --enable-trace code dissappeared.
Added again.
* src/ipmi-error.h: ERR macros - check for IPMI_TRACE definition.
2004-04-06 Albert Chu <[email protected]>
* src/ipmi-error.h (ERR_EXIT), src/ipmi-utils.c (ipmi_comp_test):
Use LOG_FAC & LOG_MAKEPRI with syslog.
* src/ipmi-chassis-cmds.h (fill_cmd_set_power_restore_policy):
Added prototype.
* src/ipmi-chassis-cmds.c (fill_cmd_set_power_restore_policy,
fill_cmd_get_chassis_status, fill_cmd_chassis_ctrl): Fixed
function names. Were previously incorrect or non-consistent with
other parts of the library.
* src/ipmi-chassis-cmds.c (ipmi_set_power_restore_policy,
ipmi_get_chassis_status): Updated with function name changes.
2004-04-05 Anand Babu <[email protected]>
* src/ipmi-error.h: Pass facility argument via LOG_FAC macro to
LOG_MAKEPRI.
* src/xmalloc.c: Like wise.
2004-04-05 Albert Chu <[email protected]>
* src/ipmi-error.h (ERR, ERR_EXIT): Fixed errno output bug and
syslog parameter bug.
* src/ipmi-utils.c (ipmi_comp_test): Fixed syslog parameter bug.
2004-04-05 Anand Babu <[email protected]>
* configure.ac: added --enable-trace option.
* src/ipmi-error.h (ERR): display error info only when IPMI_TRACE
is on.
2004-04-05 Anand Babu <[email protected]>
* src/ipmi-semaphores.h: cleaned up few MACROs.
* TODO: garbaged done tasks.
* THANKS: updated.
2004-04-01 Albert Chu <[email protected]>
* src/xmalloc.c: Fixed one additional xmalloc to ipmi_xmalloc bug.
2004-04-01 A Balamurugan <[email protected]>
* src/ipmi-sensor-types.c: added event-reading-code-desc for
4,5,7,9,10 and 12. Bug #8406 fixed by passing double variables to
ipmi_sensor_threshold_health_check()
* src/ipmi-utils.c: added new function ipmi_is_root().
2004-04-01 Albert Chu <[email protected]>
* Globally renamed xmalloc to ipmi_xmalloc, xcalloc to
ipmi_xcalloc, xrealloc to ipmi_xrealloc, xstrdup to ipmi_xstrdup,
and xfree to ipmi_xfree.
* libfreeipmi.spec.in: Updated for release changes.
2004-04-01 Albert Chu <[email protected]>
* src/ipmi-sdr-repo-cache.h: Gave
IPMI_DEFAULT_SDR_REPO_CACHE_FILENAME different filename value.
* src/ipmi-semaphore.h: Gave IPMI_IPCKEY different filename value.
* libfreeipmi.spec.in: Updated for release changes.
2004-03-31 Albert Chu <[email protected]>
* libfreeipmi.spec.in: Updated for new release.
2004-03-31 Anand Babu <[email protected]>
* ipckey: new dummy file to install as ftok lock.
* src/ipmi-semaphores.[c,h]: locking and synchrinization core.
* src/ipmi-kcs-interface.c: Now supports locking and
synchronization transparently.
CVS tagged as release-0_1_0_alpha5_qa1-tag
2004-03-31 A Balamurugan <[email protected]>
* src/fiid.c: new function fiid_obj_set_data().
* src/ipmi-msg-support-cmds.c: updated fill_kcs_set_user_name()
and fill_kcs_set_user_password().
2004-03-31 A Balamurugan <[email protected]>
* src/fiid.c: fixed a bug in fiid_obj_get_data().
2004-03-30 A Balamurugan <[email protected]>
* src/fiid.c: added new function fiid_obj_get_data().
* src/ipmi-kcs-interface.c: fixed a bug in ipmi_kcs_cmd().
* src/ipmi-sdr-repo-cache.c: updated ipmi_sdr_repo_info_write()
and ipmi_sdr_records_write().
* src/ipmi-sel-record-types.c: updated ipmi_sel_get_first_entry()
and ipmi_sel_get_next_entry().
* src/ipmi-chassis-cmds.[ch]: complete rewritten with
ipmi_kcs_cmd().
* src/ipmi-lan-cmds.[ch]: like wise
* src/ipmi-msg-support-cmds.[ch]: like wise
* src/ipmi-sdr-repo-cmds.[ch]: like wise
* src/ipmi-sel-cmds.[ch]: like wise
* src/ipmi-sensor-cmds.[ch]: like wise
* src/ipmi-serial-cmds.[ch]: like wise
* src/ipmi-sol-cmds.[ch]: like wise
2004-03-30 Albert Chu <[email protected]>
* src/ipmi-sdr-repo-cache.c (ipmi_sdr_repo_cache_get_sensor_name):
New function.
2004-03-30 A Balamurugan <[email protected]>
* src/ipmi-sensor-types.c: added new functions
ipmi_sensor_threshold_health_check() and
ipmi_sensor_discrete_health_check().
2004-03-30 Anand Babu <[email protected]>
* src/ipmi-kcs-interface.c (ipmi_kcs_cmd): new procedure.
* src/ipmi-dev-global-cmds.c (ipmi_kcs_get_dev_id): rewritten to
use ipmi_kcs_cmd.
2004-03-29 A Balamurugan <[email protected]>
* src/ipmi-sensor-types.c: renamed
IPMI_SENSOR_CLASS_DIGITAL_DISCRETE to
IPMI_SENSOR_CLASS_GENERIC_DISCRETE and IPMI_SENSOR_CLASS_DISCRETE
to IPMI_SENSOR_CLASS_SENSOR_SPECIFIC_DISCRETE.
2004-03-29 Albert Chu <[email protected]>
* src/ipmi-sdr-repo-cache.c (ipmi_sdr_repo_cache_seek): Modified
seek algorithm to not re-start at the beginning of the cache if it
can be avoided.
* src/ipmi-sensor-types.c (ipmi_sensor_classify): Remove changes
from 2004-03-26 and go back to original code. Code was used
differently than macro names indicated.
2004-03-29 A Balamurugan <[email protected]>
* src/ipmi-sensor-types.c: updated struct
ipmi_sensor_type_slot_connector.
2004-03-29 Anand Babu <[email protected]>
* src/fiid.h (FIID_OBJ_GET): fixed a critical type casting bug.
* src/ipmi-dev-global-cmds.c: new definitions for product IDs and
manifacturer IDs. New device info response template for Intel
products.
2004-03-29 A Balamurugan <[email protected]>
* src/ipmi-sel-cmds.c: added new functions
ipmi_kcs_delete_sel_entry() and ipmi_kcs_clear_sel().
2004-03-28 A Balamurugan <[email protected]>
* src/ipmi-msg-interface-desc.c: new file.
* src/Makefile.am: updated
* src/freeipmi.h: updated
* src/ipmi-msg-interface-desc.h: added enum system_software_type.
* src/ipmi-sdr-repo-cache.c: now
ipmi_is_sensor_reading_available() returns false if
system_software_id > 0x47.
* src/ipmi-sensor-types.c: added ipmi_sensor_type_threshold_desc
2004-03-26 Albert Chu <[email protected]>
* src/ipmi-kcs-interface.c (unassemble_ipmi_kcs_pkt): Fix bug in
function. Function now handles packets that may be smaller than
the user expected.
* src/ipmi-sensor-cmds.c: Removed reserved3 field from
tmpl_get_sensor_threshold_reading_rs. This field is optionally
returned, not required to be returned.
* src/ipmi-sensor-types.c (ipmi_sensor_classify): Fix bug in class
calculation.
* src/ipmi-sdr-repo-cache.c (ipmi_sdr_repo_cache_sensor_classify):
Use correct template based on type.
2004-03-26 Anand Babu <[email protected]>
* src/fiid.h (FIID_OBJ_GET): fixed ptr argument bug.
* src/ipmi-dev-global-cmds.c (ipmi_kcs_get_dev_id): fixed ERR checks.
* src/ipmi-dev-global-cmds.c: prototype updated.
* Makefile.am: rewrote support for doc/examples.
2004-03-25 A Balamurugan <[email protected]>
* src/ipmi-sel-cmds.c: modified function ipmi_kcs_get_sel_entry().
* src/ipmi-sel-record-types.c: added new function
ipmi_sel_get_first_entry() and ipmi_sel_get_next_entry().
2004-03-25 Albert Chu <[email protected]>
* src/ipmi-sdr-repo-cache.h: Removed filename from
sdr_repo_cache_t structure. Added
IPMI_DEFAULT_SDR_REPO_CACHE_FILENAME.
* src/ipmi-sdr-repo-cache.h, src/ipmi-sdr-repo-cache.c
(ipmi_sdr_repo_cache_load): Added filename parameter to function.
* src/ipmi-sdr-repo-cache.h, src/ipmi-sdr-repo-cache.c: Added
corner case checks to all functions. Modified return to int from
u_int8_t in many situations, because return type may be negative.
2004-03-24 A Balamurugan <[email protected]>
* src/ipmi-sel-record-types.c: added new function
ipmi_get_sel_record_type(), template tmpl_sel_record_header and
enum ipmi_sel_record_type.
2004-03-23 Albert Chu <[email protected]>
* doc/examples/hello-sensors.c
(display_verbose_current_digital_discrete_sensor_compact_record,
display_verbose_current_discrete_sensor_compact_record): Fixed
minor bug in which string name was printed from the wrong address.
2004-03-23 Anand Babu <[email protected]>
* doc/examples/hello-sensors.c: Added Bala's Sensors subsystem
example code.
* doc/examples/Makefile: Added a generic make file.
* doc/Makefile.am: recognize examples folder. Changed
$(prefix)/doc to $(datadir)/doc now.
2004-03-23 A Balamurugan <[email protected]>
* src/ipmi-msg-support-cmds.h: added new macro
IPMI_PASSWORD_OPERATION_TEST_FAILED.
2004-03-22 Albert Chu <[email protected]>
* libfreeipmi.spec.in: Updated release.
2004-03-21 A Balamurugan <[email protected]>
* src/ipmi-chassis-cmds.c: added new function
ipmi_get_chassis_status().
* src/ipmi-msg-support-cmds.c: modified function
ipmi_kcs_set_channel_access().
2004-03-20 Albert Chu <[email protected]>
* src/rmcp.c (unassemble_rmcp_pkt): Remove packet size too big
check.
* src/ipmi-sessions.c (check_hdr_session_authcode): Fixed numerous
bugs.
* src/ipmi-debuc.c (fiid_obj_dump_lan, fiid_obj_dump_rmcp),
src/ipmi-lan-interface.c (unassemble_ipmi_lan_pkt), src/rmcp.c
(unassemble_rmcp_pkt): Fix unsigned integer arithmetic bug.
2004-03-19 Albert Chu <[email protected]>
* src/fiid.h, src/fiid.c (fiid_obj_memset): New function.
* src/ipmi-msg-support-cmds.h: Added
IPMI_AUTH_STATUS_ANONYMOUS_LOGIN_DISABLED,
IPMI_AUTH_STATUS_NULL_USERNAMES_DISABLED, and
IPMI_AUTH_STATUS_NON_NULL_USERNAMES_DISABLED macros.
IPMI_AUTH_STATUS_ANONYMOUS_LOGIN_ENABLED,
IPMI_AUTH_STATUS_NULL_USERNAMES_ENABLED, and
IPMI_AUTH_STATUS_NON_NULL_USERNAMES_ENABLED macros are now bit
values rather than masks.
* src/ipmi-sessions.c (check_hdr_session_authcode): Rewritten.
* src/ipmi-msg-support-cmds.h, src/ipmi-msg-support-cmds.c
(fill_cmd_get_session_challenge): Added username_len parameter.
2004-03-17 Albert Chu <[email protected]>
* src/ipmi-watchdog.c: Re-order template fields and function
parameter order to be consistent with other parts of libfreeipmi.
* src/rmcp.c (unassemble_rmcp_pkt): Fixed several corner cases.
* src/ipmi-debug.h, src/ipmi-debug.c (fiid_obj_dump_rmcp): New
function.
* src/fiid.c (fiid_obj_free): Fixed bug in which memory was not
being freed correctly.
* src/ipmi-msg-support-cmds.c (ipmi_lan_open_session): Fix bug in
which u_int32_t * unsafely cast to u_int64_t * with fiid_obj_get.
2004-03-16 Albert Chu <[email protected]>
* src/ipmi-kcs-interface.c (ipmi_kcs_read): Modified to return
number of bytes read.
* src/ipmi-kcs-interface.c (ipmi_kcs_write): Modified to return
number of bytes written. Added corner case checks.
2004-03-15 Albert Chu <[email protected]>
* src/ipmi-watchdog.h: Changed "ENABLED" and "DISABLED" into
"ENABLE" and "DISABLE" to be consistent with other .h files.
2004-03-15 Albert Chu <[email protected]>
* src/ipmi-kcs-interface.c (assemble_ipmi_kcs_pkt): Return length
of packet assembled rather than 0 on success.
* src/rmcp.c (assemble_rmcp_pkt): Return length of package
assembled rather than 0 on success.
* src/rmcp.c (ipmi_rmcp_ping): Modify error checks when calling
assemble_rmcp_pkt.
* src/ipmi-dev-glovbal-cmds.c (ipmi_kcs_get_dev_id): Modify error
checks when calling assemble_ipmi_kcs_pkt.
2004-03-11 Albert Chu <[email protected]>
* src/ipmi-watchdog.h, src/ipmi-watchdog.c: New files.
* src/ipmi-debug.h: Removed hex_dump prototype.
* src/freeipmi.h: Added ipmi-watchdog.h.
* src/Makefile.am: Added ipmi-watchdog.h and ipmi-watchdog.c.
2004-03-10 Albert Chu <[email protected]>
* src/ipmi-error.h, src/ipmi-error.c (ipmi_strerror_cmd_r): New function.
* src/ipmi-error.h, src/ipmi-error.c (ipmi_strerror_r): Modifed
function parameters to be more consistent with the libc
strerror_r. The new ipmi_strerror_cmd_r function takes the place
of the old ipmi_strerror_r.
* src/ipmi-utils.c (ipmi_comp_test): Modified to use new
ipmi_strerror_cmd_r.
2004-03-10 A Balamurugan <[email protected]>
* src/ipmi-sensor-utils.c: now ipmi_sensor_decode_value() decodes
-ve values.
2004-03-09 Albert Chu <[email protected]>
* src/ipmi-msg-support-cmds.h: Flipped value of
IPMI_USER_LEVEL_AUTHENTICATION_ENABLE,
IPMI_USER_LEVEL_AUTHENTICATION_DISABLE,
IPMI_PER_MESSAGE_AUTHENTICATION_ENABLE,
IPMI_PER_MESSAGE_AUTHENTICATION_DISABLE, IPMI_PEF_ALERTING_ENABLE,
and IPMI_PEF_ALERTING_DISABLE. The values were backwards from the
IPMI 1.5 specification.
* src/ipmi-debug.c (fiid_obj_dump_lan): Fixed bug in which dumps
were not output based on authcode.
* src/ipmi-lan-interface.c (unassemble_ipmi_lan_pkt): Fixed bug in
which incorrectly sized messages were never unassembled.
* src/ipmi-utils.h (FREEIPMI_MIN): New macro.
2004-03-09 Anand Babu <[email protected]>
* src/ipmi-smic-interface.[ch]: new SMIC driver.
* src/ipmi-debug.c (ipmi_smic_print_flags): new function.
* src/ipmi-kcs-interface.c: renamed get_kcs_poll_count () to
ipmi_kcs_get_poll_count (). Fixed few naming conventions and
variable types.
2004-03-06 Anand Babu <[email protected]>
CVS tagged as release-0_1_0_alpha4_qa0-tag
2004-03-06 A Balamurugan <[email protected]>
* src/ipmi-msg-support-cmds.c: new function
ipmi_kcs_get_channel_info() for command Get-Channel-Info.
2004-03-04 A Balamurugan <[email protected]>
* src/ipmi-sdr-repo-cache.c: renamed ipmi_sdr_cache_init() to
ipmi_sdr_cache_create(). added function
ipmi_sdr_repo_cache_get_sensor_group().
* src/ipmi-sensor-types.c: added function ipmi_get_sensor_group().
* src/ipmi-sensor-utils.c: ipmi_sensor_decode_value() and
ipmi_sensor_get_decode_params() now handles negative values.
2004-03-03 A Balamurugan <[email protected]>
* src/ipmi-sensor-types.c: added new element 'Unknown' in
ipmi_sensor_types.
2004-03-02 Anand Babu <[email protected]>
* src/ipmi-utils.h: added bool type with safe macro checks.
* src/ipmi-sensor-types.[ch]: fixed unresolved symbol problem and
naming conventions for ipmi_sensor_types and ipmi_sensor_units*
definitions.
* src/ipmi-kcs-interface.c: removed init_kcs_poll_count
function. kcs_poll_count is a readonly counter.
* src/ipmi-sensor-types.[c,h]: whole bunch of new definitions and
tables for discrete and digital-descrete sensors.
2004-03-02 A Balamurugan <[email protected]>
* src/ipmi-sdr-repo-cache.[ch]: new file for SDR Repository Cache
supported functions.
* src/ipmi-sensor-utils.[ch]: new file for sensor utility
functions.
* src/ipmi-error.h: in macros ERR(expr) and ERR_EXIT(expr) changed
sprintf to snprintf
* src/ipmi-sensor-types.c: added functions ipmi_sensor_classify()
and ipmi_is_oem_reserved_sensor_type().
2004-03-02 Albert Chu <[email protected]>
* src/ipmi-sessions.h (IPMI_SESSION_AUTH_TYPE_VALID): Fix corner
case.
* src/ipmi-msg-support-cmds.h (IPMI_PRIV_LEVEL_VALID): New macro.
* src/ipmi-msg-support-cmds.c (fill_cmd_get_channel_auth_caps):
Added max_priv_level parameter.
* src/ipmi-msg-support-cmds.c (ipmi_lan_get_channel_auth_caps):
Modify for change to fill_cmd_get_channel_auth_caps.
* src/ipmi-msg-support-cmds.c (fill_cmd_get_session_challenge):
Fix several corner cases.
* src/ipmi-msg-support-cmds.c (fill_cmd_activate_session): Use new
IPMI_PRIV_LEVEL_VALID macro. Fix several corner cases.
* src/ipmi-msg-support-cmds.c (fill_cmd_set_session_priv_level):
Use new IPMI_PRIV_LEVEL_VALID macro.
2004-03-01 Albert Chu <[email protected]>
* src/ipmi-debug.c (_set_prefix_str, _output_str,
_output_byte_array): New functions.
* src/ipmi-debug (fiid_obj_dump_perror, fiid_obj_dump_lan): Use
new functions _set_prefix_str, _output_str, and
_output_byte_array. Fix several output bugs.
* src/ipmi-lan-interface.c (ipmi_lan_check_net_fn,
ipmi_lan_check_rq_seq): Fix input corner case.
* src/ipmi-msg-support-cmds.h, src/ipmi-msg-support-cmds.c
(ipmi_check_cmd, ipmi_check_comp_code): New functions.
2004-02-29 Albert Chu <[email protected]>
* src/ipmi-debug.h, src/ipmi-debug.c (fiid_obj_dump_perror,
fiid_obj_dump_lan): New functions.
* src/ipmi-debug.c (fiid_obj_dump): Output to appropriate file
descriptor. Use fiid_obj_dump_perror.
* src/ipmi-lan-interface.c (assemble_ipmi_lan_pkt): Fixed a few
corner case bugs.
* src/ipmi-error.h (ERR_OUT): New macro.
2004-02-28 Albert Chu <[email protected]>
* src/ipmi-lan-interface.c (assemble_ipmi_lan_pkt): Use memcpy
instead of strcpy b/c passwords need not be one word.
* src/ipmi-lan-interface.h, src/ipmi-lan-interface.c
(ipmi_lan_check_rq_seq, ipmi_lan_check_net_fn,
ipmi_lan_check_chksum): New functions.
* src/ipmi-lan-interface.h, src/ipmi-lan-interface.c
(ipmi_lan_cmd): Changed auth_code parameter type from char to
u_int8_t. Renamed auth_code parameter to auth_code_data. Added
auth_code_data_len parameter. Modified to support more
authentication types.
* src/ipmi-msg-support-cmds.h, src/ipmi-msg-support-cmds.c
(ipmi_lan_get_hannel_auth_caps, ipmi_lan_get_session_challenge,
ipmi_lan_activate_session, ipmi_lan_set_session_priv_level,
ipmi_lan_open_session, ipmi_lan_close_session): Changed auth_code
parameter type from char to u_int8_t. Renamed auth_code parameter
to auth_code_data. Added auth_code_data_len parameter.
* src/ipmi-msg-support-cmds.c (ipmi_lan_get_channel_auth_caps,
ipmi_lan_get_session_challenge, ipmi_lan_activate_session,
ipmi_lan_set_session_priv_level, ipmi_lan_open_session,
ipmi_lan_close_session): Modified to support change to
ipmi_lan_cmd().
* src/ipmi-utils.h, src/ipmi-utils.c (ipmi_lan_chksum_test):
Removed function.
* src/ipmi-lan-interface.c (ipmi_lan_cmd): Use ipmi_lan_recvfrom
properly. Use new ipmi_lan_check_chksum() function.
2004-02-27 Albert Chu <[email protected]>
* src/ipmi-debug.c: Removed various unused and now unnecessary
functions and macros.
* src/ipmi-sessions.h, src/ipmi-sessions.c
(check_hdr_session_authcode, check_hdr_session_session_seq_num,
check_hdr_session_session_id): New functions.
* src/ipmi-lan-interface.c (unassemble_ipmi_lan_pkt): Fix md2/md5
checksum calculations bug. Add support for
tmpl_hdr_session_auth_calc template.
2004-02-24 Anand Babu <[email protected]>
* src/ipmi-sensor-types.c: sensor_unit_type_code_short_str new
short type codes.
2004-02-21 Albert Chu <[email protected]>
* src/ipmi-sessions.h: Added IPMI_SESSION_AUTH_TYPE_VALID macro.
* src/ipmi-sessions.h, src/ipmi-sessions.c: Added
tmpl_hdr_session_auth_calc template.
* src/ipmi-sessions.h, src/ipmi-sessions.c (fill_hdr_session):
Changed auth_code parameter type from char to u_int8_t. Renamed
auth_code parameter to auth_code_data. Added auth_code_data_len
parameter. Use new IPMI_SESSION_AUTH_TYPE_VALID macro. Added
support for new tmpl_hdr_session_auth_calc template.
* src/ipmi-lan-interface.h: Removed IPMI_LAN_PKT_SIZE,
IPMI_LAN_PKT_RQ_SIZE, and IPMI_LAN_PKT_RS_SIZE macros. Modified
IPMI_LAN_PKT_RQ_CHKSUM2_BLOCK_INDX and
IPMI_LAN_PKT_RS_CHKSUM2_BLOCK_INDX to calculate block indexes
dependent on the authentication type.
* src/ipmi-lan-interface.h, src/ipmi-lan-interface.c
(assemble_ipmi_lan_pkt): Changed return type from int8_t to
int32_t.
* src/ipmi-lan-interface.c (_ipmi_lan_pkt_size,
_ipmi_lan_pkt_rq_size, _ipmi_lan_pkt_rs_size): New functions.
* src/ipmi-lan-interface.c (assemble_ipmi_lan_pkt,
unassemble_ipmi_lan_pkt): Re-worked to support
tmpl_hdr_session_auth_calc session header template and varying
authentication types, including none, md2, and m5, instead of just
straight passwd key.
* src/ipmi-lan-interface.c (ipmi_lan_cmd): Re-worked to use new
functions. Will now only work with authentication type none or
straight passwd key.
* src/ipmi-error.h (ERR): Add newlines to error outputs.
* src/ipmi-error.c (ERR_EXIT): New macro.
* src/ipmi-md5.c (_ipmi_md5_append_padding_and_length): Changed
"else if" to "else" that caused compiler warning.
* src/ipmi-utils.h, src/ipmi-utils.c (ipmi_lan_chksum_test): Added
auth_type parameter.
* src/ipmi-utils.c (ipmi_lan_chksum_test): Modified to support
checksum checks of multiple authentication types.
2004-02-18 Anand Babu <[email protected]>
* QA-RELEASE: freeipmi-0.1.0-alpha3-qa0 release. Will TAG CVS after
passing QA. Downloads will be available from
ftp://ftp.californiadigital.com/pub/freeipmi/
2004-02-17 Albert Chu <[email protected]>
* Tagged current repository state libfreeipmi-0-0-0-0-alpha2.
* libfreeipmi.spec.in: Updated release and changed refresh to
autogen. Added /usr/doc files.
* BUGS: New file.
2004-02-16 A Balamurugan <[email protected]>
* src/bits-ops.c: bits_merge msb/lsb bug fixed.
* src/ipmi-lan-cmds.c: modified fiid template for
kcs_lan_set_auth_type_enables.
* src/ipmi-msg-support-cmds.c: fixed wrong command macro to
IPMI_CMD_GET_USER_ACCESS_CMD in ipmi_kcs_get_user_access().
* src/ipmi-msg-support-cmds.h: added macros
IPMI_PRIV_LEVEL_NO_ACCESS, IPMI_CHANNEL_ACCESS_GET_NON_VOLATILE
and IPMI_CHANNEL_ACCESS_GET_VOLATILE.
* src/ipmi-serial-cmds.h: added missing 'parameter_selector' in
tmpl_set_serial_conf_param_connmode_rq,
tmpl_set_serial_conf_param_pageblackout_rq,
tmpl_set_serial_conf_param_retry_rq and
tmpl_set_serial_conf_param_commbits_rq.
* src/ipmi-serial-cmds.h: added macros
IPMI_SERIAL_CONF_GET_PARAMETER and
IPMI_SERIAL_CONF_GET_PARAMETER_REVISION.
2004-02-15 Anand Babu <[email protected]>
* src/ipmi-kcs-interface.c: changed return type to int from void
for ipmi_kcs_io_init ().
2004-02-13 A Balamurugan <[email protected]>
* src/ipmi-kcs-interface.c: add new ipmi_kcs_sleep_usecs and
kcs_poll_count control variables. Add new functions
init_kcs_poll_count(), get_kcs_poll_count() and
fill_hdr_ipmi_kcs().
2004-02-13 Ian Zimmerman <[email protected]>
* src/Makefile.am: add new files ipmi-serial-cmds.[ch]
* src/ipmi-serial-cmds.c: new file
* src/ipmi-serial-cmds.h: new file
* src/ipmi-msg-support.c, src/ipmi-msg-support.h: add new commands to
be used in bmcconfig
* src/ipmi-lan-cmds.c, src/ipmi-lan-cmds.h: add new commands to
be used in bmcconfig
2004-02-13 Albert Chu <[email protected]>
* src/ipmi-md2.h, src/ipmi-md2.c, src/ipmi-md5.h, src/ipmi-md5.c:
New files.
* src/freeipmi.h, src/Makefile.am: Updated for new files.
2004-02-11 Anand Babu <[email protected]>
* ipmi-sensor-types.c: new file. Sensor type strings.
2004-02-10 Anand Babu <[email protected]>
* src/fiid.[c,h]: fiid_obj_alloc now uses xcalloc. new
FIID_OBJ_SET/GET, FIID_OBJ_ALLOC, FIID_OBJ_ALLOCA
macros. fiid_obj_t becomes fiid_template_t and fiid_obj_t
redefined as u_int8_t *. new function fiid_obj_field_lookup.
Patch from Bala <[email protected]> - added
functions/macros to create dynamic fiid templates
fiid_template_make(), __fiid_template_make(),
fiid_template_free().
* src/ipmi-lan-interface.c: rewritten from scratch - easier,
cleaner and layered. Now supports new fiid model.
* src/ipmi-dev-global-cmds.c: ported to fiid model.
* src/rmcp.h: removed obsolete macros. New function ipmi_comp_test.
* src/rmcp.c: rewritten to support new fiid model + enhancements.
* src/ipmi-debug.c: removed struct based display routines. Needs more
discusion on the mailing list.
* src/ipmi-msg-cmds.h: removed from CVS - dependent on struct
fields. Framework has changed, new implementation will go into
appropriate files. More discussion on the mailing list.
* src/smbios.h, src/smbios.c: uniform naming convention changes.
* src/ipmi-utils.c: ipmi_lan_chksum_test now valides both chksum1
and chksum2. ipmi_strerr_r now accepts fiid_obj_t and returns
comp_code. New function ipmi_input_timeout.
* src/xmalloc.c: syslog upon allocation failure and set errno to
ENOMEM. new xfree call.
* src/ipmi-error.h: libfreeipmi only ERR macro to log and return
upon failure.
* src/ipmi-sdr-record-types.[c,h]: New file - SDR record
types. Patch from Bala <[email protected]>
* src/ipmi-sdr-repo-cmds.[c,h]: New file - SDR commands - Get
Repository Info, Get SDR Repository Allocation Info, Reserve SDR
Repository and Get SDR. Patch from Bala
<[email protected]>. Replaced function prefix from
ipmi_sdr_ to ipmi_kcs_.
* src/ipmi-sensor-cmds.[c,h]: New file - Sensor commands - Get
Device SDR Info, Get Device SDR, Reserve Device SDR Repository,
Get Sensor Reading Factors, Set Sensor Hysteresis, Get Sensor
Hysteresis, Set Sensor Threshold, Sensor Threshold, Set Sensor
Event Enable, Get Sensor Event Status, Sensor Reading, Sensor
Type, Get Sensor Type. Patch from Bala
<[email protected]>. Replaced function prefix from
ipmi_snsr_ to ipmi_kcs_
* src/ipmi-sensor-types.h: New file - Sensor types and Sensor unit
types. Patch from Bala <[email protected]>.
* src/ipmi-sel-cmds.[c,h]: New file - SEL subsystem.
Patch from Bala <[email protected]>.
* src/ipmi-sel-record-types.[c,h]: New file - SEL subsystem.
Patch from Bala <[email protected]>.
* src/ipmi-msg-support-cmds.c: completly rewritten from
scratch. All new APIs and functionalities.
* src/smbios.c: copy_impi_dev_info(...) initialized *result to
NULL.
* TODO: updated
* AUTHORS: added Ian Zimmerman <[email protected]> and
Balamurugan <[email protected]>
2003-12-24 Anand Babu <[email protected]>
* src/ipmi-kcs-interface.c, src/ipmi-dev-global-cmds.c,
src/fiid.c: fixed serious bugs. All lengths are represented as
bytes at the top level. bit-level len is abstracted.
2003-12-23 Anand Babu <[email protected]>
* src/ipmi-kcs-interface.c: fixed fiid_alloc allocation size bug
reported by Ian <[email protected]>.
* src/ipmi-dev-global-cmds.c: fixed memory freeing bug reported by
Al <[email protected]>
* src/smbios.c, src/smbios.h: integrated Ian's SMBIOS probe
functionality.
* libfreeipmi: merged with old savannah code base. LAN-fiid in
next commit.
2003-12-21 Anand Babu <[email protected]>
* src/fiid.c: new FreeIPMI Interface Definition framework jointly
developed by Bala <[email protected]> and myself.
* src/bit-ops.[c,h]: rich set of BIT manipulation
macros and functions.
* src/ipmi-kcs-interface.c: ported to new FIID framework. Now
accepts port from user.
* src/ipmi-dev-global-cmds.c: ported to new FIID framework.
2003-12-14 Anand Babu <[email protected]>
* src/ipmi-kcs-interface.c, src/ipmi-kcs-interface.c: new kcs init
macro. New _INB, _OUTB portable macros. Complete interface change
to accept port probed by the driver dynamically.
* src/ipmi-debug.c: new function to print kcs register state.
* src/ipmi-lan-interface.c: replaced alloca with xmalloc. alloca
is also ok as long as we do not allocate beyond the stack
rlimit. Portability is not a big concern, __builtin_alloca works
with little performance penalty.
* src/xmalloc.c: split into header and source.
* src/freeipmi.h: includes system.h and xmalloc.h
2003-12-08 Anand Babu <[email protected]>
* src/ipmi-kcs-interface.c, src/ipmi-kcs-interface.c: new
user-space inband KCS driver.
* src/ipmi-error.h: new kcs status code definitions.
* src/ipmi-error.c: new kcs status code str error
function. Split ERR_RET macro to _ERR and _ERR_RET. Fixed
"unspecified control code" return 0 bug.
2003-12-03 Albert Chu <[email protected]>
* src/ipmi-lan-interface.h, src/ipmi-lan-interface.c
(assemble_ipmi_lan_pre_session_rq_pkt, assemble_ipmi_lan_rq_pkt):
net_fn_t parameter type split into u_int8_t net_fn and u_int8_t
lun parameters. Added net_fn parameter check.
* src/ipmi-msg-cmds.h: Made all macros upper case and prefixed
with "IPMI_" to avoid potential name space pollution.
* src/rmcp.h: Made all macros upper case and prefixed with "RMCP_"
to avoid potential name space pollution. Renamed many macros
based on the wierdness of the resulting macro name.
* src/ipmi-msg-support-cmds.h: Modified struct
ipmi_cmd_get_channel_auth_caps_rs "anonymous_login:3" field to be
three one-bit fields.
* src/ipmi-msg-cmds.h (IPMI_ANONYMOUS_LOGIN_ENABLED,
IPMI_NULL_USERNAMES_ENABLED, IPMI_NON_NULL_USERNAMES_ENABLED):
Modified for change in struct ipmi_cmd_get_channel_auth_caps_rs.
2003-12-02 Anand Babu <[email protected]>
* src/ipmi-lan-core.c, src/ipmi-lan-core.h: removed. Related code moved to
ipmi-lan-interface.{c,h}.
* src/ipmi-msg-support.h: moved net_fn_t to ipmi-netfn-spec.h. Renamed
ipmi_msg_rq and ipmi_msg_rs as ipmi_lan_msg_rq and ipmi_lan_msg_rs
to ipmi_lan_interface.{c,h}. Removed ipmi_session_t and
ipmi_lan_msg_rq_t headers from all commands. Replaced struct
anonymous_login with u_int8_t:3 for packing. Added
anonymous_login_status macro definitions. All functions and
structs will deal only the command part from now on.
* src/ipmi-chassis-cmds.h: Removed ipmi_session_t and
ipmi_lan_msg_rq_t headers from all commands.
* src/ipmi-kcs-interface.c, src/ipmi-kcs-interface.c: new BMC SMS
interface for inband userspace communication.
* src/ipmi-sessions.c, src/ipmi-sessions.h: moved sessions related code
from ipmi-msg-support-cmds.h
* src/ipmi-utils.c: 2 new functions ipmi_lan_pre_session_chksum_test,
ipmi_lan_chksum_test.
* src/ipmi-debug.c: broken. Needs rework for the new interface.
* src/rmcp.c: swapped msg_tag and presence_pong.
* refresh: renamed to autogen.sh. Thanks to Ben Woodard
2003-11-28 Albert Chu <[email protected]>
* src/rmcp.h: Added RMCP_ASF_PRESENCE_PONG_MESSAGE_TAG_MAX macro.
Added several more helper macros.
* src/rmcp.h, src/rmcp.c (rmcp_asf_presence_ping): Added
message_tag parameter. Parameter check also ensures tag is within
range.
* src/rmcp.h, src/rmcp.c (rmcp_hdr): New function.
* src/rmcp.c (rmcp_ipmi_hdr, rmcp_asf_hdr): Modified functions to
use new rmcp_hdr function.
* Tagged current repository state libfreeipmi-0-0-0-0-alpha1.
2003-11-26 Albert Chu <[email protected]>
* src/ipmi-debug.c (rmcp_hdr_dump): Added missing dump fields.