1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 01:49:03 +00:00

Made getInterfaceByName() return IPv6 interface information.

This commit is contained in:
djalal
2011-08-10 22:56:34 +00:00
parent b593d0778a
commit fc79deba75
3 changed files with 19 additions and 15 deletions

View File

@@ -357,10 +357,11 @@ struct dnet_collector_route_nfo {
int numifaces;
};
/* Looks for an interface with the given name (iname), and returns the
corresponding interface_info if found. Will accept a match of
devname or devfullname. Returns NULL if none found */
struct interface_info *getInterfaceByName(const char *iname);
/* Looks for an interface with the given name (iname) and address
family type, and returns the corresponding interface_info if found.
Will accept a match of devname or devfullname. Returns NULL if
none found */
struct interface_info *getInterfaceByName(const char *iname, int af);
/* Parse the system routing table, converting each route into a
sys_route entry. Returns an array of sys_routes. numroutes is set