mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-04 12:01:02 +02:00
of12: assume OFPTableStats.name UTF-8
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
7cbc98db1f
commit
f8b26c8dab
@ -2308,6 +2308,15 @@ class OFPTableStats(
|
||||
stat.lookup_count, stat.matched_count))
|
||||
self.logger.debug('TableStats: %s', tables)
|
||||
"""
|
||||
|
||||
_TYPE = {
|
||||
'utf-8': [
|
||||
# OF spec is unclear about the encoding of name.
|
||||
# we assumes UTF-8.
|
||||
'name',
|
||||
]
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf, offset):
|
||||
table = struct.unpack_from(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user