[ns] Segmentation fault

2008-08-26 Thread mohammad shojaeinia

hi ns-users
i run trust bsed DSR(written by Lennart conard) and see some error like
follow
help me
thanks alot
Error on opening file: 23.dtmf.dtmf in TrustManager::load()
Node :23 is evil in Trust DSR
i: 24
value of AVR_ACK_TIME_OUT_VAL: 0.07
value of MAXWAIT: 0.01
value of ACKRECEIVED: 1
value of NOACKRECEIVED: -1
value of DATAPACKETRECEIVED:  0.7
value of S1_DEFAULTTRUSTVALUE: -0.4
value of S2_DEFAULTTRUSTVALUE: -0.4
value of DEFAULTUNKNOWNVAL: -0.4
value of NOEXPERIENCES: -0.4
value of MAX_NR_OF_EXP: 5
value of NROFEVILNODES: 10
and the number was24.dtmf
Opening file: 24.dtmf for loading...
Error on opening file: 24.dtmf.dtmf in TrustManager::load()
Node :24 is evil in Trust DSR
and the number was24.dtmf
Opening file: 24.dtmf for loading...
Error on opening file: 24.dtmf.dtmf in TrustManager::load()
Node :24 is evil in Trust DSR
value of AVR_ACK_TIME_OUT_VAL: 0.07
value of MAXWAIT: 0.01
value of ACKRECEIVED: 1
value of NOACKRECEIVED: -1
value of DATAPACKETRECEIVED:  0.7
value of S1_DEFAULTTRUSTVALUE: -0.4
value of S2_DEFAULTTRUSTVALUE: -0.4
value of DEFAULTUNKNOWNVAL: -0.4
value of NOEXPERIENCES: -0.4
value of MAX_NR_OF_EXP: 5
value of NROFEVILNODES: 10
and the number was25.dtmf
Opening file: 25.dtmf for loading...
Error on opening file: 25.dtmf.dtmf in TrustManager::load()
Node :25 is evil in Trust DSR
and the number was25.dtmf
Opening file: 25.dtmf for loading...
Error on opening file: 25.dtmf.dtmf in TrustManager::load()
Node :25 is evil in Trust DSR
value of AVR_ACK_TIME_OUT_VAL: 0.07
value of MAXWAIT: 0.01
value of ACKRECEIVED: 1
value of NOACKRECEIVED: -1
value of DATAPACKETRECEIVED:  0.7
value of S1_DEFAULTTRUSTVALUE: -0.4
value of S2_DEFAULTTRUSTVALUE: -0.4
value of DEFAULTUNKNOWNVAL: -0.4
value of NOEXPERIENCES: -0.4
value of MAX_NR_OF_EXP: 5
value of NROFEVILNODES: 10
and the number was26.dtmf
Opening file: 26.dtmf for loading...


[ns] how to use trust and delay factors for path selection in DSR cache periodically?

2008-08-26 Thread mohammad shojaeinia

hi ns-users
i want to use trust and delay factors for path selection  stored in
mobicache for DSR protocol periodically.
how can i do this?
help me
thanks
Best regard


[ns] (.text+0x6b13): undefined reference to function_name ; when i use make clean and make (mohammad shojaeinia)

2008-08-09 Thread mohammad shojaeinia

hi
Dear all
after replacing dsr with trust extension by original dsr in ns-2.33
and fedora core 9 platform ,i use *make clean* and *make* for run
trust based routing in DSR but i
give some error such as follow
help me please
this extention is refer to Mr Leonard conard

