mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 19:10:31 +01:00
platform: avoid assuming a permanent address is an ethernet address
This gets called for all links via link_get_permanent_address(). This could easily be an infiniband address and we don't want to assert it's not.
This commit is contained in:
parent
1a5fec681b
commit
31c8bd6b69
1 changed files with 0 additions and 2 deletions
|
|
@ -143,8 +143,6 @@ nmp_utils_ethtool_get_permanent_address (const char *ifname,
|
|||
|
||||
if (!ethtool_get (ifname, epaddr))
|
||||
return FALSE;
|
||||
if (!nm_ethernet_address_is_valid (epaddr->data, epaddr->size))
|
||||
return FALSE;
|
||||
|
||||
g_assert (epaddr->size <= NM_UTILS_HWADDR_LEN_MAX);
|
||||
memcpy (buf, epaddr->data, epaddr->size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue