Changeset 33540 in vbox for trunk/src/VBox/Runtime/common/checksum
- Timestamp:
- Oct 28, 2010 9:27:05 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 67140
- Location:
- trunk/src/VBox/Runtime/common/checksum
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/checksum/crc32.cpp
r31847 r33540 49 49 * characters in order from LSB to MSB. By storing the CRC this way 50 50 * we hand it to the UART in the order low-byte to high-byte; the UART 51 * sends each low-bit to h ight-bit; and the result is transmission bit51 * sends each low-bit to height-bit; and the result is transmission bit 52 52 * by bit from highest- to lowest-order term without requiring any bit 53 53 * shuffling on our part. Reception works similarly -
trunk/src/VBox/Runtime/common/checksum/ipv4.cpp
r32257 r33540 229 229 * @returns 32-bit intermediary checksum value. 230 230 * @param pTcpHdr Pointer to the TCP header to checksum, network 231 * endian (big). Assum s the caller has already validate231 * endian (big). Assumes the caller has already validate 232 232 * it and made sure the entire header is present. 233 233 * @param u32Sum The 32-bit intermediate checksum value. … … 275 275 * @returns 32-bit intermediary checksum value. 276 276 * @param pTcpHdr Pointer to the TCP header to checksum, network 277 * endian (big). Assum s the caller has already validate277 * endian (big). Assumes the caller has already validate 278 278 * it and made sure the entire header is present. 279 279 * @param u32Sum The 32-bit intermediate checksum value. … … 431 431 432 432 /** 433 * Simple ver ficiation of an UDP packet size.433 * Simple verification of an UDP packet size. 434 434 * 435 435 * @returns true if valid, false if invalid. … … 457 457 458 458 /** 459 * Simple ver ficiation of an UDP packet size.459 * Simple verification of an UDP packet size. 460 460 * 461 461 * @returns true if valid, false if invalid. … … 473 473 474 474 /** 475 * Simple ver ficiation of an UDP packet (size + checksum).475 * Simple verification of an UDP packet (size + checksum). 476 476 * 477 477 * @returns true if valid, false if invalid. … … 551 551 552 552 /** 553 * Ver ficiation of a TCP header.553 * Verification of a TCP header. 554 554 * 555 555 * @returns true if valid, false if invalid. … … 583 583 584 584 /** 585 * Simple ver ficiation of an TCP packet size.585 * Simple verification of an TCP packet size. 586 586 * 587 587 * @returns true if valid, false if invalid. … … 600 600 601 601 /** 602 * Simple ver ficiation of an TCP packet (size + checksum).602 * Simple verification of an TCP packet (size + checksum). 603 603 * 604 604 * @returns true if valid, false if invalid.
Note:
See TracChangeset
for help on using the changeset viewer.