dsr/dsragent.o: In function
`DSRAgent::returnSrcRouteToRequestor(SRPacket)':
dsragent.cc:(.text+0x8cf): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function
`DSRAgent::returnSrcRteForOutsideDomainToRequestor(SRPacket)':
dsragent.cc:(.text+0xd11): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::sendOutPacketWithRoute(SRPacket,
bool, double)':
dsragent.cc:(.text+0x1219): undefined reference to
`ACKMonitor::addACK(double, int*, int, double)'
dsr/dsragent.o: In function `DSRAgent::sendRouteShortening(SRPacket, int,
int)':
dsragent.cc:(.text+0x1c7c): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::replyFromRouteCache(SRPacket)':
dsragent.cc:(.text+0x257f): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::handleForwarding(SRPacket)':
dsragent.cc:(.text+0x2c90): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::acceptRouteReply(SRPacket)':
dsragent.cc:(.text+0x3090): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::tap(Packet const*)':
dsragent.cc:(.text+0x4d54): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o:dsragent.cc:(.text+0x4e46): more undefined references to
`TrustManager::initNewTrustValues(Path, int)' follow
dsr/dsragent.o: In function `DSRAgent::handlePacketReceipt(SRPacket)':
dsragent.cc:(.text+0x55d8): undefined reference to
`TrustManager::updateTrustForNodes(Path, double)'
dsragent.cc:(.text+0x5670): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsragent.cc:(.text+0x57fc): undefined reference to
`ACKMonitor::handleACKReceived(double, int*, int, double, int)'
dsr/dsragent.o: In function `DSRAgent::Terminate()':
dsragent.cc:(.text+0x6276): undefined reference to `TrustManager::save(int)'
dsragent.cc:(.text+0x6286): undefined reference to `TrustManager::toPrint()'
dsragent.cc:(.text+0x62d6): undefined reference to `ACKMonitor::terminate()'
dsr/dsragent.o: In function `DSRAgent::command(int, char const* const*)':
dsragent.cc:(.text+0x6b13): undefined reference to
`TrustManager::setId(int)'
dsragent.cc:(.text+0x6b37): undefined reference to `TrustManager::load(int)'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6c10): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6dca): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6f76): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::initTrustManager()':
dsragent.cc:(.text+0x70de): undefined reference to
`TrustFormaterS1::TrustFormaterS1(TrustManager*)'
dsragent.cc:(.text+0x70f5): undefined reference to
`TrustManager::setTrustFormater(TrustFormater*)'
dsragent.cc:(.text+0x710f): undefined reference to
`TrustUpdaterS1::TrustUpdaterS1()'
dsragent.cc:(.text+0x7150): undefined reference to
`TrustManager::setTrustUpdater(TrustUpdater*)'
dsragent.cc:(.text+0x7189): undefined reference to
`ACKMonitor::setTrustManager(TrustManager*)'
dsr/dsragent.o: In function `DSRAgent::DSRAgent()':
dsragent.cc:(.text+0x75bf): undefined reference to
`TrustManager::TrustManager()'
dsragent.cc:(.text+0x7626): undefined reference to
`ACKMonitor::ACKMonitor()'
dsragent.cc:(.text+0x777c): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::DSRAgent()':
dsragent.cc:(.text+0x7a9d): undefined reference to
`TrustManager::TrustManager()'
dsragent.cc:(.text+0x7b04): undefined reference to
`ACKMonitor::ACKMonitor()'
dsragent.cc:(.text+0x7c5a): undefined reference to
`ACKMonitor::~ACKMonitor()'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Best Regards,


[ns] (.text+0x6b13): undefined reference to function_name ; when i use make clean and make

2008-08-08 Thread mohammad shojaeinia

hi
Dear all
after replacing dsr with trust extension by original dsr in ns-2.33
and fedora core 9 platform ,i use *make clean* and *make* for run
trust based routing in DSR but i
give some error such as follow
help me please
this extention is refer to Mr Leonard conard

