Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Is it possible to convert IP address to readable format? #211

Open
LuciferAlan opened this issue Aug 16, 2022 · 1 comment
Open

Is it possible to convert IP address to readable format? #211

LuciferAlan opened this issue Aug 16, 2022 · 1 comment
Assignees

Comments

@LuciferAlan
Copy link

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

@p1-bmu
Copy link
Contributor

p1-bmu commented Aug 30, 2022

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 p1-bmu self-assigned this Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants