Contents

ifnet_add_multicast

Declaration

errno_t ifnet_add_multicast(ifnet_t interface, const struct sockaddr *maddr, ifmultiaddr_t *multicast);

Parameters

  • interface:

    The interface.

  • maddr:

    The multicast address (AF_UNSPEC/AF_LINK) to join. Either a physical address or logical address to be translated to a physical address.

  • multicast:

    The resulting ifmultiaddr_t multicast address.

Return Value

0 on success otherwise the errno error.

Discussion

Joins a multicast and returns an ifmultiaddr_t with the reference count incremented for you. You are responsible for decrementing the reference count after calling ifnet_remove_multicast and making sure you no longer have any references to the multicast.

See Also

Network Kernel Extensions