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

Add metric to struct sys_route.

This commit is contained in:
david
2013-02-01 05:01:57 +00:00
parent f55171a088
commit e2387e4693
2 changed files with 2 additions and 0 deletions

View File

@@ -1622,6 +1622,7 @@ static int collect_dnet_routes(const struct route_entry *entry, void *arg) {
addr_ntos(&entry->route_dst, (struct sockaddr *) &dcrn->routes[dcrn->numroutes].dest);
dcrn->routes[dcrn->numroutes].netmask_bits = entry->route_dst.addr_bits;
addr_ntos(&entry->route_gw, (struct sockaddr *) &dcrn->routes[dcrn->numroutes].gw);
dcrn->routes[dcrn->numroutes].metric = entry->metric;
dcrn->routes[dcrn->numroutes].device = getInterfaceByName(entry->intf_name, dcrn->routes[dcrn->numroutes].dest.ss_family);
dcrn->numroutes++;