MCPcopy Create free account
hub / github.com/qilingframework/qiling / inet_ntoa

Function inet_ntoa

qiling/os/posix/syscall/socket.py:51–54  ·  view source on GitHub ↗
(addr: int)

Source from the content-addressed store, hash-verified

49
50
51def inet_ntoa(addr: int) -> str:
52 abytes = addr.to_bytes(length=4, byteorder='big')
53
54 return ipaddress.IPv4Address(abytes).compressed
55
56
57def inet6_htoa(ql: Qiling, addr: bytes) -> str:

Callers 2

ql_syscall_bindFunction · 0.85
ql_syscall_sendtoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected