Signed-off-by: IWAMOTO Toshihiro <[email protected]>
---
 ryu/lib/packet/cfm.py    |  5 +++++
 ryu/lib/packet/icmpv6.py | 21 +++++++++++++++++++++
 ryu/lib/packet/igmp.py   | 16 ++++++++++++++++
 ryu/lib/packet/ipv6.py   |  5 +++++
 4 files changed, 47 insertions(+)

diff --git a/ryu/lib/packet/cfm.py b/ryu/lib/packet/cfm.py
index 032c928..0e8c2cf 100644
--- a/ryu/lib/packet/cfm.py
+++ b/ryu/lib/packet/cfm.py
@@ -524,6 +524,11 @@ class link_trace_message(link_trace):
     _ALL_PACK_LEN = struct.calcsize(_PACK_STR)
     _MIN_LEN = _ALL_PACK_LEN
     _TLV_OFFSET = 17
+    _TYPE = {
+        'ascii': [
+            'ltm_orig_addr', 'ltm_targ_addr'
+        ]
+    }
 
     def __init__(self, md_lv=0, version=CFM_VERSION,
                  use_fdb_only=1,
diff --git a/ryu/lib/packet/icmpv6.py b/ryu/lib/packet/icmpv6.py
index 16d55eb..1e5eaea 100644
--- a/ryu/lib/packet/icmpv6.py
+++ b/ryu/lib/packet/icmpv6.py
@@ -692,6 +692,11 @@ class mld(stringify.StringifyMixin):
 
     _PACK_STR = '!H2x16s'
     _MIN_LEN = struct.calcsize(_PACK_STR)
+    _TYPE = {
+        'ascii': [
+            'address'
+        ]
+    }
 
     def __init__(self, maxresp=0, address='::'):
         self.maxresp = maxresp
@@ -749,6 +754,14 @@ class mldv2_query(mld):
 
     _PACK_STR = '!H2x16sBBH'
     _MIN_LEN = struct.calcsize(_PACK_STR)
+    _TYPE = {
+        'ascii': [
+            'address'
+        ],
+        'asciilist': [
+            'srcs'
+        ]
+    }
 
     def __init__(self, maxresp=0, address='::', s_flg=0, qrv=2,
                  qqic=0, num=0, srcs=None):
@@ -884,6 +897,14 @@ class mldv2_report_group(stringify.StringifyMixin):
     """
     _PACK_STR = '!BBH16s'
     _MIN_LEN = struct.calcsize(_PACK_STR)
+    _TYPE = {
+        'ascii': [
+            'address'
+        ],
+        'asciilist': [
+            'srcs'
+        ]
+    }
 
     def __init__(self, type_=0, aux_len=0, num=0, address='::',
                  srcs=None, aux=None):
diff --git a/ryu/lib/packet/igmp.py b/ryu/lib/packet/igmp.py
index 8392765..f1d65b0 100644
--- a/ryu/lib/packet/igmp.py
+++ b/ryu/lib/packet/igmp.py
@@ -252,6 +252,14 @@ class igmpv3_query(igmp):
     _PACK_STR = '!BBH4sBBH'
     _MIN_LEN = struct.calcsize(_PACK_STR)
     MIN_LEN = _MIN_LEN
+    _TYPE = {
+        'ascii': [
+            'address'
+        ],
+        'asciilist': [
+            'srcs'
+        ]
+    }
 
     def __init__(self, msgtype=IGMP_TYPE_QUERY, maxresp=100, csum=0,
                  address='0.0.0.0', s_flg=0, qrv=2, qqic=0, num=0,
@@ -413,6 +421,14 @@ class igmpv3_report_group(stringify.StringifyMixin):
     """
     _PACK_STR = '!BBH4s'
     _MIN_LEN = struct.calcsize(_PACK_STR)
+    _TYPE = {
+        'ascii': [
+            'address'
+        ],
+        'asciilist': [
+            'srcs'
+        ]
+    }
 
     def __init__(self, type_=0, aux_len=0, num=0, address='0.0.0.0',
                  srcs=None, aux=None):
diff --git a/ryu/lib/packet/ipv6.py b/ryu/lib/packet/ipv6.py
index 45dfff2..6ed0318 100644
--- a/ryu/lib/packet/ipv6.py
+++ b/ryu/lib/packet/ipv6.py
@@ -413,6 +413,11 @@ class routing_type3(header):
 
     _PACK_STR = '!BBBBBB2x'
     _MIN_LEN = struct.calcsize(_PACK_STR)
+    _TYPE = {
+        'asciilist': [
+            'adrs'
+        ]
+    }
 
     def __init__(self, nxt=inet.IPPROTO_TCP, size=0,
                  type_=3, seg=0, cmpi=0, cmpe=0, adrs=None):
-- 
2.1.4


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to