NetSim Source Code Help
Loading...
Searching...
No Matches
OSPF_Msg.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stru_ospf_packet_header
 
struct  stru_ospf_hello
 
struct  stru_ospf_DD
 
struct  stru_ospf_LSREQ_Object
 
struct  stru_ospf_lsrequest
 
struct  stur_ospf_lsupdate
 
struct  stru_ospf_lsack
 
struct  stru_lsa_header
 
struct  stru_ospf_rlsa_link
 
struct  stru_ospf_router_lsa
 

Macros

#define OSPF_VERSION   2
 
#define INTERFACE_MTU_DEFAULT   1500
 
#define IP_HDR_LEN   20
 
#define OSPF_INITIAL_SEQUENCE_NUMBER   0x80000001
 
#define OSPF_MAX_SEQUENCE_NUMBER   0x7FFFFFFF
 
#define OSPFMSG_TO_PACKETTYPE(msg)   (APP_PROTOCOL_OSPF*100+msg)
 
#define OSPFMSG_FROM_PACKETTYPE(type)   (type/100==APP_PROTOCOL_OSPF?type%100:0)
 
#define OSPFPACKETHDR_LEN   24
 
#define OSPF_HDR_SET_ROUTERID(hdr, id)   ((hdr)->RouterId = id)
 
#define OSPF_HDR_SET_AREAID(hdr, id)   ((hdr)->AreaId = id)
 
#define OSPF_MSG_TYPE(hdr)   ((hdr)->Type)
 
#define OSPF_MSG_IS_TYPE(hdr, type)   ((hdr)->Type==type)
 
#define OSPF_HDR_GET_LEN(hdr)   ((hdr)->Packet_length)
 
#define OSPF_PACKET_GET_HDR(packet)   ((ptrOSPFPACKETHDR)((packet)->pstruAppData->Packet_AppProtocol))
 
#define OSPF_PACKET_SET_HDR(packet, hdr)   ((packet)->pstruAppData->Packet_AppProtocol=hdr)
 
#define OSPF_HDR_GET_MSG(hdr)   ((hdr)->ospfMSG)
 
#define OSPF_PACKET_GET_MSG(packet)   (OSPF_HDR_GET_MSG(OSPF_PACKET_GET_HDR(packet)))
 
#define OSPF_PACKET_GET_MSG_TYPE(packet)   (OSPF_MSG_TYPE(OSPF_PACKET_GET_HDR(packet)))
 
#define OPT_E_BIT_INDEX   2
 
#define OPT_MC_BIT_INDEX   3
 
#define OPT_NP_BIT_INDEX   4
 
#define OPT_EA_BIT_INDEX   5
 
#define OPT_DC_BIT_INDEX   6
 
#define OPT_SET_E(opt)   ((opt) = setBit((opt),OPT_E_BIT_INDEX))
 
#define OPT_SET_MC(opt)   ((opt) = setBit((opt),OPT_MC_BIT_INDEX))
 
#define OPT_SET_NP(opt)   ((opt) = setBit((opt),OPT_NP_BIT_INDEX))
 
#define OPT_SET_EA(opt)   ((opt) = setBit((opt),OPT_EA_BIT_INDEX))
 
#define OPT_SET_DC(opt)   ((opt) = setBit((opt),OPT_DC_BIT_INDEX))
 
#define OPT_IS_E(opt)   (isBitSet((opt),OPT_E_BIT_INDEX))
 
#define OPT_IS_MC(opt)   (isBitSet((opt),OPT_MC_BIT_INDEX))
 
#define OPT_IS_NP(opt)   (isBitSet((opt),OPT_NP_BIT_INDEX))
 
#define OPT_IS_EA(opt)   (isBitSet((opt),OPT_EA_BIT_INDEX))
 
#define OPT_IS_DC(opt)   (isBitSet((opt),OPT_DC_BIT_INDEX))
 
#define OSPFHELLO_LEN_FIXED   20
 
#define OSPFDD_LEN_FIXED   8
 
#define DD_INIT_BIT_INDEX   3
 
#define DD_MORE_BIT_INDEX   2
 
#define DD_MASTER_BIT_INDEX   1
 
#define DD_SET_INIT(dd)   ((dd)->IMMS = (UINT8)setBit((dd)->IMMS,DD_INIT_BIT_INDEX))
 
