summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-05-07 07:18:34 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-05-07 15:52:24 +0900
commitfc02e997a69f6b697e6ce0bc9188867dc5260025 (patch)
treec944dc0426867ab6d4c0f77fa439c5d827501445
parent81a894f83abeb66cc601b4d2b462ddded1050fd8 (diff)
Fix OFP_ACTION_DL_ADDR_PACK_STR
Use '6s' for a mac address. It's consistent with nx code and works with mac.haddr_to_bin helper function. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
-rw-r--r--ryu/ofproto/ofproto_v1_0.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/ofproto/ofproto_v1_0.py b/ryu/ofproto/ofproto_v1_0.py
index 068770cd..dff4c3a7 100644
--- a/ryu/ofproto/ofproto_v1_0.py
+++ b/ryu/ofproto/ofproto_v1_0.py
@@ -197,7 +197,7 @@ OFP_ACTION_VLAN_PCP_PACK_STR = '!HHB3x'
OFP_ACTION_VLAN_PCP_SIZE = 8
assert calcsize(OFP_ACTION_VLAN_PCP_PACK_STR) == OFP_ACTION_VLAN_PCP_SIZE
-OFP_ACTION_DL_ADDR_PACK_STR = '!HH' + OFP_ETH_ALEN_STR + 'B6x'
+OFP_ACTION_DL_ADDR_PACK_STR = '!HH' + OFP_ETH_ALEN_STR + 's6x'
OFP_ACTION_DL_ADDR_SIZE = 16
assert calcsize(OFP_ACTION_DL_ADDR_PACK_STR) == OFP_ACTION_DL_ADDR_SIZE