mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-11 13:00:52 +01:00
shared/trivial: add code comment to nm_utils_ifname_valid_kernel()
(cherry picked from commit eb74d5f65f)
This commit is contained in:
parent
9bbb021b4f
commit
82237a3344
1 changed files with 4 additions and 0 deletions
|
|
@ -3995,6 +3995,10 @@ nm_utils_ifname_valid_kernel (const char *name, GError **error)
|
|||
{
|
||||
int i;
|
||||
|
||||
/* This function follows kernel's interface validation
|
||||
* function dev_valid_name() in net/core/dev.c.
|
||||
*/
|
||||
|
||||
if (!name) {
|
||||
g_set_error_literal (error, NM_UTILS_ERROR, NM_UTILS_ERROR_UNKNOWN,
|
||||
_("interface name is missing"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue