Module netlink.rt.addr
Interface address listing.
A netlink.session specialization over the
NETLINK_ROUTE protocol: create an instance with netlink.rt.addr() and
list the kernel's interface addresses; the underlying socket is closed by
close() (or the to-be-closed __close). All methods block and require a
sleepable runtime.
See also:
Class addr
| addr:list ([family=AF_UNSPEC]) | Lists all interface addresses from the kernel. |
| addr:new ([o]) | Creates a new addr object. |
Class addr
- addr:list ([family=AF_UNSPEC])
-
Lists all interface addresses from the kernel.
Parameters:
- family integer address family. (default AF_UNSPEC)
Returns:
-
table
list of address tables.
- addr:new ([o])
-
Creates a new addr object.
Parameters:
- o table an initial object table. (optional)
Returns:
-
addr
the new addr object.
See also: