Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug #844 PR# 846: reject invalid header length packets
Triggers when attempting a checksum update but packet length does not match header length. Example: ``` tcprewrite -i test.pcap -o test2.rewrite_1ttl --ttl=58 Warning: skipping packet 11 because caplen 122 minus L2 length 22 does not equal IPv4 header length 255. Consider option '--fixhdrlen'. Warning: skipping packet 12 because caplen 114 minus L2 length 14 does not equal IPv4 header length 84. Consider option '--fixhdrlen'. Warning: skipping packet 14 because caplen 60 minus L2 length 14 does not equal IPv4 header length 28. Consider option '--fixhdrlen'. Warning: skipping packet 15 because caplen 60 minus L2 length 14 does not equal IPv4 header length 28. Consider option '--fixhdrlen'. Warning: skipping packet 16 because caplen 60 minus L2 length 14 does not equal IPv4 header length 28. Consider option '--fixhdrlen'. ```
- Loading branch information