1
0
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:
fyodor
2007-03-13 08:02:19 +00:00
parent 68c94c5cfd
commit e882edf484
12 changed files with 238 additions and 22 deletions

View File

@@ -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);