测试机: x86
----------------------------------------------------------------------------------------------------------------------
[root@localhost 1]# printf %d//n 0x4568002a
1164443690
[root@localhost 1]# printf %d/n 0x2a006845
704669765n[root@localhost 1]# printf %d//n 0x2a006845
704669765
[root@localhost 1]#
----------------------------------------------------------------------------------------------------------------------
(gdb) x/64b param->data
0xb5c20850: 0x45 0x68 0x00 0x2a 0x29 0xaa 0x00 0x00
0xb5c20858: 0x3c 0x11 0x6e 0x7c 0xdc 0xce 0xa7 0x81
0xb5c20860: 0xdc 0xce 0x85 0x16 0x08 0x4b 0x08 0x4b
0xb5c20868: 0x00 0x16 0xf7 0x0a 0x32 0x15 0x00 0x06
0xb5c20870: 0x03 0x30 0x66 0x00 0x75 0x20 0x00 0x00
0xb5c20878: 0x01 0x80 0x00 0x00 0x00 0x00 0x00 0x00
0xb5c20880: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0xb5c20888: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
(gdb) p param->data
$13 = (void *) 0xb5c20850
(gdb) p *(u_int32_t*)param->data
$14 = 704669765
(gdb) p 0x0001
$15 = 1
(gdb) p 0x0100
$16 = 256
(gdb) p *(u_int16_t*)(param->data+39)
$17 = 256
(gdb) x/16b (param->data+39)
0xb5c20877: 0x00 0x01 0x80 0x00 0x00 0x00 0x00 0x00
0xb5c2087f: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
(gdb)