17#define EMULATION_APPLICATION_PROTOCOL_DEFAULT _strdup("any")
18#define EMULATION_APPLICATION_FILTER_STRING_DEFAULT _strdup("true")
19#define EMULATION_APPLICATION_PRIORITY_DEFAULT 10
25 ip = strtok(szVal,
",");
28 if(strcmp(ip,
"0.0.0.0"))
31 ip = strtok(NULL,
",");
36 fnNetSimError(
"Real IP count (%d) and IP configured (%d) mismatched\n", count, i);
63 if (szVal && strcmp(szVal,
"0.0.0.0"))
123 for (i = 0; i < info->
count; i++)
void add_multicast_route(ptrAPPLICATION_INFO info)
int fnCreateSocketBuffer(ptrAPPLICATION_INFO appInfo)
void join_multicast_group(ptrAPPLICATION_INFO info, double time)
void fnCreatePort(ptrAPPLICATION_INFO info)
void fn_NetSim_Emulation_StartApplication(ptrAPPLICATION_INFO appInfo)
static UINT update_source_ip(NETSIM_IPAddress *realIP, char *szVal, UINT count)
int fn_NetSim_Application_ConfigureEmulationTraffic(ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
int fn_NetSim_Emulation_InitApplication(ptrAPPLICATION_INFO appInfo)
bool isBroadcastIP(NETSIM_IPAddress ip)
#define STR_TO_IP4(ipstr)
bool isMulticastIP(NETSIM_IPAddress ip)
#define fnNetSimError(x,...)
char * fn_NetSim_xmlConfig_GetVal(void *xmlNetSimNode, const char *szName, int flag)
#define getXmlVar(var, name, xmlNode, flag, type, protocol)
NETSIM_IPAddress fn_NetSim_Stack_GetIPAddressAsId(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
void * fn_NetSim_xmlGetChildElement(void *xmlNetSimNode, const char *childName, int count)
Structure to store the emulation application information.
NETSIM_ID nDestinationPort
NETSIM_IPAddress simDestIP
NETSIM_IPAddress realDestIP
NETSIM_IPAddress * realSourceIP
NETSIM_IPAddress * simSourceIP
Structure to store application information.
unsigned int nSourceCount
TRANSMISSION_TYPE nTransmissionType