mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
packet lib: sctp: remove unnecessary __init__()
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
6fe04218ce
commit
e1e22073fb
@ -1383,9 +1383,6 @@ class cause_unresolvable_addr(cause_with_value):
|
||||
def cause_code(cls):
|
||||
return CCODE_UNRESOLVABLE_ADDR
|
||||
|
||||
def __init__(self, length, value):
|
||||
super(cause_unresolvable_addr, self).__init__(length, value)
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf):
|
||||
(_, length) = struct.unpack_from(cls._PACK_STR, buf)
|
||||
@ -1459,9 +1456,6 @@ class cause_invalid_param(cause):
|
||||
def cause_code(cls):
|
||||
return CCODE_INVALID_PARAM
|
||||
|
||||
def __init__(self, length):
|
||||
super(cause_invalid_param, self).__init__(length)
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf):
|
||||
(_, length) = struct.unpack_from(cls._PACK_STR, buf)
|
||||
@ -1557,9 +1551,6 @@ class cause_cookie_while_shutdown(cause):
|
||||
def cause_code(cls):
|
||||
return CCODE_COOKIE_WHILE_SHUTDOWN
|
||||
|
||||
def __init__(self, length):
|
||||
super(cause_cookie_while_shutdown, self).__init__(length)
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf):
|
||||
(_, length) = struct.unpack_from(cls._PACK_STR, buf)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user