mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Add metric to struct sys_route.
This commit is contained in:
parent
f55171a088
commit
e2387e4693
2 changed files with 2 additions and 0 deletions
|
|
@ -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++;
|
||||
|
||||
|
|
|
|||
|
|
@ -299,6 +299,7 @@ struct sys_route {
|
|||
struct sockaddr_storage dest;
|
||||
u16 netmask_bits;
|
||||
struct sockaddr_storage gw; /* gateway - 0 if none */
|
||||
int metric;
|
||||
};
|
||||
|
||||
struct eth_nfo {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue