mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
o Fixed the fragmentation options (-f, --mtu) which broke in 5.35DC1.
Instead of sending multiple fragments, Nmap would just send the original whole packet instead. In some circumstances, Nmap would fail to send on interfaces with low MTUs (such as SLIP lines) with no way to bump down packet sizes for transport. [Kris] It looks like this has been broken in trunk since merging libnetutil, and since r18037 in the dedup branch.
This commit is contained in:
parent
e8fd5b69b0
commit
643d3eb9ff
2 changed files with 7 additions and 1 deletions
|
|
@ -3242,7 +3242,7 @@ int send_frag_ip_packet(int sd, struct eth_nfo *eth, u8 *packet,
|
|||
if (fragment > 1) // copy data payload
|
||||
memcpy(fpacket + headerlen,
|
||||
packet + headerlen + (fragment - 1) * mtu, fdatalen);
|
||||
res = send_ip_packet_eth_or_sd(sd, eth, packet, packetlen);
|
||||
res = send_ip_packet_eth_or_sd(sd, eth, fpacket, ntohs(ip->ip_len));
|
||||
if (res == -1)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue