22#pragma comment(lib,"NetworkStack.lib")
25#define OPENFLOW_SDN_CONTROLLER_DEFAULT false
26#define OPENFLOW_OPEN_FLOW_ENABLE_DEFAULT false
27#define OPENFLOW_SDN_CONTROLLER_DEVICE_DEFAULT _strdup("unknown")
72#define GET_OPENFLOW_VAR(d) ((ptrOPENFLOW)(DEVICE_APPVAR(d,APP_PROTOCOL_OPENFLOW)))
73#define SET_OPENFLOW_VAR(d,var) (fn_NetSim_Stack_SetAppProtocolData(d,APP_PROTOCOL_OPENFLOW,var))
75#define OFMSG_OVERHEAD 50
static ANIM_HANDLE handle
void openFlow_add_new_client(NETSIM_ID ct, NETSIM_ID ci, UINT16 port)
struct stru_openFlowMsg * ptrOPENFLOWMSG
struct stru_controllerInfo * ptrSDNCONTROLLERINFO
struct stru_openflow OPENFLOW
struct stru_HandleInfo * ptrHANDLEINFO
ptrSDNCLIENTINFO openFlow_find_clientInfo(NETSIM_ID ct, NETSIM_ID ci)
struct stru_openflow * ptrOPENFLOW
void openFlow_print_response(NETSIM_ID d, UINT id, void *msg, int len, bool isMore)
struct stru_controllerInfo SDNCONTROLLERINFO
void openFlow_send_response(NETSIM_ID dev, UINT id, char *payload, int len, bool isMore)
bool isSDNController(NETSIM_ID d)
ptrHANDLEINFO openFlow_getHandle(NETSIM_ID d, UINT id)
struct stru_HandleInfo HANDLEINFO
bool isOPENFLOWConfigured(NETSIM_ID d)
struct stru_openFlowMsg OPENFLOWMSG
void openFlow_saveHandle(NETSIM_ID d, UINT id, void *handle)
struct stru_clientInfo * ptrSDNCLIENTINFO
enum enumOpenFlowMsgType OFMSGTYPE
char * openFlow_execute_command(void *handle, NETSIM_ID d, UINT id, int *len, bool *isMore)
bool fn_NetSim_OPEN_FLOW_SendCommand(NETSIM_ID dest, void *handle, void *command, UINT len)
NETSIM_IPAddress openFlow_find_client_IP(NETSIM_ID d)
struct stru_clientInfo SDNCLIENTINFO
struct stru_HandleInfo * next
NETSIM_IPAddress clientIP
struct stru_clientInfo * next
NETSIM_IPAddress controllerIP
NETSIM_ID sdnControllerId
union stru_openflow::sdn_info INFO
ptrSDNCLIENTINFO clientInfo
ptrSDNCONTROLLERINFO controllerInfo