mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 07:29:01 +00:00
In r8541 readip_pcap was given the ability to validate packets, and it also returns a different length in some cases than it used to: + /* OK, since the IP header has been validated, we don't want to tell + * the caller they have more packet than they really have. This can + * be caused by the Ethernet CRC trailer being counted, for example. + */ + if (*len > ntohs(iphdr->ip_len)) + *len = ntohs(iphdr->ip_len); which made some tests having to do with packet length invalid. They were removed but this one was missed.
194 KiB
194 KiB