tfSetMcastInterface

Jump to: navigation, search

Table of Contents >> Optional Protocols >> IGMP


#include <trsocket.h>


int tfSetMcastInterface (
ttUserInterface interfaceHandle,
unsigned char mhomeIndex
);


Function Description

This function allows the user to specify a default interface to be used to send multicast destination IP packets. This default interface will be used to send outgoing multicast packets, when the user program does not specify an interface (i.e. the user did not use the IPO_MULTICAST_IF option on the socket).


Parameters

  • interfaceHandle
    The interface to use by default for outgoing multicast packets.
  • mhomeIndex
    The multi-home index of the address to use for outgoing multicast packets.


Returns

  • TM_ENOERROR
    Success.
  • TM_ENETDOWN
    The interface is not configured.
  • TM_EADDRNOTAVAIL
    The interface does not have the TM_DEV_MCAST_ENB flag set.
  • TM_EALREADY
    The default multicast interface is already set.
  • TM_EINVAL
    The 'interfaceHandle' is invalid.


Table of Contents >> Optional Protocols >> IGMP