Library multicast

Utility functions for sending MLD requests and parsing reports.

Copyright © Same as Nmap--See https://nmap.org/book/man-legal.html

Source: https://svn.nmap.org/nmap/nselib/multicast.lua

Functions

mld_query (if_nfo, arg_timeout)

Performs an MLD general query on the selected interface and caches the results such that subsequent calls to this function do not generate additional traffic.

mld_report_addresses (reports)

Extracts IP addresses from MLD reports captured by the mld_query function.

Functions

mld_query (if_nfo, arg_timeout)

Performs an MLD general query on the selected interface and caches the results such that subsequent calls to this function do not generate additional traffic.

Parameters

if_nfo
A table containing information about the interface to send the request on. Can be one of those returned by nmap.list_interfaces().
arg_timeout
The amount of time to wait for reports.

Return value:

A list of tables, each table containing three items, namely device, layer 2 reply and layer 3 reply.
mld_report_addresses (reports)

Extracts IP addresses from MLD reports captured by the mld_query function.

Parameters

reports
The output of the mld_query function.

Return value:

A list of tables, each table containing three items, namely device, mac and a list of addresses.