include: Convert ethernet mac address declarations to use ETH_ALEN
It's convenient to have ethernet mac addresses use ETH_ALEN to be able to grep for them a bit easier and also to ensure that the addresses are __aligned(2). Add #include <linux/if_ether.h> as necessary. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e216975ad9
commit
574e2af7c0
@@ -32,6 +32,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
#include <net/irda/irttp.h>
|
||||
|
||||
@@ -161,7 +162,7 @@ struct irlan_provider_cb {
|
||||
int access_type; /* Access type */
|
||||
__u16 send_arb_val;
|
||||
|
||||
__u8 mac_address[6]; /* Generated MAC address for peer device */
|
||||
__u8 mac_address[ETH_ALEN]; /* Generated MAC address for peer device */
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user