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
ifnet_add_proto_funcifnet_attach_proto_paramifnet_attach_proto_param_v2ifnet_del_proto_funcifnet_demux_descifnet_demux_funcifnet_detached_funcifnet_event_funcifnet_family_tifnet_framer_funcifnet_init_paramsifnet_ioctl_funcifnet_offload_tifnet_output_funcifnet_set_bpf_tapifnet_stat_increment_paramifnet_stats_paramifnet_t