NetAddr.netaddr_to_erl_ip
You're seeing just the function
netaddr_to_erl_ip
, go back to NetAddr module for more information.
Specs
Constructs an Erlang/OTP IP address tuple given a
NetAddr.t/0
.
Examples
iex> NetAddr.netaddr_to_erl_ip NetAddr.ip("192.0.2.1")
{192, 0, 2, 1}
iex> NetAddr.netaddr_to_erl_ip NetAddr.ip("2001:db8::1")
{0x2001, 0xdb8, 0, 0, 0, 0, 0, 1}