MCPcopy Index your code
hub / github.com/secdev/scapy / inet_aton

Function inet_aton

scapy/utils.py:743–748  ·  view source on GitHub ↗
(ip_string)

Source from the content-addressed store, hash-verified

741 socket.inet_aton("255.255.255.255")
742except socket.error:
743 def inet_aton(ip_string):
744 # type: (str) -> bytes
745 if ip_string == "255.255.255.255":
746 return b"\xff" * 4
747 else:
748 return socket.inet_aton(ip_string)
749else:
750 inet_aton = socket.inet_aton # type: ignore
751

Callers 15

h2iMethod · 0.90
i2mMethod · 0.90
any2iMethod · 0.90
build_hmac_sha1Method · 0.90
i2mMethod · 0.90
opaqueidMethod · 0.90
opaquetypeMethod · 0.90
i2mMethod · 0.90
i2mMethod · 0.90
i2mMethod · 0.90
i2mMethod · 0.90
encMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected