patch-traceroute_cc 750 B

123456789101112131415161718192021222324
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- nmap-5.00.orig/traceroute.cc 2009-06-24 23:35:54.000000000 +0200
  3. +++ nmap-5.00/traceroute.cc 2009-07-20 21:07:42.902998599 +0200
  4. @@ -170,6 +170,7 @@
  5. #include "protocols.h"
  6. #include "timing.h"
  7. #include "utils.h"
  8. +#include "sctp.h"
  9. #include <algorithm>
  10. #include <stdlib.h>
  11. @@ -905,9 +906,12 @@ Traceroute::outputTarget (Target * t) {
  12. tg = TraceGroups[t->v4host ().s_addr];
  13. /* sort into ttl order */
  14. + /* quick hack
  15. for (it = tg->TraceProbes.begin (); it != tg->TraceProbes.end (); ++it)
  16. sortedProbes[it->second->ttl] = it->second;
  17. sortedProbes.swap (tg->TraceProbes);
  18. + */
  19. +
  20. /* clean up and consolidate traces */
  21. tg->consolidateHops ();