Re: [ns] hello (ZRP)

2009-02-21 Thread Brijesh Patel
For all ZRP packets, it decrements the ttl value at the recv function. he(coder) asserts the [hdrip->ttl() -= 1;] statement with another variable 'jem'. That's it!!! Now if ttl value is less than 0, then it simply drops the packet. [which cannot happen] Batbold Toiruul-2 wrote: > > > Dear ns

Re: [ns] ZRP implementation (NS2.30)

2009-02-21 Thread Brijesh Patel
Please check in the file zrp.cc - In constructor of ZRPAgent, - the 1st argument must be PT_ZRP instead of PT_TCP. May be this will work for you!!! :) - Brijesh Ricardo Wojciechowski wrote: > > > Hello > > I've found a old version of ZRP for an older version of NS (NS2.1b9) . I > am > tryin

Re: [ns] suggestion-zrp segmentation fault..

2009-02-21 Thread Brijesh Patel
perhaps, the following change can fix your problem.. Pls look into zrp.cc file - for ZRPAgent constructor... Change 1st argument from PT_TCP to PT_ZRP.. - Brijesh oooh god wrote: > > > Hi all, > > I am simulating zrp but it ends with segmentation fault. Other protocols > like AODV, DSR(wit