NetSim Source Code Help
Loading...
Searching...
No Matches
OpenFlow.c File Reference
#include "main.h"
#include "OpenFlow.h"
Include dependency graph for OpenFlow.c:

Go to the source code of this file.

Functions

static void openFlow_createSocketInterface (NETSIM_ID d)
 
static int fn_NetSim_OPEN_FLOW_HandleTimerEvent ()
 
static int fn_NetSim_OPEN_FLOW_HandleAppInEvent ()
 
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 ()
 
int fn_NetSim_OPEN_FLOW_Finish ()
 
char * fn_NetSim_OPEN_FLOW_Trace (NETSIM_ID nSubEvent)
 
int fn_NetSim_OPEN_FLOW_Configure (void **var)
 
int fn_NetSim_OPEN_FLOW_FreePacket (NetSim_PACKET *pstruPacket)
 
int fn_NetSim_OPEN_FLOW_CopyPacket (NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
 
int fn_NetSim_OPEN_FLOW_Metrics (PMETRICSWRITER metricsWriter)
 
char * fn_NetSim_OPEN_FLOW_ConfigPacketTrace ()
 
char * fn_NetSim_OPEN_FLOW_WritePacketTrace (NetSim_PACKET *pstruPacket, char **ppszTrace)
 
bool isOPENFLOWConfigured (NETSIM_ID d)
 
NETSIM_IPAddress openFlow_find_client_IP (NETSIM_ID d)
 

Function Documentation

◆ fn_NetSim_OPEN_FLOW_ConfigPacketTrace()

char * fn_NetSim_OPEN_FLOW_ConfigPacketTrace ( )

This function will return the string to write packet trace heading.

Definition at line 181 of file OpenFlow.c.

◆ fn_NetSim_OPEN_FLOW_Configure()

int fn_NetSim_OPEN_FLOW_Configure ( void **  var)

This function is called by NetworkStack.dll, while configuring the device for Open flow protocol.

Definition at line 117 of file OpenFlow.c.

◆ fn_NetSim_OPEN_FLOW_CopyPacket()

int fn_NetSim_OPEN_FLOW_CopyPacket ( NetSim_PACKET pstruDestPacket,
NetSim_PACKET pstruSrcPacket 
)

This function is called by NetworkStack.dll, to copy the OPEN_FLOW protocol details from source packet to destination.

Definition at line 164 of file OpenFlow.c.

◆ fn_NetSim_OPEN_FLOW_Finish()

int fn_NetSim_OPEN_FLOW_Finish ( )

This function is called by NetworkStack.dll, once simulation end to free the allocated memory for the network.

Definition at line 97 of file OpenFlow.c.

◆ fn_NetSim_OPEN_FLOW_FreePacket()

int fn_NetSim_OPEN_FLOW_FreePacket ( NetSim_PACKET pstruPacket)

This function is called by NetworkStack.dll, to free the OPEN_FLOW protocol data.

Definition at line 154 of file OpenFlow.c.

◆ fn_NetSim_OPEN_FLOW_HandleAppInEvent()

static int fn_NetSim_OPEN_FLOW_HandleAppInEvent ( )
static

Definition at line 248 of file OpenFlow.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_OPEN_FLOW_HandleTimerEvent()

static int fn_NetSim_OPEN_FLOW_HandleTimerEvent ( )
static

Definition at line 204 of file OpenFlow.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_OPEN_FLOW_Init()

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 
)

OPEN_FLOW Init function initializes the OPEN_FLOW parameters.

Definition at line 26 of file OpenFlow.c.

Here is the call graph for this function:

◆ fn_NetSim_OPEN_FLOW_Metrics()

int fn_NetSim_OPEN_FLOW_Metrics ( PMETRICSWRITER  metricsWriter)

This function write the Metrics

Definition at line 173 of file OpenFlow.c.

◆ fn_NetSim_OPEN_FLOW_Run()

int fn_NetSim_OPEN_FLOW_Run ( )

This function is called by NetworkStack.dll, whenever the event gets triggered inside the NetworkStack.dll for the OPEN_FLOW protocol

Definition at line 77 of file OpenFlow.c.

Here is the call graph for this function:

◆ fn_NetSim_OPEN_FLOW_Trace()

char * fn_NetSim_OPEN_FLOW_Trace ( NETSIM_ID  nSubEvent)

This function is called by NetworkStack.dll, while writing the event trace to get the sub event as a string.

Definition at line 107 of file OpenFlow.c.

◆ fn_NetSim_OPEN_FLOW_WritePacketTrace()

char * fn_NetSim_OPEN_FLOW_WritePacketTrace ( NetSim_PACKET pstruPacket,
char **  ppszTrace 
)

This function will return the string to write packet trace.

Definition at line 189 of file OpenFlow.c.

◆ isOPENFLOWConfigured()

bool isOPENFLOWConfigured ( NETSIM_ID  d)

Definition at line 194 of file OpenFlow.c.

Here is the caller graph for this function:

◆ openFlow_createSocketInterface()

static void openFlow_createSocketInterface ( NETSIM_ID  d)
static

Definition at line 218 of file OpenFlow.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ openFlow_find_client_IP()

NETSIM_IPAddress openFlow_find_client_IP ( NETSIM_ID  d)

Definition at line 237 of file OpenFlow.c.

Here is the caller graph for this function: