Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/ofproto/ofproto_v1_3_parser.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ryu/ofproto/ofproto_v1_3_parser.py 
b/ryu/ofproto/ofproto_v1_3_parser.py
index 3886219..d310598 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -3205,11 +3205,12 @@ class OFPTableFeaturesStats(StringifyMixin):
     def parser(cls, buf, offset):
         table_features = cls()
         (table_features._length, table_features.table_id,
-         table_features.name, table_features.metadata_match,
+         name, table_features.metadata_match,
          table_features.metadata_write, table_features.config,
          table_features.max_entries
          ) = struct.unpack_from(ofproto_v1_3.OFP_TABLE_FEATURES_PACK_STR,
                                 buf, offset)
+        table_features.name = name.rstrip('\0')
         offset += ofproto_v1_3.OFP_TABLE_FEATURES_SIZE
 
         # TODO: parse ofp_table_feature_prop_header
-- 
1.8.3.1


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to