summaryrefslogtreecommitdiffhomepage
path: root/ryu/lib/packet/icmpv6.py
diff options
context:
space:
mode:
Diffstat (limited to 'ryu/lib/packet/icmpv6.py')
-rw-r--r--ryu/lib/packet/icmpv6.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/ryu/lib/packet/icmpv6.py b/ryu/lib/packet/icmpv6.py
index 16d55eb1..1e5eaea8 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):