mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 12:20:36 +01:00
Use ETH_ALEN
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3524 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
e9e6f3124c
commit
b285600adc
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
/* -*- Mode: C; tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
|
||||
|
||||
#include <net/ethernet.h>
|
||||
#include <dbus/dbus-glib.h>
|
||||
#include "nm-setting-wired.h"
|
||||
#include "nm-param-spec-specialized.h"
|
||||
|
|
@ -42,7 +43,7 @@ verify (NMSetting *setting, GSList *all_settings)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (self->mac_address && self->mac_address->len != 6) {
|
||||
if (self->mac_address && self->mac_address->len != ETH_ALEN) {
|
||||
g_warning ("Invalid mac address");
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue