From: Ben Pfaff Date: Mon, 18 Aug 2008 21:20:21 +0000 (-0700) Subject: Use ETH_ALEN in place of hard-coded 6 in datapath/flow.h. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73105a7ca6e9b191ce81c26bdfe4f7356d9a4f7f;p=openvswitch Use ETH_ALEN in place of hard-coded 6 in datapath/flow.h. --- 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 */ };