mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 01:19:03 +00:00
added Eddie Bell's traceroute patch, with only minor changes
This commit is contained in:
4
tcpip.cc
4
tcpip.cc
@@ -1417,11 +1417,11 @@ char *ping = (char *) &pingpkt;
|
||||
icmplen = 20;
|
||||
memset(datastart, 0, 12);
|
||||
datastart += 12;
|
||||
datalen -= 12;
|
||||
//datalen -= 12;
|
||||
} else if (ptype == 17 && pcode == 0) /* icmp netmask req */ {
|
||||
icmplen = 12;
|
||||
*datastart++ = 0;
|
||||
datalen -= 4;
|
||||
//datalen -= 4;
|
||||
} else
|
||||
fatal("Unknown icmp type/code (%d/%d) in build_icmp_raw", ptype, pcode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user