Function

NM-1.0NMutils_is_valid_iface_nameSince 1.6

  • 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

    • Optionalname: string

      Name of interface

    Returns boolean

    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.

    1.6