From: Ben Pfaff Date: Tue, 29 Mar 2011 18:33:10 +0000 (-0700) Subject: bridge: Change Ethernet address array from 8 bytes to ETH_ADDR_LEN bytes. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=090f7f50487916074a978c26b635dd153b10a866;p=openvswitch bridge: Change Ethernet address array from 8 bytes to ETH_ADDR_LEN bytes. I don't know why this was declared as 8 bytes long but I only see 6 actually in use, as one would expect of an Ethernet address. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 44474966..7a7544e2 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -743,7 +743,7 @@ bridge_reconfigure(const struct ovsrec_open_vswitch *ovs_cfg) } sflow_bridge_number = 0; LIST_FOR_EACH (br, node, &all_bridges) { - uint8_t ea[8]; + uint8_t ea[ETH_ADDR_LEN]; uint64_t dpid; struct iface *local_iface; struct iface *hw_addr_iface;