[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] How to modify packet header?



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/