function stores a reference to a linked list of the multicast memberships
on the local machine in the memory referenced by
The list consists of
structures, as defined in the include file
.In ifaddrs.h .
structure contains at least the following entries:
struct ifmaddrs *ifma_next; /* Pointer to next struct */
struct sockaddr *ifma_name; /* Interface name (AF_LINK) */
struct sockaddr *ifma_addr; /* Multicast address */
struct sockaddr *ifma_lladdr; /* Link-layer translation, if any */
field contains a pointer to the next structure on the list.
This field is
in last structure on the list.
field references an
address structure, containing the name of the
interface where the membership exists.
references the address that this membership is for.
field references a link-layer translation for the protocol-level address in
if one is set, otherwise it is
The data returned by
is dynamically allocated and should be freed using
when no longer needed.