1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Calculate header checksum for truncated packets

This commit is contained in:
Alex Forencich 2014-09-25 16:26:59 -07:00
parent ebc1c7ccc6
commit 0f1eb94148
2 changed files with 2 additions and 2 deletions

View File

@ -1115,7 +1115,7 @@ def bench():
test_frame1.ip_fragment_offset = 0
test_frame1.ip_ttl = 64
test_frame1.ip_protocol = 0x11
test_frame1.ip_header_checksum = 0x1234
test_frame1.ip_header_checksum = None
test_frame1.ip_source_ip = 0xc0a80164
test_frame1.ip_dest_ip = 0xc0a80165
test_frame1.payload = bytearray(range(16))

View File

@ -1125,7 +1125,7 @@ def bench():
test_frame1.ip_fragment_offset = 0
test_frame1.ip_ttl = 64
test_frame1.ip_protocol = 0x11
test_frame1.ip_header_checksum = 0x1234
test_frame1.ip_header_checksum = None
test_frame1.ip_source_ip = 0xc0a80164
test_frame1.ip_dest_ip = 0xc0a80165
test_frame1.payload = bytearray(range(16))