NetSim Source Code Help
Loading...
Searching...
No Matches
OSPF_Interface.h
Go to the documentation of this file.
1#pragma once
2/************************************************************************************
3* Copyright (C) 2020 *
4* TETCOS, Bangalore. India *
5* *
6* Tetcos owns the intellectual property rights in the Product and its content. *
7* The copying, redistribution, reselling or publication of any or all of the *
8* Product or its content without express prior written consent of Tetcos is *
9* prohibited. Ownership and / or any other right relating to the software and all *
10* intellectual property rights therein shall remain at all times with Tetcos. *
11* *
12* Author: Shashi Kant Suman *
13* *
14* ---------------------------------------------------------------------------------*/
15
16#ifndef _NETSIM_OSPF_INTERFACE_H_
17#define _NETSIM_OSPF_INTERFACE_H_
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22 typedef enum enum_ospf_if_type
23 {
30 static char strOSPFIFTYPE[][50] = { "POINT_TO_POINT","BROADCAST",
31 "NBMA","POINT_TO_MULTIPOINT","VITUALLINK" };
32
34 {
42 };
43 static char strOSPFIFSTATE[][50] = { "DOWN",
44 "LoopBack",
45 "Waiting",
46 "P2P",
47 "DR-Other",
48 "BackUp",
49 "DR" };
50
52 {
53 char* name;
57
70
73
76
88
89 //Delayed Ack
92 };
93
94 void ospf_interface_init(ptrOSPF_PDS ospf, ptrOSPF_IF thisInterface);
96
97#ifdef __cplusplus
98}
99#endif
100#endif //_NETSIM_OSPF_NEIGHBOR_H_
unsigned int NETSIM_ID
Definition: Animation.h:45
#define UINT
Definition: Linux.h:38
#define UINT16
Definition: Linux.h:33
#define UINT8
Definition: Linux.h:31
static char strOSPFIFTYPE[][50]
void ospf_interface_init(ptrOSPF_PDS ospf, ptrOSPF_IF thisInterface)
static char strOSPFIFSTATE[][50]
OSPFIFTYPE OSPFIFTYPE_FROM_STR(char *val)
enum_ospf_if_type
@ OSPFIFTYPE_P2MP
@ OSPFIFTYPE_P2P
@ OSPFIFTYPE_BROADCAST
@ OSPFIFTYPE_NBMA
@ OSPFIFTYPE_VIRTUALLINK
enum_if_state
@ OSPFIFSTATE_LOOPBACK
@ OSPFIFSTATE_WAITING
@ OSPFIFSTATE_DR
@ OSPFIFSTATE_BACKUP
@ OSPFIFSTATE_DOWN
@ OSPFIFSTATE_DROther
@ OSPFIFSTATE_P2P
enum enum_ospf_if_type OSPFIFTYPE
double OSPFTIME
Definition: OSPF_Typedef.h:46
void * ptrOSPFLIST
Definition: OSPF_Typedef.h:50
enum enum_if_state OSPFIFSTATE
Definition: OSPF_Typedef.h:37
OSPFTIME routerDeadInterval
bool isFloodTimerSet
OSPFTIME waitTimer
UINT networkLSTimerSeqNumber
bool delayedAckTimer
OSPFTIME RxmtInterval
ptrOSPF_NEIGHBOR * neighborRouterList
OSPFIFTYPE Type
ptrOSPFLIST delayedAckList
OSPFID backupDesignaterRouter
NETSIM_IPAddress IPIfAddr
double networkLSAOriginateTime
NETSIM_IPAddress designaterRouterAddr
NETSIM_ID configId
double lastFloodTimer
NETSIM_IPAddress IPIfMask
NETSIM_IPAddress backupDesignaterRouterAddr
bool extRoutingCapability
OSPFTIME helloInterval
UINT8 RouterPriority
OSPFTIME InfTransDelay
UINT16 interfaceOutputCost
OSPFID designaterRouter
NETSIM_ID id
bool includeSubnetRts
OSPFIFSTATE State
UINT neighborRouterCount
ptrOSPFLIST updateLSAList