change sigar_net_interface_config_get to return sigar_net_interface_config_primary_get if name == NULL
This commit is contained in:
1 parent
0e48e92124
commit
5ec635a1b4
4 files changed
+16
No files matched your search
@@ -542,6 +542,10 @@ sigar_net_interface_config_get(sigar_t *sigar,
|
||||
INTERFACE_INFO *if_info = NULL;
|
||||
u_long flags;
|
||||
|
||||
if (!name) {
|
||||
return sigar_net_interface_config_primary_get(sigar, ifconfig);
|
||||
}
|
||||
|
||||
/* win32 lacks socket ioctls to query given interface.
|
||||
* so we loop through the list to find our made up ifname.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user