dsr/dsragent.o: In function
`DSRAgent::returnSrcRouteToRequestor(SRPacket)':
dsragent.cc:(.text+0x8cf): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function
`DSRAgent::returnSrcRteForOutsideDomainToRequestor(SRPacket)':
dsragent.cc:(.text+0xd11): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::sendOutPacketWithRoute(SRPacket,
bool, double)':
dsragent.cc:(.text+0x1219): undefined reference to
`ACKMonitor::addACK(double, int*, int, double)'
dsr/dsragent.o: In function `DSRAgent::sendRouteShortening(SRPacket, int,
int)':
dsragent.cc:(.text+0x1c7c): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::replyFromRouteCache(SRPacket)':
dsragent.cc:(.text+0x257f): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::handleForwarding(SRPacket)':
dsragent.cc:(.text+0x2c90): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::acceptRouteReply(SRPacket)':
dsragent.cc:(.text+0x3090): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::tap(Packet const*)':
dsragent.cc:(.text+0x4d54): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o:dsragent.cc:(.text+0x4e46): more undefined references to
`TrustManager::initNewTrustValues(Path, int)' follow
dsr/dsragent.o: In function `DSRAgent::handlePacketReceipt(SRPacket)':
dsragent.cc:(.text+0x55d8): undefined reference to
`TrustManager::updateTrustForNodes(Path, double)'
dsragent.cc:(.text+0x5670): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsragent.cc:(.text+0x57fc): undefined reference to
`ACKMonitor::handleACKReceived(double, int*, int, double, int)'
dsr/dsragent.o: In function `DSRAgent::Terminate()':
dsragent.cc:(.text+0x6276): undefined reference to `TrustManager::save(int)'
dsragent.cc:(.text+0x6286): undefined reference to `TrustManager::toPrint()'
dsragent.cc:(.text+0x62d6): undefined reference to `ACKMonitor::terminate()'
dsr/dsragent.o: In function `DSRAgent::command(int, char const* const*)':
dsragent.cc:(.text+0x6b13): undefined reference to
`TrustManager::setId(int)'
dsragent.cc:(.text+0x6b37): undefined reference to `TrustManager::load(int)'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6c10): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6dca): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6f76): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::initTrustManager()':
dsragent.cc:(.text+0x70de): undefined reference to
`TrustFormaterS1::TrustFormaterS1(TrustManager*)'
dsragent.cc:(.text+0x70f5): undefined reference to
`TrustManager::setTrustFormater(TrustFormater*)'
dsragent.cc:(.text+0x710f): undefined reference to
`TrustUpdaterS1::TrustUpdaterS1()'
dsragent.cc:(.text+0x7150): undefined reference to
`TrustManager::setTrustUpdater(TrustUpdater*)'
dsragent.cc:(.text+0x7189): undefined reference to
`ACKMonitor::setTrustManager(TrustManager*)'
dsr/dsragent.o: In function `DSRAgent::DSRAgent()':
dsragent.cc:(.text+0x75bf): undefined reference to
`TrustManager::TrustManager()'
dsragent.cc:(.text+0x7626): undefined reference to
`ACKMonitor::ACKMonitor()'
dsragent.cc:(.text+0x777c): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::DSRAgent()':
dsragent.cc:(.text+0x7a9d): undefined reference to
`TrustManager::TrustManager()'
dsragent.cc:(.text+0x7b04): undefined reference to
`ACKMonitor::ACKMonitor()'
dsragent.cc:(.text+0x7c5a): undefined reference to
`ACKMonitor::~ACKMonitor()'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Best Regards,


[ns] (.text+0x6b13): undefined reference to function_name when i use make clean and make

2008-08-03 Thread mohammad shojaeinia

hi
Dear all
after replacing dsr with trust extension by original dsr in ns-2.33
and fedora core 9 platform ,i use *make clean* and *make* for run
trust based routing in DSR but i
give some error such as follow
help me please
this extention is refer to Mr Leonard conard

