NetSim Source Code Help
Loading...
Searching...
No Matches
Firewall.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ACL_TYPE { ACLTYPE_BOTH , ACLTYPE_INBOUND , ACLTYPE_OUTBOUND }
 
enum  ACL_ACTION { ACLACTION_PERMIT , ACLACTION_DENY }
 

Functions

int fn_NetSim_FirewallConfig (NETSIM_ID nDeviceId)
 
void acl_add_new_line (NETSIM_ID d, char *s)
 
ACL_ACTION fn_NetSim_MAC_Firewall (NETSIM_ID nDeviceId, NETSIM_ID interfaceId, NetSim_PACKET *packet, ACL_TYPE type)
 
ACL_ACTION fn_NetSim_NETWORK_Firewall (NETSIM_ID nDeviceId, NETSIM_ID interfaceId, NetSim_PACKET *packet, ACL_TYPE type)
 
void fn_NetSim_Firewall_Free (NETSIM_ID d)
 
char * acl_print (NETSIM_ID d)
 

Enumeration Type Documentation

◆ ACL_ACTION

enum ACL_ACTION
Enumerator
ACLACTION_PERMIT 
ACLACTION_DENY 

Definition at line 31 of file Firewall.h.

◆ ACL_TYPE

enum ACL_TYPE
Enumerator
ACLTYPE_BOTH 
ACLTYPE_INBOUND 
ACLTYPE_OUTBOUND 

Definition at line 24 of file Firewall.h.

Function Documentation

◆ acl_add_new_line()

void acl_add_new_line ( NETSIM_ID  d,
char *  s 
)

Definition at line 185 of file firewall.c.

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

◆ acl_print()

char * acl_print ( NETSIM_ID  d)

Definition at line 346 of file firewall.c.

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

◆ fn_NetSim_Firewall_Free()

void fn_NetSim_Firewall_Free ( NETSIM_ID  d)

Definition at line 338 of file firewall.c.

Here is the caller graph for this function:

◆ fn_NetSim_FirewallConfig()

int fn_NetSim_FirewallConfig ( NETSIM_ID  nDeviceId)

This function is to configure the firewall.

Definition at line 235 of file firewall.c.

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

◆ fn_NetSim_MAC_Firewall()

ACL_ACTION fn_NetSim_MAC_Firewall ( NETSIM_ID  nDeviceId,
NETSIM_ID  interfaceId,
NetSim_PACKET packet,
ACL_TYPE  type 
)

Definition at line 328 of file firewall.c.

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

◆ fn_NetSim_NETWORK_Firewall()

ACL_ACTION fn_NetSim_NETWORK_Firewall ( NETSIM_ID  nDeviceId,
NETSIM_ID  interfaceId,
NetSim_PACKET packet,
ACL_TYPE  type 
)

Definition at line 333 of file firewall.c.

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