220 Commits

Author SHA1 Message Date
Boris Ranto
c89be0354a ID:446 - Fix broken firewall reset iterator
The netfn structures are populated sequentially in the _gather_info
function and they are accessed only by even indices (and to the double
of its real length). This results in a segmentation fault if you run

* ipmitool firewall reset

This patch fixes the behaviour so that the ipmi_firewall_reset function
treats the structure the same way as the rest of the code does.

Signed-off-by: Boris Ranto <branto@redhat.com>
2016-06-06 06:43:35 +02:00
Zdenek Styblik
7e991a18e0 ID:355 - Fix statements without effect in lib/ipmi_ekanalyzer.c 2016-05-30 20:38:46 +02:00
Zdenek Styblik
b42c16d9dc ID:355 - Fix printf format in lib/ipmi_sunoem.c 2016-05-30 20:38:17 +02:00
Zdenek Styblik
55834ec3aa ID:355 - Fix different pointer type in lib/ipmi_picmg.c
... just change `char` to uint8_t, really.
2016-05-30 20:36:37 +02:00
Zdenek Styblik
a7b0c213f9 ID:355 - Fix missing struct initializers in lib/ipmi_firewall.c 2016-05-30 20:19:33 +02:00
Zdenek Styblik
70253df032 ID:355 - Fix signedness warnings in lib/ipmi_sdr.c 2016-05-30 06:42:13 +02:00
Zdenek Styblik
ec8ba928d4 ID:355 - Comment out statement without effect in lib/ipmi_sel.c 2016-05-30 06:41:38 +02:00
Zdenek Styblik
f62a16f7f2 ID:355 - Fix printf() related warnings in lib/ipmi_delloem.c 2016-05-30 06:38:09 +02:00
Zdenek Styblik
681bc21d32 ID:355 - Move section_id from ipmi_fru. to ipmi_fru.c
... since that's the only place where it's used right now. It might be worth to
rework this concept.
2016-05-29 21:03:25 +02:00
Zdenek Styblik
8ca47f21ca ID:441 - Add support for HMAC_MD5 and HMAC_SHA256
Commit adds support for cipher suites 6/7/8 (HMAC-MD5) and cipher
suites 15/16/17 (HMAC_SHA256).
This also fixes:
* ID:442 - IPMI_AUTH_RAKP_HMAC_MD5 support in lanplus
* ID:141 - RMCP+ Cipher-suite 17 not supported

Original author Liebig Holger(Fujitsu).
Code cleanup done by Florian Breu and Zdenek Styblik.
2016-05-28 13:32:45 +02:00
Zdenek Styblik
b74c20c5d5 ID:312 - Fix bitmask in _ipmi_set_pef_policy_entry()
Commit fixes wrong bitmask in _ipmi_set_pef_policy_entry(). Also, bitmask
defined by macro is used in _ipmi_get_pef_policy_entry() as well.
2016-05-22 18:51:27 +02:00
Zdenek Styblik
ebe6b0ce48 ID:287 - Fix print-out of DDR3 SDRAM Serial Number
Commit fixes print-out of DDR3 SDRAM Serial Number. This was caused by printing
out more bytes/chars and some weird pointer tricks.
2016-05-17 20:54:09 +02:00
Dmitry Bazhenov
b44366e92d ID:400 - Add support for VITA-specific sensor types and events.
Reworked event type code/sensor type parsing in order to support
VITA-specific extensions. Added VITA-specific sensor-specific event
types and VITA-specific sensor types.
2016-05-17 20:49:06 +02:00
Zdenek Styblik
e88e5c8186 ID:287 - Remove trailing white-spaces from dimm_spd.c
Commit removes trailing white-spaces from lib/dimm_spd.c
2016-05-16 21:55:52 +02:00
Zdenek Styblik
107e6affd0 ID:312 - BREAKING CHANGE - Re-design of PEF user interface
Commit re-works user interface of PEF module as well as internal functions.
Not all of the functionality is implemented as the main aim was interface
layout.
It's possible this commit introduces some breaking changes.

Changes are based on patch submitted by Jordan Hargrave, Dell Inc.
2016-05-16 19:18:19 +02:00
Zdenek Styblik
5fca596492 Re-work ipmi_mc_get_guid() and turn it into reusable code 2016-05-16 19:18:19 +02:00
Boris Ranto
ccfa5aec4f ID 408 - fix sel list last X listing
The events can be removed as desired on certain machines so the only way
to get the proper last X events is to traverse them all not outputting
the first NR_EVENTS - X events.

