set some route flags

This commit is contained in:
Doug MacEachern committed 2005-07-12 18:45:28 +00:00
1 parent 300ef18259
commit 9c20564afa
2 files changed
+14

No files matched your search

+7
View File
@@ -1725,6 +1725,13 @@ SIGAR_DECLARE(int) sigar_net_route_list_get(sigar_t *sigar,
route->destination = ipr->dwForwardDest;
route->mask = ipr->dwForwardMask;
route->gateway = ipr->dwForwardNextHop;
route->flags = SIGAR_RTF_UP;
if ((route->destination == 0) &&
(route->mask == 0))
{
route->flags |= SIGAR_RTF_GATEWAY;
}
}
free(buffer);