RtnAddMultiRoute

RtnAddMultiRoute first validates if it has received a proper multicast IP address. Then it adds multicast IP address to the routing table on the selected device. After allocating a new entry in the IGMP table, it then sends the IGMP report of the new entry.

Syntax

int RtnAddMultiRoute(
    char *DeviceName,
    int Family,
    unsigned long IpAddress
);

Parameters

DeviceName

Ascii device name.

Family

IP address family - AF_INET or AF_INET6

IpAddress

IpAddress in netwok byte order

Return Value

0 (zero) if the function succeeds, -1 if the function fails

Requirements

Minimum Supported Version RTX64 2013
Header rtnapi.h
Library RtTcpip.lib