#define DD_SET_MORE(dd)   ((dd)->IMMS = (UINT8)setBit((dd)->IMMS,DD_MORE_BIT_INDEX))
 
#define DD_SET_MASTER(dd)   ((dd)->IMMS = (UINT8)setBit((dd)->IMMS,DD_MASTER_BIT_INDEX))
 
#define DD_IS_INIT(dd)   (isBitSet((dd)->IMMS,DD_INIT_BIT_INDEX))
 
#define DD_IS_MORE(dd)   (isBitSet((dd)->IMMS,DD_MORE_BIT_INDEX))
 
#define DD_IS_MASTER(dd)   (isBitSet((dd)->IMMS,DD_MASTER_BIT_INDEX))
 
#define OSPF_DD_MAX_LSA_COUNT()   ((INTERFACE_MTU_DEFAULT - IP_HDR_LEN - OSPFDD_LEN_FIXED - OSPFPACKETHDR_LEN) / OSPFLSAHDR_LEN);
 
#define OSPFLSREQ_LEN_SINGLE   12
 
#define OSPFLSUPDATE_LEN_FIXED   4
 
#define OSPFLSACK_LEN_FIXED   0
 
#define OSPFLSAHDR_LEN   20
 
#define OSPFRLSALINK_LEN_FIXED   12
 
#define OSPFRLSA_LEN_FIXED   4
 

Typedefs

typedef NETSIM_IPAddress OSPFID
 
typedef struct stru_ospf_DD OSPFDD
 
typedef struct stru_ospf_DDptrOSPFDD
 
typedef struct stru_ospf_LSREQ_Object OSPFLSREQOBJ
 
typedef struct stru_ospf_LSREQ_ObjectptrOSPFLSREQOBJ
 
typedef struct stru_ospf_lsrequest OSPFLSREQ
 
typedef struct stru_ospf_lsrequestptrOSPFLSREQ
 
typedef struct stur_ospf_lsupdate OSPFLSUPDATE
 
typedef struct stur_ospf_lsupdateptrOSPFLSUPDATE
 
typedef struct stru_ospf_lsack OSPFLSACK
 
typedef struct stru_ospf_lsackptrOSPFLSACK
 
typedef struct stru_ospf_rlsa_link OSPFRLSALINK
 
typedef struct stru_ospf_rlsa_linkptrOSPFRLSALINK
 

Enumerations

enum  enum_ospf_msg {
  OSPFMSG_HELLO = 1 , OSPFMSG_DD , OSPFMSG_LSREQUEST , OSPFMSG_LSUPDATE ,
  OSPFMSG_LSACK
}
 
enum  OSPFLINKTYPE { OSPFLINKTYPE_POINT_TO_POINT = 1 , OSPFLINKTYPE_TRANSIT = 2 , OSPFLINKTYPE_STUB = 3 , OSPFLINKTYPE_VIRTUAL = 4 }
 
enum  enum_ls_type {
  LSTYPE_ROUTERLSA = 1 , LSTYPE_NETWORKLSA , LSTYPE_SUMMARYLSA_ROUTER , LSTYPE_SUMMARYLSA_NETWORK ,
  LSTYPE_ASEXTERNALLSA , LSTYPE_UNDEFINED
}
 

Functions

void OSPF_HDR_INCREASE_LEN (NetSim_PACKET *packet, UINT16 len)
 
void OSPF_HDR_SET_MSG (ptrOSPFPACKETHDR hdr, OSPFMSG type, void *msg, UINT16 len)
 
void OSPF_HDR_FREE (ptrOSPFPACKETHDR hdr)
 
ptrOSPFPACKETHDR OSPF_HDR_COPY (ptrOSPFPACKETHDR hdr)
 
void OSPF_HELLO_MSG_NEW (ptrOSPFPACKETHDR hdr)
 
ptrOSPFHELLO OSPF_HELLO_MSG_COPY (ptrOSPFHELLO hello)
 
void OSPF_HELLO_MSG_FREE (ptrOSPFHELLO hello)
 
void OSPF_DD_MSG_NEW (ptrOSPFPACKETHDR hdr)
 
ptrOSPFDD OSPF_DD_MSG_COPY (ptrOSPFDD dd)
 
void OSPF_DD_MSG_FREE (ptrOSPFDD dd)
 
