pycrate
pycrate copied to clipboard
Is it possible to convert IP address to readable format?
Some IP address type elements in NGAP and NAS message is not easy to read, like PDUAddress and TransportLayerAddress, is it possible to show it in readable format like 192.168.1.1? appreciate your reply
Custom representation of IP addresses in NAS and ASN.1-based protocols (such as NGAP) is not implemented, they are just handled as bytes buffer. You can easily add it by just using socket.inet_ntoa
or socket.inet_ntop
however.