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

Go to the source code of this file.

Data Structures

struct  stru_ip_list
 

Typedefs

typedef struct stru_ip_list IPLIST
 
typedef struct stru_ip_listptrIPLIST
 

Functions

static bool isPublicIPReqd (NETSIM_ID d)
 
static NETSIM_IPAddress find_default_gateway (NETSIM_ID d, NETSIM_ID *di)
 
static NETSIM_IPAddress find_wan_ip (NETSIM_ID d, NETSIM_ID *wi)
 
static void assign_public_ip (NETSIM_ID d, NETSIM_IPAddress ip)
 
static void add_route (NETSIM_ID d, ptrIPLIST list, NETSIM_IPAddress interfaceAddress, NETSIM_IPAddress nextHop)
 
static void setup_route_table_for_all_network (NETSIM_ID d, NETSIM_ID w, NETSIM_ID wi, ptrIPLIST ipList)
 
static void setup_route_table (NETSIM_ID d, NETSIM_ID w, NETSIM_ID wi)
 
void set_public_ip (NETSIM_ID d)
 

Typedef Documentation

◆ IPLIST

typedef struct stru_ip_list IPLIST

◆ ptrIPLIST

typedef struct stru_ip_list * ptrIPLIST

Function Documentation

◆ add_route()

static void add_route ( NETSIM_ID  d,
ptrIPLIST  list,
NETSIM_IPAddress  interfaceAddress,
NETSIM_IPAddress  nextHop 
)
static

Definition at line 100 of file IP_Utility.c.

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

◆ assign_public_ip()

static void assign_public_ip ( NETSIM_ID  d,
NETSIM_IPAddress  ip 
)
static

Definition at line 77 of file IP_Utility.c.

Here is the caller graph for this function:

◆ find_default_gateway()

static NETSIM_IPAddress find_default_gateway ( NETSIM_ID  d,
NETSIM_ID di 
)
static

Definition at line 45 of file IP_Utility.c.

Here is the caller graph for this function:

◆ find_wan_ip()

static NETSIM_IPAddress find_wan_ip ( NETSIM_ID  d,
NETSIM_ID wi 
)
static

Definition at line 61 of file IP_Utility.c.

Here is the caller graph for this function:

◆ isPublicIPReqd()

static bool isPublicIPReqd ( NETSIM_ID  d)
static

Definition at line 28 of file IP_Utility.c.

Here is the caller graph for this function:

◆ set_public_ip()

void set_public_ip ( NETSIM_ID  d)

Definition at line 185 of file IP_Utility.c.

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

◆ setup_route_table()

static void setup_route_table ( NETSIM_ID  d,
NETSIM_ID  w,
NETSIM_ID  wi 
)
static

Definition at line 135 of file IP_Utility.c.

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

◆ setup_route_table_for_all_network()

static void setup_route_table_for_all_network ( NETSIM_ID  d,
NETSIM_ID  w,
NETSIM_ID  wi,
ptrIPLIST  ipList 
)
static

Definition at line 115 of file IP_Utility.c.

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