1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Patch from jah: Move the definition of struct dnet_collector_route_nfo earlier

in tcpip.cc for the WIN32 functions that need it.
This commit is contained in:
david
2009-01-04 15:08:12 +00:00
parent b3b06477c3
commit af1ccf0cfe

View File

@@ -2718,6 +2718,13 @@ for(i=0; i < numdevs; i++) {
return -1;
}
struct dnet_collector_route_nfo {
struct sys_route *routes;
int numroutes;
int capacity; /* Capacity of routes or ifaces, depending on context */
struct interface_info *ifaces;
int numifaces;
};
#if WIN32
static int collect_dnet_interfaces(const struct intf_entry *entry, void *arg) {
@@ -3098,14 +3105,6 @@ static struct sys_route *getsysroutes_proc(FILE *routefp, int *howmany) {
return routes;
}
struct dnet_collector_route_nfo {
struct sys_route *routes;
int numroutes;
int capacity; /* Capacity of routes or ifaces, depending on context */
struct interface_info *ifaces;
int numifaces;
};
/* This is the callback for the call to route_loop in getsysroutes_dnet. It
takes a route entry and adds it into the dnet_collector_route_nfo struct. */
static int collect_dnet_routes(const struct route_entry *entry, void *arg) {