summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_private.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-02-23 00:05:25 -0800
committerDavid S. Miller <davem@davemloft.net>2014-02-24 19:16:43 -0500
commite5a727f6632654098fa4e87d8551a5873e8f658a (patch)
tree1857fd4823e2f393b400550039018563bf7f9591 /net/bridge/br_private.h
parente8b39015b591f359d464d026170dcf76f7ed5b8e (diff)
downloadlinux-stable-e5a727f6632654098fa4e87d8551a5873e8f658a.tar.gz
linux-stable-e5a727f6632654098fa4e87d8551a5873e8f658a.tar.bz2
linux-stable-e5a727f6632654098fa4e87d8551a5873e8f658a.zip
bridge: Use ether_addr_copy and ETH_ALEN
Convert the more obvious uses of memcpy to ether_addr_copy. There are still uses of memcpy that could be converted but these addresses are __aligned(2). Convert a couple uses of 6 in gr_private.h to ETH_ALEN. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r--net/bridge/br_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index 3ba11bc99b65..e1ca1dc916a4 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -46,12 +46,12 @@ typedef __u16 port_id;
struct bridge_id
{
unsigned char prio[2];
- unsigned char addr[6];
+ unsigned char addr[ETH_ALEN];
};
struct mac_addr
{
- unsigned char addr[6];
+ unsigned char addr[ETH_ALEN];
};
struct br_ip