I am trying to develop dsr protocol with new ideas, and I did investigate C++
codes, NS-2 Manual & the email archive. I am using ns-2.29

So far I’m facing two problems & I have a request:

First – In trace file, the dsr flag related to routing request (-Pq: Routing
Request Flag) does not give the value 1 (ALL TIME) to indicate that “this is
dsr request packet”, however I used lots of different Topologies, Connections
scenarios, & Movement scenarios. That forced me to investigate the C++ code
related to it, and I found that the related code that is responsible to show
the route request flag is [srh->route_request()] and this  should be set to
equal 1 in case that we have route request packet! Some of the code in file
dsragent.cc DOES NOT contain such a code when it is - for sure - route
request, So I did added [srh->route_request()=1]. And still I don’t get
Routing Request Flag (-Pq: 1)! Can any body explain that? The trace file is
exist in ~/trace/cmu-trace.cc


Second - I am trying to add some new flags in a way similar to route request!
I did typical similar code to file hdr_sr.h & I added to file dsragent.cc and
set it to 1 always just to see it in trace file, and I always get strange
values (such: -1425044999) instead of 1, which leaded me to think that it may
access the address of it instead of the value itself! I did review it & review
the pointers & access in C++ information, and I did add the setting to value 1
within different files, but still get strange values (-1425044999)


My request Can any body explain to me what is going on? And if there is any
ideas to make the flag appear correctly?

.
.
.
.
=========================
Tariq Alsaifi,
PG Mail, Merz court,
School of EECE,
University of Newcastle,
Newcastle-upon-Tyne,
NE1 7RU

Reply via email to