44 fnNetSimError(
"%s device is not configured as SDN controller.\n"
45 "Disabling OPEN_FLOW protocol in device %d.\n",
126 xmlNetSimNode = var[2];
127 if (!strcmp(tag,
"PROTOCOL_PROPERTY"))
139 of =
calloc(1,
sizeof* of);
240 for (i = 0; i <
DEVICE(d)->nNumOfInterface; i++)
291 fnNetSimError(
"Unknown packet type %d arrives in APP_IN event of OPEN_FLOW protocol.",
void openFlow_print_response(NETSIM_ID d, UINT id, void *msg, int len, bool isMore)
char * openFlow_execute_command(void *handle, NETSIM_ID d, UINT id, int *len, bool *isMore)
#define _declspec(dllexport)
This function is used to trigger the update.
#define fnNetSimError(x,...)
static void openFlow_createSocketInterface(NETSIM_ID d)
int fn_NetSim_OPEN_FLOW_Configure(void **var)
static int fn_NetSim_OPEN_FLOW_HandleAppInEvent()
int fn_NetSim_OPEN_FLOW_FreePacket(NetSim_PACKET *pstruPacket)
static int fn_NetSim_OPEN_FLOW_HandleTimerEvent()
bool isOPENFLOWConfigured(NETSIM_ID d)
char * fn_NetSim_OPEN_FLOW_Trace(NETSIM_ID nSubEvent)
int fn_NetSim_OPEN_FLOW_Metrics(PMETRICSWRITER metricsWriter)
int fn_NetSim_OPEN_FLOW_Finish()
char * fn_NetSim_OPEN_FLOW_WritePacketTrace(NetSim_PACKET *pstruPacket, char **ppszTrace)
int fn_NetSim_OPEN_FLOW_Init(struct stru_NetSim_Network *NETWORK_Formal, NetSim_EVENTDETAILS *pstruEventDetails_Formal, char *pszAppPath_Formal, char *pszWritePath_Formal, int nVersion_Type, void **fnPointer)
int fn_NetSim_OPEN_FLOW_Run()
char * fn_NetSim_OPEN_FLOW_ConfigPacketTrace()
int fn_NetSim_OPEN_FLOW_CopyPacket(NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
NETSIM_IPAddress openFlow_find_client_IP(NETSIM_ID d)
void openFlow_add_new_client(NETSIM_ID ct, NETSIM_ID ci, UINT16 port)
#define GET_OPENFLOW_VAR(d)
void openFlow_send_response(NETSIM_ID dev, UINT id, char *payload, int len, bool isMore)
bool isSDNController(NETSIM_ID d)
#define SET_OPENFLOW_VAR(d, var)
NetSim_EVENTDETAILS * pstruEventDetails_Formal
NetSim_EVENTDETAILS char * pszAppPath_Formal
NetSim_EVENTDETAILS char char int nVersion_Type
NetSim_EVENTDETAILS char char * pszWritePath_Formal
NetSim_EVENTDETAILS char char int void ** fnPointer
NETSIM_ID fn_NetSim_Stack_GetDeviceId_asName(const char *name)
#define getXmlVar(var, name, xmlNode, flag, type, protocol)
ptrSOCKETINTERFACE fn_NetSim_Socket_CreateNewSocket(NETSIM_ID deviceId, int appProtocol, TRANSPORT_LAYER_PROTOCOL trxProtocol, UINT16 localPort, UINT16 remotePort)
#define DEVICE_NWADDRESS(DeviceId, InterfaceId)
#define DEVICE_CONFIGID(DeviceId)
EXPORTED struct stru_NetSim_Network * NETWORK
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
#define DEVICE_INTERFACE(DeviceId, InterfaceId)
enum enum_LayerType LAYER_TYPE
#define fn_NetSim_Packet_FreePacket(pstruPacket)
struct stru_NetSim_Packet * pPacket
PACKET_FRAGMENT nPacketFragment
void * Packet_AppProtocol
struct stru_NetSim_Packet_AppLayer * pstruAppData
unsigned int nControlDataType
NETSIM_IPAddress controllerIP
NETSIM_ID sdnControllerId
union stru_openflow::sdn_info INFO
ptrSDNCONTROLLERINFO controllerInfo