diff --git a/tcpip.cc b/tcpip.cc index 1adb1ea3f..4496a1b14 100644 --- a/tcpip.cc +++ b/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) {