dsr/dsragent.o: In function
`DSRAgent::returnSrcRouteToRequestor(SRPacket)':
dsragent.cc:(.text+0x8cf): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function
`DSRAgent::returnSrcRteForOutsideDomainToRequestor(SRPacket)':
dsragent.cc:(.text+0xd11): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::sendOutPacketWithRoute(SRPacket,
bool, double)':
dsragent.cc:(.text+0x1219): undefined reference to
`ACKMonitor::addACK(double, int*, int, double)'
dsr/dsragent.o: In function `DSRAgent::sendRouteShortening(SRPacket, int,
int)':
dsragent.cc:(.text+0x1c7c): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::replyFromRouteCache(SRPacket)':
dsragent.cc:(.text+0x257f): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::handleForwarding(SRPacket)':
dsragent.cc:(.text+0x2c90): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::acceptRouteReply(SRPacket)':
dsragent.cc:(.text+0x3090): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::tap(Packet const*)':
dsragent.cc:(.text+0x4d54): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o:dsragent.cc:(.text+0x4e46): more undefined references to
`TrustManager::initNewTrustValues(Path, int)' follow
dsr/dsragent.o: In function `DSRAgent::handlePacketReceipt(SRPacket)':
dsragent.cc:(.text+0x55d8): undefined reference to
`TrustManager::updateTrustForNodes(Path, double)'
dsragent.cc:(.text+0x5670): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsragent.cc:(.text+0x57fc): undefined reference to
`ACKMonitor::handleACKReceived(double, int*, int, double, int)'
dsr/dsragent.o: In function `DSRAgent::Terminate()':
dsragent.cc:(.text+0x6276): undefined reference to `TrustManager::save(int)'
dsragent.cc:(.text+0x6286): undefined reference to `TrustManager::toPrint()'
dsragent.cc:(.text+0x62d6): undefined reference to `ACKMonitor::terminate()'
dsr/dsragent.o: In function `DSRAgent::command(int, char const* const*)':
dsragent.cc:(.text+0x6b13): undefined reference to
`TrustManager::setId(int)'
dsragent.cc:(.text+0x6b37): undefined reference to `TrustManager::load(int)'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6c10): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6dca): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6f76): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::initTrustManager()':
dsragent.cc:(.text+0x70de): undefined reference to
`TrustFormaterS1::TrustFormaterS1(TrustManager*)'
dsragent.cc:(.text+0x70f5): undefined reference to
`TrustManager::setTrustFormater(TrustFormater*)'
dsragent.cc:(.text+0x710f): undefined reference to
`TrustUpdaterS1::TrustUpdaterS1()'
dsragent.cc:(.text+0x7150): undefined reference to
`TrustManager::setTrustUpdater(TrustUpdater*)'
dsragent.cc:(.text+0x7189): undefined reference to
`ACKMonitor::setTrustManager(TrustManager*)'
dsr/dsragent.o: In function `DSRAgent::DSRAgent()':
dsragent.cc:(.text+0x75bf): undefined reference to
`TrustManager::TrustManager()'
dsragent.cc:(.text+0x7626): undefined reference to
`ACKMonitor::ACKMonitor()'
dsragent.cc:(.text+0x777c): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::DSRAgent()':
dsragent.cc:(.text+0x7a9d): undefined reference to
`TrustManager::TrustManager()'
dsragent.cc:(.text+0x7b04): undefined reference to
`ACKMonitor::ACKMonitor()'
dsragent.cc:(.text+0x7c5a): undefined reference to
`ACKMonitor::~ACKMonitor()'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Best Regards,



[ns] (.text+0x6b13): undefined reference to function_name when use make clean and make

2008-07-30 Thread mohammad shojaeinia

hi
Dear ns-users
i use *make clean* and *make* for run trust based routing in DSR but i
give some error such this
help me please
this code is refer to Mr Leonard conard

