UDP计算校验和 static unsigned short checksum(unsigned short *pwbuffer,uint32_t size) { unsigned long cksum=0; while(size > 1){ cksum+=*pwbuffer++; size-=sizeof(uint16_t); Linux C 2023-06-14 47 点赞 0 评论 71 浏览