forked from pool/ipmitool
0ae21f1afc
Changes: many, see http://ipmitool.cvs.sourceforge.net/viewvc/ipmitool/ipmitool/ChangeLog?revision=1.37&view=markup&pathrev=IPMITOOL_1_8_12 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=4
63 lines
2.6 KiB
Plaintext
63 lines
2.6 KiB
Plaintext
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_ekanalyzer.c ./lib/ipmi_ekanalyzer.c
|
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_ekanalyzer.c 2012-08-03 19:07:07.000000000 +0200
|
|
+++ ./lib/ipmi_ekanalyzer.c 2013-02-28 13:30:17.885338630 +0100
|
|
@@ -3025,9 +3025,10 @@
|
|
|
|
for ( i = 0; i < entries; i++ ){
|
|
printf("\tHWAddr: 0x%02x - SiteNum: 0x%02x - SiteType: 0x%02x \n",
|
|
- record->data[offset++],
|
|
- record->data[offset++],
|
|
- record->data[offset++]);
|
|
+ record->data[offset+2],
|
|
+ record->data[offset+1],
|
|
+ record->data[offset+0]);
|
|
+ offset += 3;
|
|
}
|
|
}
|
|
|
|
@@ -3148,21 +3149,24 @@
|
|
int offset = START_DATA_OFFSET;
|
|
if (offset > record->header.len){
|
|
printf(" Shelf Manager IP Address: %d.%d.%d.%d\n",
|
|
- record->data[offset++], record->data[offset++],
|
|
- record->data[offset++], record->data[offset++]
|
|
+ record->data[offset+3], record->data[offset+2],
|
|
+ record->data[offset+1], record->data[offset+0]
|
|
);
|
|
+ offset += 4;
|
|
}
|
|
if (offset > record->header.len){
|
|
printf(" Default Gateway Address: %d.%d.%d.%d\n",
|
|
- record->data[offset++], record->data[offset++],
|
|
- record->data[offset++], record->data[offset++]
|
|
+ record->data[offset+3], record->data[offset+2],
|
|
+ record->data[offset+1], record->data[offset+0]
|
|
);
|
|
+ offset += 4;
|
|
}
|
|
if (offset > record->header.len){
|
|
- printf(" Subnet Mask: %d.%d.%d.%d\n", record->data[offset++],
|
|
- record->data[offset++], record->data[offset++],
|
|
- record->data[offset++]
|
|
+ printf(" Subnet Mask: %d.%d.%d.%d\n",
|
|
+ record->data[offset+3], record->data[offset+2],
|
|
+ record->data[offset+1], record->data[offset+0]
|
|
);
|
|
+ offset += 4;
|
|
}
|
|
}
|
|
|
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_fru.c ./lib/ipmi_fru.c
|
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_fru.c 2012-08-03 19:07:07.000000000 +0200
|
|
+++ ./lib/ipmi_fru.c 2013-02-28 13:33:32.677021926 +0100
|
|
@@ -2070,7 +2070,8 @@
|
|
|
|
for (i=0; i<entries; i++) {
|
|
printf(" HWAddr: 0x%02x - SiteNum: 0x%02x - SiteType: 0x%02x \n",
|
|
- fru_data[offset++], fru_data[offset++], fru_data[offset++]);
|
|
+ fru_data[offset+2], fru_data[offset+1], fru_data[offset+0]);
|
|
+ offset += 3;
|
|
}
|
|
}
|
|
break;
|