void OSPF_LSREQ_MSG_NEW (ptrOSPFPACKETHDR hdr)
 
ptrOSPFLSREQ OSPF_LSREQ_MSG_COPY (ptrOSPFLSREQ lsr)
 
void OSPF_LSREQ_MSG_FREE (ptrOSPFLSREQ lsr)
 
void OSPF_LSUPDATE_MSG_NEW (ptrOSPFPACKETHDR hdr)
 
ptrOSPFLSUPDATE OSPF_LSUPDATE_MSG_COPY (ptrOSPFLSUPDATE lsu)
 
void OSPF_LSUPDATE_MSG_FREE (ptrOSPFLSUPDATE lsu)
 
void OSPF_LSACK_NEW (ptrOSPFPACKETHDR hdr)
 
ptrOSPFLSACK OSPF_LSACK_COPY (ptrOSPFLSACK ack)
 
void OSPF_LSACK_FREE (ptrOSPFLSACK ack)
 
void OSPF_LSA_MSG_FREE (ptrOSPFLSAHDR hdr)
 
ptrOSPFLSAHDR OSPF_LSA_MSG_COPY (ptrOSPFLSAHDR hdr)
 
ptrOSPFLSAHDR OSPF_LSA_HDR_COPY (ptrOSPFLSAHDR lsa)
 
void OSPF_LSA_HDR_FREE (ptrOSPFLSAHDR lsa)
 
void OSPFLSAINFO_FREE_RLSA (ptrOSPFRLSA rlsa)
 
ptrOSPFRLSA OSPFLSAINFO_COPY_RLSA (ptrOSPFRLSA rlsa)
 
NetSim_PACKETOSPF_PACKET_NEW (double time, OSPFMSG type, NETSIM_ID d, NETSIM_ID in)
 
void OSPF_SEND_PACKET (NetSim_PACKET *packet)
 
bool validate_ospf_packet (NetSim_PACKET *packet, NETSIM_ID d, NETSIM_ID in)
 

Variables

static char strOSPFLINKTYPE [][50] = { "NULL","Point_to_Point","Transit","Stub","Virtual" }
 
static char strLSTYPE [][50]
 

Macro Definition Documentation

◆ DD_INIT_BIT_INDEX

#define DD_INIT_BIT_INDEX   3

Definition at line 214 of file OSPF_Msg.h.

◆ DD_IS_INIT

#define DD_IS_INIT (   dd)    (isBitSet((dd)->IMMS,DD_INIT_BIT_INDEX))

Definition at line 220 of file OSPF_Msg.h.

◆ DD_IS_MASTER

#define DD_IS_MASTER (   dd)    (isBitSet((dd)->IMMS,DD_MASTER_BIT_INDEX))

Definition at line 222 of file OSPF_Msg.h.

◆ DD_IS_MORE

#define DD_IS_MORE (   dd)    (isBitSet((dd)->IMMS,DD_MORE_BIT_INDEX))

Definition at line 221 of file OSPF_Msg.h.

◆ DD_MASTER_BIT_INDEX

#define DD_MASTER_BIT_INDEX   1

Definition at line 216 of file OSPF_Msg.h.

◆ DD_MORE_BIT_INDEX

#define DD_MORE_BIT_INDEX   2

Definition at line 215 of file OSPF_Msg.h.

◆ DD_SET_INIT

#define DD_SET_INIT (   dd)    ((dd)->IMMS = (UINT8)setBit((dd)->IMMS,DD_INIT_BIT_INDEX))

Definition at line 217 of file OSPF_Msg.h.

◆ DD_SET_MASTER

#define DD_SET_MASTER (   dd)    ((dd)->IMMS = (UINT8)setBit((dd)->IMMS,DD_MASTER_BIT_INDEX))

Definition at line 219 of file OSPF_Msg.h.

◆ DD_SET_MORE

#define DD_SET_MORE (   dd)    ((dd)->IMMS = (UINT8)setBit((dd)->IMMS,DD_MORE_BIT_INDEX))

Definition at line 218 of file OSPF_Msg.h.

◆ INTERFACE_MTU_DEFAULT

#define INTERFACE_MTU_DEFAULT   1500

Definition at line 25 of file OSPF_Msg.h.

◆ IP_HDR_LEN

#define IP_HDR_LEN   20

Definition at line 26 of file OSPF_Msg.h.

◆ OPT_DC_BIT_INDEX

#define OPT_DC_BIT_INDEX   6

Definition at line 110 of file OSPF_Msg.h.

◆ OPT_E_BIT_INDEX

#define OPT_E_BIT_INDEX   2

Definition at line 106 of file OSPF_Msg.h.

◆ OPT_EA_BIT_INDEX

#define OPT_EA_BIT_INDEX   5

Definition at line 109 of file OSPF_Msg.h.

◆ OPT_IS_DC

#define OPT_IS_DC (   opt)    (isBitSet((opt),OPT_DC_BIT_INDEX))

Definition at line 120 of file OSPF_Msg.h.

◆ OPT_IS_E

#define OPT_IS_E (   opt)    (isBitSet((opt),OPT_E_BIT_INDEX))

Definition at line 116 of file OSPF_Msg.h.

◆ OPT_IS_EA

#define OPT_IS_EA (   opt)    (isBitSet((opt),OPT_EA_BIT_INDEX))

Definition at line 119 of file OSPF_Msg.h.

◆ OPT_IS_MC

#define OPT_IS_MC (   opt)    (isBitSet((opt),OPT_MC_BIT_INDEX))

Definition at line 117 of file OSPF_Msg.h.

◆ OPT_IS_NP

#define OPT_IS_NP (   opt)    (isBitSet((opt),OPT_NP_BIT_INDEX))

Definition at line 118 of file OSPF_Msg.h.

◆ OPT_MC_BIT_INDEX

#define OPT_MC_BIT_INDEX   3

Definition at line 107 of file OSPF_Msg.h.

◆ OPT_NP_BIT_INDEX

#define OPT_NP_BIT_INDEX   4

Definition at line 108 of file OSPF_Msg.h.

◆ OPT_SET_DC

#define OPT_SET_DC (   opt)    ((opt) = setBit((opt),OPT_DC_BIT_INDEX))

Definition at line 115 of file OSPF_Msg.h.

◆ OPT_SET_E

#define OPT_SET_E (   opt)    ((opt) = setBit((opt),OPT_E_BIT_INDEX))

Definition at line 111 of file OSPF_Msg.h.

◆ OPT_SET_EA

#define OPT_SET_EA (   opt)    ((opt) = setBit((opt),OPT_EA_BIT_INDEX))

Definition at line 114 of file OSPF_Msg.h.

◆ OPT_SET_MC

#define OPT_SET_MC (   opt)    ((opt) = setBit((opt),OPT_MC_BIT_INDEX))

Definition at line 112 of file OSPF_Msg.h.

◆ OPT_SET_NP

#define OPT_SET_NP (   opt)    ((opt) = setBit((opt),OPT_NP_BIT_INDEX))

Definition at line 113 of file OSPF_Msg.h.

◆ OSPF_DD_MAX_LSA_COUNT

#define OSPF_DD_MAX_LSA_COUNT ( )    ((INTERFACE_MTU_DEFAULT - IP_HDR_LEN - OSPFDD_LEN_FIXED - OSPFPACKETHDR_LEN) / OSPFLSAHDR_LEN);

Definition at line 223 of file OSPF_Msg.h.

◆ OSPF_HDR_GET_LEN

#define OSPF_HDR_GET_LEN (   hdr)    ((hdr)->Packet_length)

Definition at line 90 of file OSPF_Msg.h.

◆ OSPF_HDR_GET_MSG

#define OSPF_HDR_GET_MSG (   hdr)    ((hdr)->ospfMSG)

Definition at line 93 of file OSPF_Msg.h.

◆ OSPF_HDR_SET_AREAID

#define OSPF_HDR_SET_AREAID (   hdr,
  id 
)    ((hdr)->AreaId = id)

Definition at line 87 of file OSPF_Msg.h.

◆ OSPF_HDR_SET_ROUTERID

#define OSPF_HDR_SET_ROUTERID (   hdr,
  id 
)    ((hdr)->RouterId = id)

Definition at line 86 of file OSPF_Msg.h.

◆ OSPF_INITIAL_SEQUENCE_NUMBER

#define OSPF_INITIAL_SEQUENCE_NUMBER   0x80000001

Definition at line 27 of file OSPF_Msg.h.

