mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3608761 - 'lib/ipmi_main.c' - PICMG Get Device Locator was never run
This code was moved to ipmi_main.c from open.c and in the change a bug was introduced where the PICMG Get Device Locator command would not be run unless the user explicitly set my_addr to 0 with the -m command. The more sensible thing to do is to run this unless the user explictly overrides it with the -m option. Commit for Dan Gora
This commit is contained in:
parent
3687a6cbb8
commit
49a7ceee70
@ -364,7 +364,7 @@ ipmi_main(int argc, char ** argv,
|
|||||||
uint8_t transit_addr = 0;
|
uint8_t transit_addr = 0;
|
||||||
uint8_t transit_channel = 0;
|
uint8_t transit_channel = 0;
|
||||||
uint8_t target_lun = 0;
|
uint8_t target_lun = 0;
|
||||||
uint8_t my_addr = 0x20;
|
uint8_t my_addr = 0;
|
||||||
uint16_t my_long_packet_size=0;
|
uint16_t my_long_packet_size=0;
|
||||||
uint8_t my_long_packet_set=0;
|
uint8_t my_long_packet_set=0;
|
||||||
uint8_t lookupbit = 0x10; /* use name-only lookup by default */
|
uint8_t lookupbit = 0x10; /* use name-only lookup by default */
|
||||||
@ -892,6 +892,9 @@ ipmi_main(int argc, char ** argv,
|
|||||||
if (my_addr) {
|
if (my_addr) {
|
||||||
ipmi_main_intf->my_addr = my_addr;
|
ipmi_main_intf->my_addr = my_addr;
|
||||||
} else {
|
} else {
|
||||||
|
/* Use the default for the payload source address */
|
||||||
|
my_addr = 0x20;
|
||||||
|
|
||||||
/* Check if PICMG extension is available to use the function
|
/* Check if PICMG extension is available to use the function
|
||||||
* GetDeviceLocator to retreive i2c address PICMG hack to set
|
* GetDeviceLocator to retreive i2c address PICMG hack to set
|
||||||
* right IPMB address, If extension is not supported, should
|
* right IPMB address, If extension is not supported, should
|
||||||
|
Loading…
x
Reference in New Issue
Block a user