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

Go to the source code of this file.

Functions

static ptrIGMP_MSG get_IGMP_MSG (NetSim_PACKET *packet)
 
static void set_IGMP_MSG (NetSim_PACKET *packet, ptrIGMP_MSG msg)
 
static int get_ctrlpackettype_basedon_igmptype (IGMPMSG_TYPE type, char *stype)
 
static ptrIGMP_MSG create_igmp_hdr (IGMPMSG_TYPE type, UINT8 maxRespTime, NETSIM_IPAddress group)
 
static void free_igmp_hdr (ptrIGMP_MSG msg)
 
static ptrIGMP_MSG copy_igmp_hdr (ptrIGMP_MSG msg)
 
void copy_igmp_packet (NetSim_PACKET *d, NetSim_PACKET *s)
 
void IGMP_FreePacket (NetSim_PACKET *packet)
 
static UINT8 make_resp_time (UINT T)
 
static NetSim_PACKETcreate_igmp_packet (NETSIM_ID src, NETSIM_ID ifId, NETSIM_ID dest, IGMPMSG_TYPE type, NETSIM_IPAddress group, UINT maxRespTime, UINT8 ttl)
 
static void send_igmp_packet (NETSIM_ID d, double time, NetSim_PACKET *packet)
 
void send_membership_report (NETSIM_ID d, NETSIM_IPAddress group)
 
static bool igmp_process_report (NetSim_PACKET *packet, ptrIGMP_MSG msg, NETSIM_ID d)
 
bool igmp_process_query (NetSim_PACKET *packet, ptrIGMP_MSG msg, NETSIM_ID d)
 
void process_igmp_packet ()
 
void send_query_msg (NETSIM_ID d, NETSIM_IPAddress group, double time)
 

Function Documentation

◆ copy_igmp_hdr()

static ptrIGMP_MSG copy_igmp_hdr ( ptrIGMP_MSG  msg)
static

Definition at line 70 of file IGMP_Msg.c.

Here is the caller graph for this function:

◆ copy_igmp_packet()

void copy_igmp_packet ( NetSim_PACKET d,
NetSim_PACKET s 
)

Definition at line 77 of file IGMP_Msg.c.

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

◆ create_igmp_hdr()

static ptrIGMP_MSG create_igmp_hdr ( IGMPMSG_TYPE  type,
UINT8  maxRespTime,
NETSIM_IPAddress  group 
)
static

Definition at line 53 of file IGMP_Msg.c.

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

◆ create_igmp_packet()

static NetSim_PACKET * create_igmp_packet ( NETSIM_ID  src,
NETSIM_ID  ifId,
NETSIM_ID  dest,
IGMPMSG_TYPE  type,
NETSIM_IPAddress  group,
UINT  maxRespTime,
UINT8  ttl 
)
static

Definition at line 93 of file IGMP_Msg.c.

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

◆ free_igmp_hdr()

static void free_igmp_hdr ( ptrIGMP_MSG  msg)
static

Definition at line 65 of file IGMP_Msg.c.

Here is the caller graph for this function:

◆ get_ctrlpackettype_basedon_igmptype()

static int get_ctrlpackettype_basedon_igmptype ( IGMPMSG_TYPE  type,
char *  stype 
)
static

Definition at line 31 of file IGMP_Msg.c.

Here is the caller graph for this function:

◆ get_IGMP_MSG()

static ptrIGMP_MSG get_IGMP_MSG ( NetSim_PACKET packet)
static

Definition at line 21 of file IGMP_Msg.c.

Here is the caller graph for this function:

◆ IGMP_FreePacket()

void IGMP_FreePacket ( NetSim_PACKET packet)

Definition at line 81 of file IGMP_Msg.c.

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

◆ igmp_process_query()

bool igmp_process_query ( NetSim_PACKET packet,
ptrIGMP_MSG  msg,
NETSIM_ID  d 
)

Definition at line 181 of file IGMP_Msg.c.

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

◆ igmp_process_report()

static bool igmp_process_report ( NetSim_PACKET packet,
ptrIGMP_MSG  msg,
NETSIM_ID  d 
)
static

Definition at line 165 of file IGMP_Msg.c.

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

◆ make_resp_time()

static UINT8 make_resp_time ( UINT  T)
static

Definition at line 88 of file IGMP_Msg.c.

Here is the caller graph for this function:

◆ process_igmp_packet()

void process_igmp_packet ( )

Definition at line 195 of file IGMP_Msg.c.

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

◆ send_igmp_packet()

static void send_igmp_packet ( NETSIM_ID  d,
double  time,
NetSim_PACKET packet 
)
static

Definition at line 135 of file IGMP_Msg.c.

Here is the caller graph for this function:

◆ send_membership_report()

void send_membership_report ( NETSIM_ID  d,
NETSIM_IPAddress  group 
)

Definition at line 152 of file IGMP_Msg.c.

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

◆ send_query_msg()

void send_query_msg ( NETSIM_ID  d,
NETSIM_IPAddress  group,
double  time 
)

Definition at line 233 of file IGMP_Msg.c.

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

◆ set_IGMP_MSG()

static void set_IGMP_MSG ( NetSim_PACKET packet,
ptrIGMP_MSG  msg 
)
static

Definition at line 26 of file IGMP_Msg.c.

Here is the caller graph for this function: