LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2014, 11:49 AM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
error: format_rtaodv: invalid RTAODV packet type


hi
i add a new routing protocol like aodv and called it: rtaodv
now i write a tcl script to run this routing protocol but i have this error :

me@HP-PC ~/Desktop/ns-allinone-2.35/ns-2.35/tcl/ex $ ns sm2.tcl
num_nodes is set 27
INITIALIZE THE LIST xListHead
Starting Simulation...
format_rtaodv: invalid RTAODV packet type


can any one help me please ?!!!!
 
Old 12-12-2014, 02:10 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
New functions, packet types, etc. can be added to :
ns-2.35/tcl/{ files.tcl }.

When added, and compiled into a new executable 'ns',
the new "words" can be used in a `simulation.tcl' file.

? May be your "RTAODV packet" should be added to ns-packet.tcl ?

-
 
Old 12-15-2014, 12:47 AM   #3
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
i had checked anythig that you said but i still have this problem ...!!!
 
Old 12-15-2014, 02:41 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #3 .
Quote:
I had checked anything
May be your new protocol can be compared to AODV ?
This is where you have the AODV code :
ns-2.35/aodv/{ aodv.cc, aodv.h, aodv_packet.h, aodv_rqueue.cc, aodv_rtable.cc }
ns-2.35/aomdv/{ aomdv.cc, aomdv_logs.cc }
ns-2.35/common/packet.h
ns-2.35/queue/{ dsr-priqueue.cc, priqueue.cc, rtqueue.cc }
ns-2.35/routing/{ rttable.cc, rttable.h }
ns-2.35/tcl/lib/{ ns-agent.tcl, ns-lib.tcl, ns-mobilenode.tcl, ns-packet.tcl }
ns-2.35/trace/{ cmu-trace.cc, cmu-trace.h }

-

Last edited by knudfl; 12-15-2014 at 02:44 AM.
 
Old 12-19-2014, 01:59 PM   #5
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
hi
i detected that my problem was NULL in ah header packet type. in this location:

} (RTAODV::recvAODV(Packet *p
; (struct hdr_rtaodv *ah = HDR_RTAODV(p
.
.
.
;(if(ah->ah_type!=NULL) printf("ah in rtaodv %x", ah->ah_type
;(else printf("ah in rtaodv is null \n
}(switch(ah->ah_type

case RTAODVTYPE_RREQ:
recvRequest(p);
break;

IN cmu_trace.cc


void
CMUTrace::format_rtaodv(Packet *p, int offset)
{
struct hdr_rtaodv *ah = HDR_RTAODV(p);
.
.
.
;("if (ah->ah_type==NULL) printf("\n ah is null \n
;(else printf("ah_type == %x" , ah->ah_type

switch(ah->ah_type) {
case RTAODVTYPE_RREQ:
.
.


i add fprint command there to undrestand that ah_type is NULL or not. yes ah_type was NULL.
now what should i do. i checked every things....
the erroe is :

me@HP-PC ~/e $ ns sm3.tcl
num_nodes is set 4
INITIALIZE THE LIST xListHead
Starting Simulation...

ah is null
format_rtaodv: invalid RTAODV packet type
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMB Error : Kernal Reporting smb_get_length: Invalid NBT packet ,code=fd ukn_linux Linux - Newbie 1 05-10-2008 03:49 PM
kernel: 10.x.x.x sent an invalid ICMP type 11, code 0 error to a broadcast: x.x.x.x Felipe Linux - Networking 0 02-25-2008 02:20 AM
dmesg Invalid packet / INPUT packet died flood H_TeXMeX_H Slackware 5 11-12-2007 02:52 PM
A packet filter using libipq which uses ether type field to capture the packet can26_manish Programming 2 10-16-2007 05:35 AM
invalid icmp type 3 code 3 error to a broadcast nkeever Linux - Newbie 3 06-12-2006 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration