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:
Dan Williams 2008-04-02 17:34:22 +00:00
parent e9e6f3124c
commit b285600adc

View file

@ -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;
}