Signed-off-by: Boris Ranto <branto@redhat.com>
2016-05-03 06:32:07 +02:00
Zdenek Styblik
1636dbcf0c ID 440 - remove obsolete headers from lib/ipmi_sunoem.c
Commit removes headers which have been obsoleted by POSIX.1-2001.
2016-04-24 18:24:14 +02:00
Dmitry Bazhenov
9f2072e6c3 ID 440 - Fix 'unknown type name fd_set" error.
Cygwin64 build fails at 'lib/ipmi_sunoem.c' due to
missing include. This patch fixes the issue.
2016-04-24 18:10:58 +02:00
Zdenek Styblik
d57bf32668 Check rsp->data_len in ipmi_sel_get_info()
Commit adds check of response's data_len in ipmi_sel_get_info() as returned data
length is unconditional. If incorrect, resp. short, data_len is returned, we
might end up reading memory at places we're not supposed to.
2016-04-12 21:09:52 +02:00
Dennis Schridde
0d6a45357b Fix several implicit function declarations in lib/ipmi_fru.c
* ipmi_intf_get_max_request_data_size
* ipmi_intf_get_max_response_data_size
* ipmi_spd_print_fru
2016-04-11 17:18:46 +02:00
Dennis Schridde
d1b0e68515 Fix warning: suggest parentheses around '+' inside '<<' in lib/ipmi_main.c 2016-04-11 17:18:46 +02:00
Dennis Schridde
4520b6ff0e Fix several implicit declarations of functions in lib/ipmi_main.c
* ipmi_vita_ipmb_address
* vita_discover
* ipmi_kontronoem_set_large_buffer
* ipmi_intf_set_max_request_data_size
2016-04-11 17:18:46 +02:00
Dennis Schridde
a40737f856 Fix implicit declarations of functions 'HpmfwupgPreUpgradeCheck' and 'ipmi_intf_get_max_request_data_size' in lib/ipmi_hpmfwupg.c 2016-04-11 17:18:46 +02:00
Dennis Schridde
a40d51abff Fix implicit declaration of function 'get_nic_selection_mode_12g' in lib/ipmi_delloem.c 2016-04-11 17:18:46 +02:00
Dennis Schridde
baa2c08ab3 Fix implicit declarations of functions 'ipmi_intf_set_max_request_data_size' and 'ipmi_intf_set_max_response_data_size' in lib/hpm2.c 2016-04-11 17:18:40 +02:00
Dennis Schridde
19423c68d0 Fix implicit function declaration of ipmi_intf_get_max_response_data_size in lib/ipmi_sdr.c 2016-04-11 17:18:40 +02:00
Dennis Schridde
0f896e36f2 Fix "redirecting incorrect #include <sys/poll.h> to <poll.h>" warning with musl libc 2016-04-11 17:18:40 +02:00
Vasant Hegde
c7169bc27e ID:437 - sel: Fix "sel time set <time>"
Presently 'sel time set' doesn't account 'minute' difference between timezone.
So depending on host timezone it may set time to +/-30 mins. This patch adds
minute difference to delta_hour caluclation so that it sets time properly.

output without patch:
  # ./ipmitool sel time get
  03/24/2016 12:34:03
  # ./ipmitool sel time set "03/24/2016 12:34:03"
  03/24/2016 12:04:03
  # ./ipmitool sel time get
  03/24/2016 12:06:09

output with patch:

  # ./ipmitool sel time get
  03/30/2016 08:49:47
  # ./ipmitool sel time set "03/30/2016 08:09:47"
  03/30/2016 08:09:47
  # ./ipmitool sel get
  03/30/2016 08:09:57

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2016-04-10 15:57:07 +02:00
Dong Debin
d6ca800da2 ID:430 - Change Nokia Siemens Networks to Nokia Solutions and Networks 2016-03-27 20:28:58 +02:00
Zdenek Styblik
8fe8a5c74c Fix automake compatibility warnings
Commit fixes future compatibility warnings from automake.
2016-03-16 19:41:38 +01:00
Gianfranco Costamagna
9639cb3fa1 Get rid of old INCLUDES macro, use AM_CPPFLAGS instead. 2016-03-15 12:08:23 +01:00
Zdenek Styblik
d65658aacc Remove #if 0 code aka not-compiled-in
Commit removes code which resides in `#if 0` block. Why? Because this code
doesn't get compiled in, so there is no reason for it to be around.
2016-03-14 21:19:52 +01:00
Zdenek Styblik
4648843f81 Remove trailing white-spaces in lib/log.c 2016-03-14 20:37:33 +01:00
Zdenek Styblik
24ebe2fed9 ID:355 - Remove declared, but not used variables
Commit removes bunch of declared, but not used, variables.
2016-03-14 20:19:35 +01:00
Zdenek Styblik
2b8974fb22 ID:355 - Add #include <strings.h> to lib/ipmi_sel.c 2016-03-14 18:56:11 +01:00
Zdenek Styblik
38241decc7 ID:427 - Cleanup comment in ipmi_sdr_get_header()
Commit cleans up comment in ipmi_sdr_get_header() a bit.
2016-03-13 18:21:38 +01:00
Puwen
a6a67e5e9c ID:427 - The first two bytes of dumped raw SDR data is wrong.
When we dumped the raw SDR data, the first Record ID will overwrite by 0x0000
2016-03-13 18:18:29 +01:00
Puwen
ac646c329b ID:428 - Update IANA numbers / Product Name for IBM and ADLINK
Updated ID String of IANA Enterprise numbers for IBM and ADLINK
Updated ID String of ADLINK Products
2016-03-13 18:02:31 +01:00
Jens Nyberg
cacdd1b6ec ID:431 - Fix correct interpretation of led states
The LED state bits are not mutually exclusive. Bit [0] says LEDs can be
controlled locally and the state bit [1] says wheter the default local
settings or the override settings are used. This means that both bits can be
set at the same time.

Bit [2], the lamp test, indicates wether the test is in progress and logically
works the same as [1].

If bit [0] is not set then bit [1] and [2] has no meaning.

Signed-off-by: Jens Nyberg <jens.nyberg@ericsson.com>
2016-03-13 11:54:07 +01:00
Zdenek Styblik
eb5c73c04e ID:355 - Add macros and #include and reduce number of warnings
Commit adds macros and #include in order to bring down the number of `warning:
implicit declaration of function 'X' [-Wimplicit-function-declaration]`
warnings.
2016-03-13 11:40:10 +01:00
BenTech2
55b024f573 ID:424 - Update dimm_spd.c with data from the latest JEDEC List
Commit updates code in 'lib/dimm_spd.c' with the data from the latest JEDEC list.
2016-02-27 14:06:15 +01:00
Zdenek Styblik
e1897e2a1d ID:423 - Don't assume internal use area is present in ekanalyzer
... use information in FRU header instead.

Patch by Hinko Kocevar.
2016-02-27 13:36:40 +01:00
Zdenek Styblik
4e707af583 ID:355 - Move Super Micro stuff into dedicated header file
Commit moves Super Micro stuff into dedicated header file in order to cut down
on compiler warnings. It seems these aren't used elsewhere other than in
'lib/ipmi_sel.c'.
2016-02-27 13:17:29 +01:00
Zdenek Styblik
dc5dead291 ID:414 - ekanalyzer frushow fails to show 'Product Info' correctly
Commit removes redundant fread() which led to 'ekanalyzer frushow' not to show
'Product Info' correctly.
2016-02-27 10:12:06 +01:00
Zdenek Styblik
b8ca3cac3a ID:417 - Fix some typos
Commit fixes typos in texts in code, print-outs, README and man page.

Submitted by Jörg Frings-Fürst
2016-02-27 10:03:44 +01:00
Dmitry Bazhenov
9020b67347 ID:411 - Fix HPM.2 revision check for R1.1 and subsequent specification revisions. 2016-01-20 07:09:44 +01:00
Alexander Yurtsev
f62b924cb4 ID:413 - Print new line chne character when setting user privilege.
The ouput sting on setting user privilege level is missing the trailing new line character.
Add the missing character.
2016-01-19 20:41:58 +01:00
Alexander Yurtsev
8055e0d9fb ID:412 - Check errors when setting a user password.
An error which can happen when setting a user password is silently ignored.
Add a completion code check and report error if any.
2016-01-19 20:40:15 +01:00
Björn Spruck
ac1b3e1d46 ID:404 - Edit FRU information update problem
Targets as a problem with editing FRUs (like ipmitool ....
fru edit 0 field b 0 "blahblah") where the header (multirecord area offset) is
not correctly updated.

It is supposed to modify the header offset to muti-record area if any of
the three previous areas has been edited.

Remark: this has to occur before the new header crc is calculated.
Thats the reson the modification is not close to the actual movement of the
data. Maybe it would be nicer to change the order in the code here. But
I do not want to add undesired behaviour, thus keeping a clear and small
patch.
2015-12-14 07:00:36 +01:00