convert net_route to use net_address_t
This commit is contained in:
1 parent
972f3855dd
commit
ee37d10b2c
5 files changed
+25
-17
No files matched your search
@@ -1613,9 +1613,10 @@ int sigar_net_route_list_get(sigar_t *sigar,
|
||||
}
|
||||
|
||||
route->flags = flags;
|
||||
route->destination = hex2int(net_addr, HEX_ENT_LEN);
|
||||
route->gateway = hex2int(gate_addr, HEX_ENT_LEN);
|
||||
route->mask = hex2int(mask_addr, HEX_ENT_LEN);
|
||||
|
||||
sigar_net_address_set(route->destination, hex2int(net_addr, HEX_ENT_LEN));
|
||||
sigar_net_address_set(route->gateway, hex2int(gate_addr, HEX_ENT_LEN));
|
||||
sigar_net_address_set(route->mask, hex2int(mask_addr, HEX_ENT_LEN));
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
|
||||
Reference in new issue
Block a user