forked from public/pysim
utils.py: Handle parsing of ePDGId TLV with zero length
Change-Id: Ie05ae010948884765363bd9dbc2b0d764ff8d42a
This commit is contained in:
@@ -462,6 +462,10 @@ def dec_epdgid(hexstr):
|
|||||||
if tlv[0] != 0x80:
|
if tlv[0] != 0x80:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Empty field - Zero length
|
||||||
|
if tlv[1] == 0:
|
||||||
|
continue
|
||||||
|
|
||||||
# First byte in the value has the address type
|
# First byte in the value has the address type
|
||||||
addr_type = tlv[2][0]
|
addr_type = tlv[2][0]
|
||||||
# TODO: Support parsing of IPv4 and IPv6
|
# TODO: Support parsing of IPv4 and IPv6
|
||||||
|
|||||||
Reference in New Issue
Block a user