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

Go to the source code of this file.

Functions

void multicast_join_group ()
 
static bool isOSPFPacket (NetSim_PACKET *packet)
 
IP_PROTOCOL_ACTION check_ip_in_multicastgroup (NETSIM_IPAddress ip, NETSIM_ID d, NetSim_PACKET *packet)
 
bool is_reserved_multicast_address (NETSIM_IPAddress ip)
 
static bool isCorrectRouteForSubnet (IP_ROUTINGTABLE **table, NETSIM_IPAddress dest, NETSIM_IPAddress src)
 
bool isCorrectRoute (pptrIP_ROUTINGTABLE table, NETSIM_IPAddress dest, NETSIM_IPAddress src)
 

Variables

static NETSIM_IPAddress ALL_IN_SUBNET
 
static NETSIM_IPAddress ALL_ROUTER_IN_SUBNET
 
static NETSIM_IPAddress ALL_PIM_ROUTER
 
static NETSIM_IPAddress ALL_SPF_ROUTERS
 
static NETSIM_IPAddress ALL_D_ROUTERS
 
IP_ROUTINGTABLEtab = NULL
 

Function Documentation

◆ check_ip_in_multicastgroup()

IP_PROTOCOL_ACTION check_ip_in_multicastgroup ( NETSIM_IPAddress  ip,
NETSIM_ID  d,
NetSim_PACKET packet 
)

Definition at line 60 of file Component 3/IP/Multicast.c.

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

◆ is_reserved_multicast_address()

bool is_reserved_multicast_address ( NETSIM_IPAddress  ip)

Definition at line 87 of file Component 3/IP/Multicast.c.

Here is the caller graph for this function:

◆ isCorrectRoute()

bool isCorrectRoute ( pptrIP_ROUTINGTABLE  table,
NETSIM_IPAddress  dest,
NETSIM_IPAddress  src 
)

Definition at line 154 of file Component 3/IP/Multicast.c.

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

◆ isCorrectRouteForSubnet()

static bool isCorrectRouteForSubnet ( IP_ROUTINGTABLE **  table,
NETSIM_IPAddress  dest,
NETSIM_IPAddress  src 
)
static

Definition at line 119 of file Component 3/IP/Multicast.c.

Here is the caller graph for this function:

◆ isOSPFPacket()

static bool isOSPFPacket ( NetSim_PACKET packet)
static

Definition at line 42 of file Component 3/IP/Multicast.c.

Here is the caller graph for this function:

◆ multicast_join_group()

void multicast_join_group ( )

Definition at line 26 of file Component 3/IP/Multicast.c.

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

Variable Documentation

◆ ALL_D_ROUTERS

NETSIM_IPAddress ALL_D_ROUTERS
static

Definition at line 24 of file Component 3/IP/Multicast.c.

◆ ALL_IN_SUBNET

NETSIM_IPAddress ALL_IN_SUBNET
static

Definition at line 20 of file Component 3/IP/Multicast.c.

◆ ALL_PIM_ROUTER

NETSIM_IPAddress ALL_PIM_ROUTER
static

Definition at line 22 of file Component 3/IP/Multicast.c.

◆ ALL_ROUTER_IN_SUBNET

NETSIM_IPAddress ALL_ROUTER_IN_SUBNET
static

Definition at line 21 of file Component 3/IP/Multicast.c.

◆ ALL_SPF_ROUTERS

NETSIM_IPAddress ALL_SPF_ROUTERS
static

Definition at line 23 of file Component 3/IP/Multicast.c.

◆ tab

IP_ROUTINGTABLE* tab = NULL

Definition at line 118 of file Component 3/IP/Multicast.c.