文件名称:checkjiaoyan
介绍说明--下载内容均来自于网络,请自行研究使用
1. 算法原理:当发送IP包时,需要计算IP报头的校验和:当接收IP包时,需要对报头进行确认,检查IP头是否有误,算法同上2、3步,然后判断取反的结果是否为0,是则正确,否则有错。
2. 实现功能:计算输入数据的校验和,以判断接收数据是否正确
-1. Algorithm principle : When sending IP packets, it needs to calculate the IP header checksum : When receiving IP packets. need to confirm reported first check whether the IP header error, the algorithm ditto two, three steps, then obtain judgment against the results of 0, it is correct, otherwise it is not true. 2. Implementation functions : calculate the checksum data entry and to judge whether the data correctly
2. 实现功能:计算输入数据的校验和,以判断接收数据是否正确
-1. Algorithm principle : When sending IP packets, it needs to calculate the IP header checksum : When receiving IP packets. need to confirm reported first check whether the IP header error, the algorithm ditto two, three steps, then obtain judgment against the results of 0, it is correct, otherwise it is not true. 2. Implementation functions : calculate the checksum data entry and to judge whether the data correctly
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 51622464checkjiaoyan.rar 列表 checkjiaoyan\CheckSum.c checkjiaoyan\CHECKSUM.EXE checkjiaoyan\input1.txt checkjiaoyan\input2.txt checkjiaoyan\OUTPUT1.TXT checkjiaoyan\OUTPUT2.TXT checkjiaoyan\网际校验和编程文档.doc checkjiaoyan