From 73105a7ca6e9b191ce81c26bdfe4f7356d9a4f7f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 18 Aug 2008 14:20:21 -0700 Subject: [PATCH] Use ETH_ALEN in place of hard-coded 6 in datapath/flow.h. --- datapath/flow.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datapath/flow.h b/datapath/flow.h index cd253d15..3438d96c 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -8,6 +8,7 @@ #include #include #include +#include #include "openflow.h" @@ -30,8 +31,8 @@ struct sw_flow_key { uint16_t tp_src; /* TCP/UDP source port. */ uint16_t tp_dst; /* TCP/UDP destination port. */ uint16_t wildcards; /* Wildcard fields (host byte order). */ - uint8_t dl_src[6]; /* Ethernet source address. */ - uint8_t dl_dst[6]; /* Ethernet destination address. */ + uint8_t dl_src[ETH_ALEN]; /* Ethernet source address. */ + uint8_t dl_dst[ETH_ALEN]; /* Ethernet destination address. */ uint8_t nw_proto; /* IP protocol. */ uint8_t pad[3]; /* NB: Pad to make 32-bit aligned */ }; -- 2.30.2