mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-11 06:54:18 +00:00
dde_linux: Fix MAC validity check
This commit is contained in:
parent
c9194a2af4
commit
7f86eb3805
@ -1109,13 +1109,13 @@ struct net_device *alloc_etherdev(int sizeof_priv)
|
|||||||
int is_valid_ether_addr(const u8 *addr)
|
int is_valid_ether_addr(const u8 *addr)
|
||||||
{
|
{
|
||||||
/* is multicast */
|
/* is multicast */
|
||||||
if (!(addr[0] & 0x1))
|
if ((addr[0] & 0x1))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* zero */
|
/* zero */
|
||||||
if (!(addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]))
|
if (!(addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user