From fc02e997a69f6b697e6ce0bc9188867dc5260025 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Mon, 7 May 2012 07:18:34 +0900 Subject: [PATCH] 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 Reviewed-by: Simon Horman --- ryu/ofproto/ofproto_v1_0.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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