19#include "NetSim_utility.h"
21static void create_multicast_group_for_all(NETSIM_IPAddress g, NETSIM_IPAddress r)
24 for (i = 0; i < NETWORK->nDeviceCount; i++)
26 if (isRouter(i + 1) &&
27 GET_IP_DEVVAR(i + 1)->isPIMConfigured)
29 create_group(i + 1, g, r);
38 sprintf(p,
"%s%s%s", pszIOPath, pathSeperator,
"ConfigSupport/PIM_Config.txt");
46 while (fgets(buf, BUFSIZ, fp))
53 if (*s == 0 || *s ==
'\n')
85 fnNetSimError(
"Format of PIM_Config file is not correct. It must be \"GROUP_ADDR,RP_ADDR,\"");
89 NETSIM_IPAddress gip = STR_TO_IP4(g);
90 NETSIM_IPAddress rip = STR_TO_IP4(r);
92 create_multicast_group_for_all(gip, rip);