[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] How to modify packet header?
Did you do a full recompile of ns? If you have not, that is probably your problem. I believe under UNIX a make clean instruction will do what you will need. Otherwise, simply delete all of the .o files and recompile. Good luck
Aaron
At 05:55 PM 8/14/2001 -0700, Zhenqiang Ye wrote:
>Dear all:
> In my simulation, I add one variable into the DSR
>packet header (/dsr/hdr_sr.h)
>
> //old part
> .................
> int rtreq_seq_ ;
> int max_propagation_;
> int route_reply_;
> ..................
>
>---------------------------------
>
> //new part
> .................
> int rtreq_seq_ ;
>
> //new variable
> int first_hop_;
>
> int max_propagation_;
> int route_reply_;
> ..................
>
> When I run my program, I found that the variable
>mapping relationship changed. After the access
>function
>
> hdr_sr *srh = hdr_sr::access(p.pkt);
>
> srh->route_reply() will return the value of
>max_rpopagation_, not route_reply_. Is there anyone
>has the similar trouble before? Any reply will be
>appreciated.
>
>Frank
>
>
>
>
>
>=====
>****************************************************
>*Research Assistant (Ph.D student) *
>*Multimedia and Mobile Networking Lab, *
>*Department of Computer Science and Engineering, *
>*University of California, Riverside *
>* http://www.ee.ucr.edu/~zye *
>****************************************************
>
>__________________________________________________
>Do You Yahoo!?
>Make international calls for as low as $.04/minute with Yahoo! Messenger
>http://phonecard.yahoo.com/