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

Function inet_aton

qiling/os/posix/syscall/socket.py:32–36  ·  view source on GitHub ↗
(ipaddr: str)

Source from the content-addressed store, hash-verified

30SOCK_SEQPACKET = 5
31
32def inet_aton(ipaddr: str) -> int:
33 # ipdata = bytes(int(a, 0) for a in ipaddr.split('.', 4))
34 ipdata = ipaddress.IPv4Address(ipaddr).packed
35
36 return int.from_bytes(ipdata, byteorder='big')
37
38
39def inet6_aton(ipaddr: str) -> Tuple[int, ...]:

Callers 4

ql_syscall_getsocknameFunction · 0.85
ql_syscall_getpeernameFunction · 0.85
ql_syscall_acceptFunction · 0.85
ql_syscall_recvfromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected