Function report |
Source Code:lib\checksum.c |
Create Date:2022-07-28 07:16:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_csum
Proto:static unsigned int do_csum(const unsigned char *buff, int len)
Type:unsigned int
Parameter:
Type | Parameter | Name |
---|---|---|
const unsigned char * | buff | |
int | len |
49 | result = 0 |
54 | If odd Then |
63 | If len >= 2 Then |
93 | result = from32to16(result) |
96 | out : |
97 | Return result |
Name | Describe |
---|---|
ip_fast_csum | This is a version of ip_compute_csum() optimized for IP headers,* which always checksum on 4 octet boundaries. |
csum_partial | mputes the checksum of a memory block at buff, length len,* and adds in "sum" (32-bit)* returns a 32-bit number suitable for feeding into itself* or csum_tcpudp_magic* this function must be called with even lengths, except* for the last fragment, which |
ip_compute_csum | his routine is used for miscellaneous IP-like checksums, mainly* in icmp.c |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |