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

Go to the source code of this file.

Functions

void * get_PIM_MSG (NetSim_PACKET *packet)
 
void set_PIM_MSG (NetSim_PACKET *packet, void *msg)
 
static int pimtype_to_ctrltype (PIMMSG type, char *stype)
 
static double get_pim_size (PIMMSG type)
 
NetSim_PACKETcreate_pim_packet (PIMMSG type, void *opt, double time, NETSIM_ID source, NETSIM_IPAddress sourceAddrss, UINT destCount, NETSIM_ID *destList, NETSIM_IPAddress group, UINT ttl)
 
void send_pim_msg (NETSIM_ID d, double time, NetSim_PACKET *packet)
 
void set_pim_hdr (ptrPIM_HDR hdr, PIMMSG type)
 
ptrENCODED_UNICAST_ADDR encode_unicast_addr (NETSIM_IPAddress ip)
 
static UINT8 get_masklen (NETSIM_IPAddress subnet)
 
ptrENCODED_SOURCE_ADDR encode_source_addr (NETSIM_IPAddress ip, NETSIM_IPAddress subnet)
 
ptrENCODED_GROUP_ADDR encode_group_addr (NETSIM_IPAddress ip)
 

Function Documentation

◆ create_pim_packet()

NetSim_PACKET * create_pim_packet ( PIMMSG  type,
void *  opt,
double  time,
NETSIM_ID  source,
NETSIM_IPAddress  sourceAddrss,
UINT  destCount,
NETSIM_ID destList,
NETSIM_IPAddress  group,
UINT  ttl 
)

Definition at line 91 of file PIM_Msg.c.

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

◆ encode_group_addr()

ptrENCODED_GROUP_ADDR encode_group_addr ( NETSIM_IPAddress  ip)

Definition at line 182 of file PIM_Msg.c.

Here is the caller graph for this function:

◆ encode_source_addr()

ptrENCODED_SOURCE_ADDR encode_source_addr ( NETSIM_IPAddress  ip,
NETSIM_IPAddress  subnet 
)

Definition at line 172 of file PIM_Msg.c.

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

◆ encode_unicast_addr()

ptrENCODED_UNICAST_ADDR encode_unicast_addr ( NETSIM_IPAddress  ip)

Definition at line 151 of file PIM_Msg.c.

Here is the caller graph for this function:

◆ get_masklen()

static UINT8 get_masklen ( NETSIM_IPAddress  subnet)
static

Definition at line 160 of file PIM_Msg.c.

Here is the caller graph for this function:

◆ get_PIM_MSG()

void * get_PIM_MSG ( NetSim_PACKET packet)

Definition at line 21 of file PIM_Msg.c.

Here is the caller graph for this function:

◆ get_pim_size()

static double get_pim_size ( PIMMSG  type)
static

Definition at line 77 of file PIM_Msg.c.

Here is the caller graph for this function:

◆ pimtype_to_ctrltype()

static int pimtype_to_ctrltype ( PIMMSG  type,
char *  stype 
)
static

Definition at line 31 of file PIM_Msg.c.

Here is the caller graph for this function:

◆ send_pim_msg()

void send_pim_msg ( NETSIM_ID  d,
double  time,
NetSim_PACKET packet 
)

Definition at line 125 of file PIM_Msg.c.

Here is the caller graph for this function:

◆ set_pim_hdr()

void set_pim_hdr ( ptrPIM_HDR  hdr,
PIMMSG  type 
)

Definition at line 145 of file PIM_Msg.c.

Here is the caller graph for this function:

◆ set_PIM_MSG()

void set_PIM_MSG ( NetSim_PACKET packet,
void *  msg 
)

Definition at line 26 of file PIM_Msg.c.

Here is the caller graph for this function: