mobile: add UE policy decoding within NAS 5G

This commit is contained in:
mich 2019-12-18 16:38:23 +01:00
parent 893ebd2df0
commit 8f7eed991c
1 changed files with 11 additions and 0 deletions

View File

@ -162,6 +162,17 @@ def parse_NAS5GPayCont(conttype, buf):
pass
else:
return cont
elif conttype == 5 and len(buf) >= 2:
# UE policy
_, typ = unpack('>BB', buf)
if 1 <= typ <= 4:
cont = FGUEPOLTypeClasses[typ]()
try:
cont.from_bytes(buf)
except Exception:
pass
else:
return cont
elif conttype == 6:
# UE params update, TODO
pass