[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] How to modify packet header?
Dear all:
I cleaned all the .o files using "make clean",
recompile it and the program is OK now. So I guess
there is some discrepancy between the source files and
object files in the Makefile, and only part of the
object files were updated when I changed the packet
header of hdr_sr. But I don't know where it is.
Frank
--- Zhenqiang Ye <[email protected]> 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/
>
=====
****************************************************
*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/