pycrate icon indicating copy to clipboard operation
pycrate copied to clipboard

Is it possible to convert IP address to readable format?

Open LuciferAlan opened this issue 2 years ago • 1 comments

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

LuciferAlan avatar Aug 16 '22 09:08 LuciferAlan

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.

p1-bmu avatar Aug 30 '22 06:08 p1-bmu