core: use nmp_utils_sysctl_open_netdir() to read tun/tap sysctl
This commit is contained in:
@@ -656,7 +656,7 @@ _linktype_get_type (NMPlatform *platform,
|
||||
NMPlatformTunProperties props;
|
||||
|
||||
if ( platform
|
||||
&& nm_platform_link_tun_get_properties_ifname (platform, ifname, &props)) {
|
||||
&& nm_platform_link_tun_get_properties (platform, ifindex, ifname ?: "", &props)) {
|
||||
if (!g_strcmp0 (props.mode, "tap"))
|
||||
return NM_LINK_TYPE_TAP;
|
||||
if (!g_strcmp0 (props.mode, "tun"))
|
||||
|
Reference in New Issue
Block a user