diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-03-29 18:30:34 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2013-03-29 18:47:25 -0700 |
commit | d11dbe61764619ef4c02158f8532ae0873d3b463 (patch) | |
tree | 7385eaafb3c88b4fbc0cbdd05c18f39abf3d82a0 /include/linux | |
parent | 877313268521544c2da238b34ee810c5359ef9d7 (diff) | |
download | openvswitch-d11dbe61764619ef4c02158f8532ae0873d3b463.tar.gz |
datapath: Use ETH_ALEN to define ethernet addresses
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/openvswitch.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h index 0dd3ee4f8..bd2f05f8d 100644 --- a/include/linux/openvswitch.h +++ b/include/linux/openvswitch.h @@ -41,6 +41,7 @@ #define _LINUX_OPENVSWITCH_H 1 #include <linux/types.h> +#include <linux/if_ether.h> /** * struct ovs_header - header for OVS Generic Netlink messages. @@ -324,8 +325,8 @@ enum ovs_frag_type { #define OVS_FRAG_TYPE_MAX (__OVS_FRAG_TYPE_MAX - 1) struct ovs_key_ethernet { - __u8 eth_src[6]; - __u8 eth_dst[6]; + __u8 eth_src[ETH_ALEN]; + __u8 eth_dst[ETH_ALEN]; }; struct ovs_key_mpls { @@ -375,14 +376,14 @@ struct ovs_key_arp { __be32 arp_sip; __be32 arp_tip; __be16 arp_op; - __u8 arp_sha[6]; - __u8 arp_tha[6]; + __u8 arp_sha[ETH_ALEN]; + __u8 arp_tha[ETH_ALEN]; }; struct ovs_key_nd { __u32 nd_target[4]; - __u8 nd_sll[6]; - __u8 nd_tll[6]; + __u8 nd_sll[ETH_ALEN]; + __u8 nd_tll[ETH_ALEN]; }; /** |