Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

LDP.cc File Reference

#include <omnetpp.h>
#include <iostream>
#include <fstream>
#include <algorithm>
#include "ConstType.h"
#include "LDP.h"
#include "LIBTable.h"
#include "InterfaceTableAccess.h"
#include "IPv4InterfaceData.h"
#include "RoutingTableAccess.h"
#include "LIBTableAccess.h"
#include "TEDAccess.h"
#include "NotifierConsts.h"
#include "UDPPacket.h"
#include "TCPSegment.h"

Functions

 Define_Module (LDP)
std::ostream & operator<< (std::ostream &os, const LDP::fec_bind_t &f)
bool fecPrefixCompare (const LDP::fec_t &a, const LDP::fec_t &b)
std::ostream & operator<< (std::ostream &os, const LDP::fec_t &f)
std::ostream & operator<< (std::ostream &os, const LDP::pending_req_t &r)
std::ostream & operator<< (std::ostream &os, const LDP::peer_info &p)
bool operator== (const FEC_TLV &a, const FEC_TLV &b)
bool operator!= (const FEC_TLV &a, const FEC_TLV &b)
std::ostream & operator<< (std::ostream &os, const FEC_TLV &a)


Function Documentation

Define_Module LDP   ) 
 

bool fecPrefixCompare const LDP::fec_t a,
const LDP::fec_t b
 

00043 {
00044     return a.length > b.length;
00045 }

bool operator!= const FEC_TLV a,
const FEC_TLV b
 

00073 {
00074     return !operator==(a, b);
00075 }

std::ostream& operator<< std::ostream &  os,
const FEC_TLV a
 

00078 {
00079     os << "addr=" << a.addr << "  length=" << a.length;
00080     return os;
00081 }

std::ostream& operator<< std::ostream &  os,
const LDP::peer_info p
 

00060 {
00061     os << "peerIP=" << p.peerIP << "  interface=" << p.linkInterface <<
00062           "  activeRole=" << (p.activeRole ? "true" : "false") <<
00063           "  socket=" << (p.socket ? TCPSocket::stateName(p.socket->state()) : "NULL");
00064     return os;
00065 }

std::ostream& operator<< std::ostream &  os,
const LDP::pending_req_t r
 

00054 {
00055     os << "fecid=" << r.fecid << "  peer=" << r.peer;
00056     return os;
00057 }

std::ostream& operator<< std::ostream &  os,
const LDP::fec_t f
 

00048 {
00049     os << "fecid=" << f.fecid << "  addr=" << f.addr << "  length=" << f.length << "  nextHop=" << f.nextHop;
00050     return os;
00051 }

std::ostream& operator<< std::ostream &  os,
const LDP::fec_bind_t f
 

00037 {
00038     os << "fecid=" << f.fecid << "  peer=" << f.peer << " label=" << f.label;
00039     return os;
00040 }

bool operator== const FEC_TLV a,
const FEC_TLV b
 

00068 {
00069     return a.length == b.length && a.addr == b.addr;
00070 }


Generated on Thu Oct 19 18:22:19 2006 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.0