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:
parent
ebc1c7ccc6
commit
0f1eb94148
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user