48 for (i = 0; i < hello->
optCount; i++)
100 for (i = 0; i <
c; i++)
164 bool isNeighbor =
false;
172 isNeighbor = neigh ? true :
false;
209 print_pim_sm_log(
"Neighbor details updated as DR_priority=%d, GenId=%d, Timeout=%0.3lf",
238 for (i = 0, k = 0; k < addrlist->
c; i++,k++)
@ EVENT_PIM_NEIGHBOR_TIMEOUT
#define IP_COMPARE(ip1, ip2)
static void add_genid_option(NETSIM_ID d, NetSim_PACKET *packet)
static void add_dr_priority_option(NETSIM_ID d, NetSim_PACKET *packet)
void send_hello_msg(NETSIM_ID d, double time)
static void add_lanprunedelay_option(NETSIM_ID d, NetSim_PACKET *packet)
static void set_option_in_hello(NetSim_PACKET *packet, UINT16 type, UINT16 len, void *opt)
static void * get_option_from_hello(ptrPIM_HELLO hello, UINT16 type)
bool process_pim_hello_packet()
static NetSim_PACKET * create_pim_hello(NETSIM_ID dev, double time)
static void add_addresslist_option(NETSIM_ID d, NetSim_PACKET *packet)
static ptrPIM_HELLO alloc_pim_hello()
void set_pim_hdr(ptrPIM_HDR hdr, PIMMSG type)
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)
void * get_PIM_MSG(NetSim_PACKET *packet)
void send_pim_msg(NETSIM_ID d, double time, NetSim_PACKET *packet)
ptrENCODED_UNICAST_ADDR encode_unicast_addr(NETSIM_IPAddress ip)
#define PIM_OPTION_DRPRIORITY_LEN
struct stru_pim_Hello * ptrPIM_HELLO
#define PIM_OPTION_HOLDTIME_TYPE
#define ENCODED_UNICAST_ADDR_LEN
#define PIM_OPTION_LANPRUNEDELAY_LEN
#define PIM_OPTION_GENERATIONID_LEN
#define PIM_OPTION_LANPRUNEDELAY_TYPE
#define PIM_OPTION_ADDRLIST_TYPE
#define PIM_HELLO_OPTION_LEN
#define PIM_OPTION_GENERATIONID_TYPE
#define PIM_OPTION_DRPRIORITY_TYPE
void elect_DR(NETSIM_ID d, NETSIM_ID ifid)
ptrPIM_NEIGHBOR find_neighbor(NETSIM_ID d, NETSIM_IPAddress ip)
ptrPIM_NEIGHBOR create_and_add_neighbor(NETSIM_ID d, NETSIM_ID ifId, NETSIM_IPAddress address)
void pim_add_timeout_event(NETSIM_ID d, double time, IP_SUBEVENT eve, NETSIM_IPAddress group)
void print_pim_sm_log(char *format,...)
NETSIM_IPAddress ALL_PIM_ROUTERS_ADDRESS
#define DEVICE_NWADDRESS(DeviceId, InterfaceId)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
struct stru_NetSim_Packet * pPacket
NETSIM_IPAddress szSourceIP
struct stru_NetSim_Packet_NetworkLayer * pstruNetworkData
char str_ip[_NETSIM_IP_LEN]
ptrENCODED_UNICAST_ADDR * SeconadayAddr
ptrPIM_HELLO_OPTION * option
NETSIM_IPAddress unicastAddr
NETSIM_IPAddress * secondary_address_list
bool lan_prune_delay_present
UINT secondary_address_count