Contents

ifnet_check_multi

Declaration

typedef errno_t (*ifnet_check_multi)(ifnet_t interface, const struct sockaddr *mcast);

Parameters

  • The:

    interface.

  • mcast:

    The multicast address.

Return Value

Zero upon success, EADDRNOTAVAIL on invalid multicast, EOPNOTSUPP for addresses the interface does not understand.

Discussion

ifnet_check_multi is called for each multicast address added to an interface. This gives the interface an opportunity to reject invalid multicast addresses before they are attached to the interface.

To prevent an address from being added to your multicast list, return EADDRNOTAVAIL. If you don't know how to parse/translate the address, return EOPNOTSUPP.

See Also

ifnet