#include "main.h"
#include "List.h"
#include "IP.h"
#include "NetSim_utility.h"
#include "Protocol.h"
#include "../Firewall/Firewall.h"
Go to the source code of this file.
|
| static void | print_match_table (ptrMATCH match, NETSIM_ID d, NETSIM_IPAddress dest, NETSIM_IPAddress src) |
| |
| static void | free_match_table (ptrMATCH l) |
| |
| static int | match_check (ptrMATCH m1, ptrMATCH m2) |
| |
| static void | add_to_match_list (ptrMATCH *l, ptrMATCH c) |
| |
| static UINT | get_bit_match_count (NETSIM_IPAddress ip1) |
| |
| static ptrMATCH | get_match_table (ptrIP_ROUTINGTABLE table, NETSIM_IPAddress dest, bool isStatic) |
| |
| void | free_ip_route (ptrIP_FORWARD_ROUTE route) |
| |
| static void | update_route_entry (ptrMATCH match, ptrIP_FORWARD_ROUTE route, NETSIM_IPAddress dest) |
| |
| static ptrMATCH | choose_match_for_reserved_address (ptrMATCH match, NETSIM_IPAddress dest, NETSIM_IPAddress src) |
| |
| static void | multicast_update_route_entry (ptrMATCH match, ptrIP_FORWARD_ROUTE route, NETSIM_IPAddress dest, NETSIM_IPAddress src) |
| |
| static void | route_onlink (NETSIM_ID d, NETSIM_IPAddress src, NETSIM_IPAddress dest, ptrIP_FORWARD_ROUTE route) |
| |
| static bool | check_my_ip (NETSIM_ID d, NETSIM_IPAddress ip) |
| |
| static ptrIP_FORWARD_ROUTE | route_unicast (NetSim_PACKET *packet, NETSIM_ID dev) |
| |
| static ptrIP_FORWARD_ROUTE | route_multicast (NetSim_PACKET *packet, NETSIM_ID dev) |
| |
| ptrIP_FORWARD_ROUTE | fn_NetSim_IP_RoutePacket (NetSim_PACKET *packet, NETSIM_ID dev) |
| |
| static void | change_table (NETSIM_ID d, ptrIP_ROUTINGTABLE table, NETSIM_IPAddress gateway, NETSIM_ID in, UINT metric) |
| |
| static void | add_table (NETSIM_ID d, NETSIM_IPAddress dest, NETSIM_IPAddress mask, NETSIM_IPAddress gateway, NETSIM_ID in, UINT metric) |
| |
| void | configure_static_ip_route (NETSIM_ID d, char *file) |
| |
| static ptrIP_FORWARD_ROUTE | static_route_unicast (NetSim_PACKET *packet, NETSIM_ID dev) |
| |
| static ptrIP_FORWARD_ROUTE | static_route_multicast (NetSim_PACKET *packet, NETSIM_ID dev) |
| |
| ptrIP_FORWARD_ROUTE | fn_NetSim_IP_RoutePacketViaStaticEntry (NetSim_PACKET *packet, NETSIM_ID dev) |
| |
| void | pass_to_lower_layer (NetSim_PACKET *packet, ptrIP_FORWARD_ROUTE route, UINT c) |
| |
◆ display_error
| #define display_error |
( |
|
error, |
|
|
|
line, |
|
|
|
file |
|
) |
| fnNetSimError("Invalid line in route file %s at line %d: %s", file, line, error) |
◆ MATCH_ALLOC
◆ MATCH
This function is used to route the packet
◆ ptrMATCH
◆ add_table()
◆ add_to_match_list()
◆ change_table()
◆ check_my_ip()
◆ choose_match_for_reserved_address()
◆ configure_static_ip_route()
| void configure_static_ip_route |
( |
NETSIM_ID |
d, |
|
|
char * |
file |
|
) |
| |
This function is to configure static ip table
Definition at line 420 of file IP_Routing.c.
◆ fn_NetSim_IP_RoutePacket()
◆ fn_NetSim_IP_RoutePacketViaStaticEntry()
◆ free_ip_route()
◆ free_match_table()
| static void free_match_table |
( |
ptrMATCH |
l | ) |
|
|
static |
◆ get_bit_match_count()
◆ get_match_table()
◆ match_check()
◆ multicast_update_route_entry()
◆ pass_to_lower_layer()
◆ print_match_table()
◆ route_multicast()
◆ route_onlink()
◆ route_unicast()
◆ static_route_multicast()
◆ static_route_unicast()
◆ update_route_entry()