Nmap Development mailing list archives

Re: Nmap bug - Doesn't folow static route


From: Jay Fink <jay.fink () gmail com>
Date: Fri, 12 Mar 2010 08:37:38 -0500


It would be better to get this directly from the system routing table,
but I haven't found out how to do that on platforms that don't have
/proc/net/route.


libdnet can do this with route_get() - conversely if you want to see
the fun details under libdnet-stripped/src/route-* has examples on
various platforms.

 route_get() retrieves the routing table entry for the destination prefix
     specified by route_dst.

If you look in the route_print() function there is an example of
iterating through all of them.

thx,
  j
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: