packet lib: icmp: correct parser() of TimeExceeded
Signed-off-by: itoyuichi <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
d8d88fc06a
commit
66e529f506
@ -260,7 +260,7 @@ class TimeExceeded(stringify.StringifyMixin):
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf, offset):
|
||||
data_len = struct.unpack_from(cls._PACK_STR, buf, offset)
|
||||
(data_len, ) = struct.unpack_from(cls._PACK_STR, buf, offset)
|
||||
msg = cls(data_len)
|
||||
offset += cls._MIN_LEN
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user