dsr/dsragent.o: In function
`DSRAgent::returnSrcRouteToRequestor(SRPacket)':
dsragent.cc:(.text+0x8cf): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function
`DSRAgent::returnSrcRteForOutsideDomainToRequestor(SRPacket)':
dsragent.cc:(.text+0xd11): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::sendOutPacketWithRoute(SRPacket,
bool, double)':
dsragent.cc:(.text+0x1219): undefined reference to
`ACKMonitor::addACK(double, int*, int, double)'
dsr/dsragent.o: In function `DSRAgent::sendRouteShortening(SRPacket, int,
int)':
dsragent.cc:(.text+0x1c7c): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::replyFromRouteCache(SRPacket)':
dsragent.cc:(.text+0x257f): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::handleForwarding(SRPacket)':
dsragent.cc:(.text+0x2c90): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::acceptRouteReply(SRPacket)':
dsragent.cc:(.text+0x3090): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o: In function `DSRAgent::tap(Packet const*)':
dsragent.cc:(.text+0x4d54): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsr/dsragent.o:dsragent.cc:(.text+0x4e46): more undefined references to
`TrustManager::initNewTrustValues(Path, int)' follow
dsr/dsragent.o: In function `DSRAgent::handlePacketReceipt(SRPacket)':
dsragent.cc:(.text+0x55d8): undefined reference to
`TrustManager::updateTrustForNodes(Path, double)'
dsragent.cc:(.text+0x5670): undefined reference to
`TrustManager::initNewTrustValues(Path, int)'
dsragent.cc:(.text+0x57fc): undefined reference to
`ACKMonitor::handleACKReceived(double, int*, int, double, int)'
dsr/dsragent.o: In function `DSRAgent::Terminate()':
dsragent.cc:(.text+0x6276): undefined reference to `TrustManager::save(int)'
dsragent.cc:(.text+0x6286): undefined reference to `TrustManager::toPrint()'
dsragent.cc:(.text+0x62d6): undefined reference to `ACKMonitor::terminate()'
dsr/dsragent.o: In function `DSRAgent::command(int, char const* const*)':
dsragent.cc:(.text+0x6b13): undefined reference to
`TrustManager::setId(int)'
dsragent.cc:(.text+0x6b37): undefined reference to `TrustManager::load(int)'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6c10): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6dca): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::~DSRAgent()':
dsragent.cc:(.text+0x6f76): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::initTrustManager()':
dsragent.cc:(.text+0x70de): undefined reference to
`TrustFormaterS1::TrustFormaterS1(TrustManager*)'
dsragent.cc:(.text+0x70f5): undefined reference to
`TrustManager::setTrustFormater(TrustFormater*)'
dsragent.cc:(.text+0x710f): undefined reference to
`TrustUpdaterS1::TrustUpdaterS1()'
dsragent.cc:(.text+0x7150): undefined reference to
`TrustManager::setTrustUpdater(TrustUpdater*)'
dsragent.cc:(.text+0x7189): undefined reference to
`ACKMonitor::setTrustManager(TrustManager*)'
dsr/dsragent.o: In function `DSRAgent::DSRAgent()':
dsragent.cc:(.text+0x75bf): undefined reference to
`TrustManager::TrustManager()'
dsragent.cc:(.text+0x7626): undefined reference to
`ACKMonitor::ACKMonitor()'
dsragent.cc:(.text+0x777c): undefined reference to
`ACKMonitor::~ACKMonitor()'
dsr/dsragent.o: In function `DSRAgent::DSRAgent()':
dsragent.cc:(.text+0x7a9d): undefined reference to
`TrustManager::TrustManager()'
dsragent.cc:(.text+0x7b04): undefined reference to
`ACKMonitor::ACKMonitor()'
dsragent.cc:(.text+0x7c5a): undefined reference to
`ACKMonitor::~ACKMonitor()'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Regards,


[ns] cant read god_:no such variable

2008-07-28 Thread mohammad shojaeinia

hi
Dear ns-users
i run tcl script in linux 7.1 and ns-2.18b and give some error :


Cant read god_:no such variable
 while executing
.
.
.
thanks
moh