CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - ICMP
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - ICMP - List
[
Program doc
]
IP_UDP_TCP_ICMP-checksum
DL : 0
IP/UDP/TCP/ICMP的校验和 在发送数据时,为了计算数IP据报的校验和。应该按如下步骤: (1) 把IP数据报的校验和字段置为0。 (2) 把首部看成以16位为单位的数字组成,依次进行二进制反码求和 (3) 把得到的结果存入校验和字段中。 在接收数据时,计算数据报的校验和相对简单,按如下步骤: (1)把首部看成以16位为单位的数字组成,依次进行二进制反码求和,包括校验和字段。 (2)检查计算出的校验和的结果是否等于零。 (3)如果等于零,说明被整除,校验是和正确。否则,校验和就是错误的,协议栈要抛弃这个数据包。-IP/UDP/TCP/ICMP checksum and
Date
: 2025-12-28
Size
: 4kb
User
:
cool
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.