Use magic ETH_ADDR_LEN instead of 6 for Ethernet address length.
authorWang Sheng-Hui <shhuiw@gmail.com>
Wed, 22 Oct 2014 06:58:43 +0000 (14:58 +0800)
committerBen Pfaff <blp@nicira.com>
Wed, 22 Oct 2014 15:46:52 +0000 (08:46 -0700)
commit3bd0fd39ebeaca5f87284704e7606d225d0e1bbb
treedc783fa5bcb1aafc28d81f61ffef9c2b74907f8e
parentd1da76691a84a16f910501116adeb6e33c9fb09c
Use magic ETH_ADDR_LEN instead of 6 for Ethernet address length.

ETH_ADDR_LEN is defined in lib/packets.h, valued 6.
Use this macro instead of magic number 6 to represent the length
of eth mac address.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
17 files changed:
lib/bfd.h
lib/cfm.c
lib/cfm.h
lib/flow.h
lib/match.c
lib/match.h
lib/netdev-provider.h
lib/netdev-windows.c
lib/netdev.h
lib/ofp-parse.c
lib/ofp-parse.h
lib/packets.h
ofproto/bond.c
ofproto/bond.h
ofproto/ofproto-dpif-ipfix.c
tests/test-classifier.c
vswitchd/bridge.c