diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-08-26 15:34:42 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-08-26 16:49:07 +0900 |
commit | 67df35b27b15865ff9200a0036b2d1029486ab94 (patch) | |
tree | c4286546897ef4c6d1c738b44a94567018009bcd | |
parent | 0e92c8e844cad3c4f9a6b56da21442c0a717b8ff (diff) |
of13: remove trailing NULs in OFPTableFeaturesStats.name
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_3_parser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 38862195..d310598e 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 |