DOKK / manpages / debian 12 / dnsjit / dnsjit.lib.ip.3.en
dnsjit.lib.ip(3) Library Functions Manual dnsjit.lib.ip(3)

dnsjit.lib.ip - IP address utility library


local ip = require("dnsjit.lib.ip")
print(ip.ipstring(ipv4_cdata))
print(ip.ip6string(ipv6_cdata), true)

A library to help with various IP address related tasks, such as printing them.

Return an IPv4 or IPv6 address as a string. If it's an IPv6 address the optional argument pretty is true then return an easier to read IPv6 address. Return an empty string on invalid input.
Return a IPv4 address as a string. The input is a 4-byte cdata array.
Return the IPv6 address as a string. The input is a 16-byte cdata array. If pretty is true then return an easier to read IPv6 address.

dnsjit.core.object.ip(3), dnsjit.core.object.ip6(3)

Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

Maintained by DNS-OARC

https://www.dns-oarc.net/

For issues and feature requests please use:

https://github.com/DNS-OARC/dnsjit/issues

For question and help please use:

admin@dns-oarc.net
1.2.3 dnsjit