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:
15
tcpip.cc
15
tcpip.cc
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user