mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
uapi: Convert some uses of 6 to ETH_ALEN
Use the #define where appropriate. Add #include <linux/if_ether.h> where appropriate too. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bd3f543325
commit
e216975ad9
6 changed files with 12 additions and 8 deletions
|
@ -14,6 +14,7 @@
|
|||
#define _UAPI_LINUX_IF_BRIDGE_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
#define SYSFS_BRIDGE_ATTR "bridge"
|
||||
#define SYSFS_BRIDGE_FDB "brforward"
|
||||
|
@ -88,7 +89,7 @@ struct __port_info {
|
|||
};
|
||||
|
||||
struct __fdb_entry {
|
||||
__u8 mac_addr[6];
|
||||
__u8 mac_addr[ETH_ALEN];
|
||||
__u8 port_no;
|
||||
__u8 is_local;
|
||||
__u32 ageing_timer_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue