10、一定要注意,我们做的所有累加也是网络字节序,这里一定要搞清楚,以防混淆搞错了 sum+=(pUdpHeader->len>>8&0x00FF);2个字节的累加,先取网络字节序的高位,右移8位,变成主机字节序的低位,累加 sum+=(pUdpHeader->len<<8&0xFF00);在取网络字节序的低位,左移8位,变成主机字节序的高位,累加 sum =Checksum(sum,(VOID*)&pIpHeader->saddr,4); sum =Checksum(sum,(VOID*)&pIpHeade