is_valid_iface_name


Description:


[ Version ( since = "1.6" ) ]
public bool is_valid_iface_name (string? name) throws Error

Validate the network interface name.

This function is a 1:1 copy of the kernel's interface validation function in net/core/dev.c.

Parameters:

name

Name of interface

Returns:

true if interface name is valid, otherwise false is returned.

Before 1.20, this function did not accept null as name argument. If you want to run against older versions of libnm, don't pass null.


Namespace: NM.Utils
Package: libnm