◆ OSPF_MAX_SEQUENCE_NUMBER

#define OSPF_MAX_SEQUENCE_NUMBER   0x7FFFFFFF

Definition at line 28 of file OSPF_Msg.h.

◆ OSPF_MSG_IS_TYPE

#define OSPF_MSG_IS_TYPE (   hdr,
  type 
)    ((hdr)->Type==type)

Definition at line 89 of file OSPF_Msg.h.

◆ OSPF_MSG_TYPE

#define OSPF_MSG_TYPE (   hdr)    ((hdr)->Type)

Definition at line 88 of file OSPF_Msg.h.

◆ OSPF_PACKET_GET_HDR

#define OSPF_PACKET_GET_HDR (   packet)    ((ptrOSPFPACKETHDR)((packet)->pstruAppData->Packet_AppProtocol))

Definition at line 91 of file OSPF_Msg.h.

◆ OSPF_PACKET_GET_MSG

#define OSPF_PACKET_GET_MSG (   packet)    (OSPF_HDR_GET_MSG(OSPF_PACKET_GET_HDR(packet)))

Definition at line 94 of file OSPF_Msg.h.

◆ OSPF_PACKET_GET_MSG_TYPE

#define OSPF_PACKET_GET_MSG_TYPE (   packet)    (OSPF_MSG_TYPE(OSPF_PACKET_GET_HDR(packet)))

Definition at line 95 of file OSPF_Msg.h.

◆ OSPF_PACKET_SET_HDR

#define OSPF_PACKET_SET_HDR (   packet,
  hdr 
)    ((packet)->pstruAppData->Packet_AppProtocol=hdr)

Definition at line 92 of file OSPF_Msg.h.

◆ OSPF_VERSION

#define OSPF_VERSION   2

Definition at line 21 of file OSPF_Msg.h.

◆ OSPFDD_LEN_FIXED

#define OSPFDD_LEN_FIXED   8

Definition at line 213 of file OSPF_Msg.h.

◆ OSPFHELLO_LEN_FIXED

#define OSPFHELLO_LEN_FIXED   20

Definition at line 166 of file OSPF_Msg.h.

◆ OSPFLSACK_LEN_FIXED

#define OSPFLSACK_LEN_FIXED   0

Definition at line 340 of file OSPF_Msg.h.

◆ OSPFLSAHDR_LEN

#define OSPFLSAHDR_LEN   20

Definition at line 402 of file OSPF_Msg.h.

◆ OSPFLSREQ_LEN_SINGLE

#define OSPFLSREQ_LEN_SINGLE   12

Definition at line 265 of file OSPF_Msg.h.

◆ OSPFLSUPDATE_LEN_FIXED

#define OSPFLSUPDATE_LEN_FIXED   4

Definition at line 301 of file OSPF_Msg.h.

◆ OSPFMSG_FROM_PACKETTYPE

#define OSPFMSG_FROM_PACKETTYPE (   type)    (type/100==APP_PROTOCOL_OSPF?type%100:0)

Definition at line 40 of file OSPF_Msg.h.

◆ OSPFMSG_TO_PACKETTYPE

#define OSPFMSG_TO_PACKETTYPE (   msg)    (APP_PROTOCOL_OSPF*100+msg)

Definition at line 39 of file OSPF_Msg.h.

◆ OSPFPACKETHDR_LEN

#define OSPFPACKETHDR_LEN   24

Definition at line 85 of file OSPF_Msg.h.

◆ OSPFRLSA_LEN_FIXED

#define OSPFRLSA_LEN_FIXED   4

Definition at line 460 of file OSPF_Msg.h.

◆ OSPFRLSALINK_LEN_FIXED

#define OSPFRLSALINK_LEN_FIXED   12

Definition at line 451 of file OSPF_Msg.h.

Typedef Documentation

◆ OSPFDD

typedef struct stru_ospf_DD OSPFDD

◆ OSPFID

Definition at line 23 of file OSPF_Msg.h.

◆ OSPFLSACK

typedef struct stru_ospf_lsack OSPFLSACK

◆ OSPFLSREQ

◆ OSPFLSREQOBJ

◆ OSPFLSUPDATE

◆ OSPFRLSALINK

◆ ptrOSPFDD

typedef struct stru_ospf_DD* ptrOSPFDD

◆ ptrOSPFLSACK

typedef struct stru_ospf_lsack* ptrOSPFLSACK

◆ ptrOSPFLSREQ

◆ ptrOSPFLSREQOBJ

◆ ptrOSPFLSUPDATE

◆ ptrOSPFRLSALINK

Enumeration Type Documentation

◆ enum_ls_type

Enumerator
LSTYPE_ROUTERLSA 
LSTYPE_NETWORKLSA 
LSTYPE_SUMMARYLSA_ROUTER 
LSTYPE_SUMMARYLSA_NETWORK 
LSTYPE_ASEXTERNALLSA 
LSTYPE_UNDEFINED 

Definition at line 354 of file OSPF_Msg.h.

◆ enum_ospf_msg

Enumerator
OSPFMSG_HELLO 
OSPFMSG_DD 
OSPFMSG_LSREQUEST 
OSPFMSG_LSUPDATE 
OSPFMSG_LSACK 

Definition at line 31 of file OSPF_Msg.h.

◆ OSPFLINKTYPE

Enumerator
OSPFLINKTYPE_POINT_TO_POINT 
OSPFLINKTYPE_TRANSIT 
OSPFLINKTYPE_STUB 
OSPFLINKTYPE_VIRTUAL 

Definition at line 43 of file OSPF_Msg.h.

Function Documentation

◆ OSPF_DD_MSG_COPY()

ptrOSPFDD OSPF_DD_MSG_COPY ( ptrOSPFDD  dd)

Definition at line 32 of file OSPF_DD.c.

Here is the call graph for this function:

◆ OSPF_DD_MSG_FREE()

void OSPF_DD_MSG_FREE ( ptrOSPFDD  dd)

Definition at line 44 of file OSPF_DD.c.

Here is the call graph for this function:

◆ OSPF_DD_MSG_NEW()

void OSPF_DD_MSG_NEW ( ptrOSPFPACKETHDR  hdr)

Definition at line 23 of file OSPF_DD.c.

Here is the call graph for this function:

◆ OSPF_HDR_COPY()

ptrOSPFPACKETHDR OSPF_HDR_COPY ( ptrOSPFPACKETHDR  hdr)

Definition at line 48 of file OSPF_Msg.c.

Here is the caller graph for this function:

◆ OSPF_HDR_FREE()

void OSPF_HDR_FREE ( ptrOSPFPACKETHDR  hdr)

Definition at line 59 of file OSPF_Msg.c.

Here is the caller graph for this function:

◆ OSPF_HDR_INCREASE_LEN()

void OSPF_HDR_INCREASE_LEN ( NetSim_PACKET packet,
UINT16  len 
)

Definition at line 80 of file OSPF_Msg.c.

Here is the caller graph for this function:

◆ OSPF_HDR_SET_MSG()

void OSPF_HDR_SET_MSG ( ptrOSPFPACKETHDR  hdr,
OSPFMSG  type,
void *  msg,
UINT16  len 
)

Definition at line 70 of file OSPF_Msg.c.

Here is the caller graph for this function:

◆ OSPF_HELLO_MSG_COPY()

ptrOSPFHELLO OSPF_HELLO_MSG_COPY ( ptrOSPFHELLO  hello)

Definition at line 33 of file OSPF_Hello.c.

Here is the call graph for this function:

◆ OSPF_HELLO_MSG_FREE()

void OSPF_HELLO_MSG_FREE ( ptrOSPFHELLO  hello)

Definition at line 45 of file OSPF_Hello.c.

◆ OSPF_HELLO_MSG_NEW()

void OSPF_HELLO_MSG_NEW ( ptrOSPFPACKETHDR  hdr)

Definition at line 24 of file OSPF_Hello.c.

Here is the call graph for this function:

◆ OSPF_LSA_HDR_COPY()

ptrOSPFLSAHDR OSPF_LSA_HDR_COPY ( ptrOSPFLSAHDR  lsa)

Definition at line 245 of file OSPF_LSA.c.

Here is the caller graph for this function:

◆ OSPF_LSA_HDR_FREE()

void OSPF_LSA_HDR_FREE ( ptrOSPFLSAHDR  lsa)

Definition at line 253 of file OSPF_LSA.c.

Here is the caller graph for this function:

◆ OSPF_LSA_MSG_COPY()

ptrOSPFLSAHDR OSPF_LSA_MSG_COPY ( ptrOSPFLSAHDR  hdr)

Definition at line 237 of file OSPF_LSA.c.

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

◆ OSPF_LSA_MSG_FREE()

void OSPF_LSA_MSG_FREE ( ptrOSPFLSAHDR  hdr)

Definition at line 231 of file OSPF_LSA.c.

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

◆ OSPF_LSACK_COPY()

ptrOSPFLSACK OSPF_LSACK_COPY ( ptrOSPFLSACK  ack)

Definition at line 23 of file OSPF_LSAACK.c.

Here is the call graph for this function:

◆ OSPF_LSACK_FREE()

void OSPF_LSACK_FREE ( ptrOSPFLSACK  ack)

Definition at line 37 of file OSPF_LSAACK.c.

Here is the call graph for this function:

◆ OSPF_LSACK_NEW()

void OSPF_LSACK_NEW ( ptrOSPFPACKETHDR  hdr)

Definition at line 45 of file OSPF_LSAACK.c.

Here is the call graph for this function:

◆ OSPF_LSREQ_MSG_COPY()

ptrOSPFLSREQ OSPF_LSREQ_MSG_COPY ( ptrOSPFLSREQ  lsr)

Definition at line 39 of file OSPF_LSREQ.c.

◆ OSPF_LSREQ_MSG_FREE()

void OSPF_LSREQ_MSG_FREE ( ptrOSPFLSREQ  lsr)

Definition at line 54 of file OSPF_LSREQ.c.

◆ OSPF_LSREQ_MSG_NEW()

void OSPF_LSREQ_MSG_NEW ( ptrOSPFPACKETHDR  hdr)

Definition at line 30 of file OSPF_LSREQ.c.

Here is the call graph for this function:

◆ OSPF_LSUPDATE_MSG_COPY()

ptrOSPFLSUPDATE OSPF_LSUPDATE_MSG_COPY ( ptrOSPFLSUPDATE  lsu)

Definition at line 32 of file OSPF_LSUPDATE.c.

Here is the call graph for this function:

◆ OSPF_LSUPDATE_MSG_FREE()

void OSPF_LSUPDATE_MSG_FREE ( ptrOSPFLSUPDATE  lsu)

Definition at line 44 of file OSPF_LSUPDATE.c.

Here is the call graph for this function:

◆ OSPF_LSUPDATE_MSG_NEW()

void OSPF_LSUPDATE_MSG_NEW ( ptrOSPFPACKETHDR  hdr)

Definition at line 23 of file OSPF_LSUPDATE.c.

Here is the call graph for this function:

◆ OSPF_PACKET_NEW()

NetSim_PACKET * OSPF_PACKET_NEW ( double  time,
OSPFMSG  type,
NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 106 of file OSPF_Msg.c.

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

◆ OSPF_SEND_PACKET()

void OSPF_SEND_PACKET ( NetSim_PACKET packet)

Definition at line 136 of file OSPF_Msg.c.

Here is the caller graph for this function:

◆ OSPFLSAINFO_COPY_RLSA()

ptrOSPFRLSA OSPFLSAINFO_COPY_RLSA ( ptrOSPFRLSA  rlsa)

Definition at line 61 of file OSPF_RLSA.c.

Here is the caller graph for this function:

◆ OSPFLSAINFO_FREE_RLSA()

void OSPFLSAINFO_FREE_RLSA ( ptrOSPFRLSA  rlsa)

Definition at line 48 of file OSPF_RLSA.c.

Here is the caller graph for this function:

◆ validate_ospf_packet()

bool validate_ospf_packet ( NetSim_PACKET packet,
NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 202 of file OSPF_Msg.c.

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

Variable Documentation

◆ strLSTYPE

char strLSTYPE[][50]
static
Initial value:
= { "UNKNOWN",
"ROUTER_LSA",
"NETWORK_LSA",
"SUMMARY_LSA_ROUTER",
"SUMMARY_LSA_NETWORK",
"AS_EXTERNAL_LSA"
"UNDEFINED"}

Definition at line 363 of file OSPF_Msg.h.

◆ strOSPFLINKTYPE

char strOSPFLINKTYPE[][50] = { "NULL","Point_to_Point","Transit","Stub","Virtual" }
static

Definition at line 50 of file OSPF_Msg.h.