ADS里struct定义怪问题,你遇到过吗?
typedef struct{
BYTE adrress[6];
}eth_address;
typedef struct {
WORD hwType;
WORD protType;
WORD hwProtAddrLen; // hw and prot addr lengths
WORD opcode;
char srcEthAddr[6];
DWORD srcIPAddr;
char dstEthAddr[6];
DWORD dstIPAddr;
} arp_Header;
sizeof(arp_Header)=????
VC里为:32
ADS1.2里为:32
Keil里为:28
为什么
发表时间:2004年10月10日15:40:03