INET Framework for OMNeT++/OMNEST
OSPFcommon.h File Reference
#include <ctype.h>
#include <functional>
#include <stdio.h>
#include "inet/networklayer/contract/ipv4/IPv4Address.h"
#include "inet/networklayer/common/L3AddressResolver.h"

Classes

struct  inet::ospf::AuthenticationKeyType
 
struct  inet::ospf::IPv4AddressRange
 
struct  inet::ospf::HostRouteParameters
 
struct  inet::ospf::LSAKeyType
 
class  inet::ospf::LSAKeyType_Less
 
struct  inet::ospf::DesignatedRouterID
 

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::ospf
 

Macros

#define LS_REFRESH_TIME   1800
 
#define MIN_LS_INTERVAL   5
 
#define MIN_LS_ARRIVAL   1
 
#define MAX_AGE   3600
 
#define CHECK_AGE   300
 
#define MAX_AGE_DIFF   900
 
#define LS_INFINITY   16777215
 
#define DEFAULT_DESTINATION_ADDRESS   0
 
#define DEFAULT_DESTINATION_MASK   0
 
#define INITIAL_SEQUENCE_NUMBER   -2147483647
 
#define MAX_SEQUENCE_NUMBER   2147483647
 
#define VIRTUAL_LINK_TTL   32
 
#define IPV4_DATAGRAM_LENGTH   65536
 
#define OSPF_HEADER_LENGTH   24
 
#define OSPF_LSA_HEADER_LENGTH   20
 
#define OSPF_HELLO_HEADER_LENGTH   20
 
#define OSPF_DD_HEADER_LENGTH   8
 
#define OSPF_REQUEST_LENGTH   12
 
#define OSPF_ROUTERLSA_HEADER_LENGTH   4
 
#define OSPF_LINK_HEADER_LENGTH   12
 
#define OSPF_TOS_LENGTH   4
 
#define OSPF_NETWORKLSA_MASK_LENGTH   4
 
#define OSPF_NETWORKLSA_ADDRESS_LENGTH   4
 
#define OSPF_SUMMARYLSA_HEADER_LENGTH   8
 
#define OSPF_ASEXTERNALLSA_HEADER_LENGTH   16
 
#define OSPF_ASEXTERNALLSA_TOS_INFO_LENGTH   12
 
#define OSPF_EXTERNAL_ROUTES_LEARNED_BY_BGP   179
 
#define OSPF_BGP_DEFAULT_COST   1
 

Typedefs

typedef unsigned long inet::ospf::Metric
 
typedef IPv4Address inet::ospf::RouterID
 
typedef IPv4Address inet::ospf::AreaID
 
typedef IPv4Address inet::ospf::LinkStateID
 

Enumerations

enum  inet::ospf::AuthenticationType { inet::ospf::NULL_TYPE = 0, inet::ospf::SIMPLE_PASSWORD_TYPE = 1, inet::ospf::CRYTOGRAPHIC_TYPE = 2 }
 

Functions

const RouterID inet::ospf::NULL_ROUTERID (0, 0, 0, 0)
 
const AreaID inet::ospf::BACKBONE_AREAID (0, 0, 0, 0)
 
const LinkStateID inet::ospf::NULL_LINKSTATEID (0, 0, 0, 0)
 
const IPv4Address inet::ospf::NULL_IPV4ADDRESS (0, 0, 0, 0)
 
const IPv4AddressRange inet::ospf::NULL_IPV4ADDRESSRANGE (IPv4Address(0, 0, 0, 0), IPv4Address(0, 0, 0, 0))
 
IPv4Address inet::ospf::operator& (IPv4Address address, IPv4Address mask)
 
IPv4Address inet::ospf::operator| (IPv4Address address, IPv4Address match)
 
bool inet::ospf::isSameNetwork (IPv4Address address1, IPv4Address mask1, IPv4Address address2, IPv4Address mask2)
 
bool inet::ospf::operator== (DesignatedRouterID leftID, DesignatedRouterID rightID)
 
bool inet::ospf::operator!= (DesignatedRouterID leftID, DesignatedRouterID rightID)
 
IPv4Address inet::ospf::ipv4AddressFromAddressString (const char *charForm)
 
IPv4Address inet::ospf::ipv4NetmaskFromAddressString (const char *charForm)
 
char inet::ospf::hexCharToByte (char hex)
 
char inet::ospf::hexPairToByte (char upperHex, char lowerHex)
 

Variables

const DesignatedRouterID inet::ospf::NULL_DESIGNATEDROUTERID
 

Macro Definition Documentation

#define CHECK_AGE   300
#define DEFAULT_DESTINATION_ADDRESS   0
#define DEFAULT_DESTINATION_MASK   0
#define LS_INFINITY   16777215
#define LS_REFRESH_TIME   1800
#define MAX_AGE_DIFF   900
#define MIN_LS_INTERVAL   5
#define OSPF_ASEXTERNALLSA_HEADER_LENGTH   16
#define OSPF_ASEXTERNALLSA_TOS_INFO_LENGTH   12
#define OSPF_DD_HEADER_LENGTH   8
#define OSPF_EXTERNAL_ROUTES_LEARNED_BY_BGP   179
#define OSPF_HELLO_HEADER_LENGTH   20
#define OSPF_LINK_HEADER_LENGTH   12
#define OSPF_NETWORKLSA_ADDRESS_LENGTH   4
#define OSPF_NETWORKLSA_MASK_LENGTH   4
#define OSPF_REQUEST_LENGTH   12
#define OSPF_ROUTERLSA_HEADER_LENGTH   4
#define OSPF_SUMMARYLSA_HEADER_LENGTH   8
#define OSPF_TOS_LENGTH   4