mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 17:30:17 +01:00
glib-aux: add nm_ether_addr_is_zero() helper
This commit is contained in:
parent
2fb8ce9188
commit
f9cd90f12a
1 changed files with 6 additions and 0 deletions
|
|
@ -219,6 +219,12 @@ nm_ether_addr_equal(const NMEtherAddr *a, const NMEtherAddr *b)
|
|||
return nm_ether_addr_cmp(a, b) == 0;
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
nm_ether_addr_is_zero(const NMEtherAddr *a)
|
||||
{
|
||||
return nm_memeq(a, &nm_ether_addr_zero, sizeof(NMEtherAddr));
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
struct ether_addr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue