Hello,

I am currently implementing a efficient flooding algorithm (with source 
sequence numbers) in the wireless model of NS2 and my code makes use of 
the num_forwards() function accessible in the common header of a packet. 
The code looks like:

// We forward the packet if we this node has not already forwarded
// the packet or if the packet is a new one ( num_forward() == 0 )
if( ( ssf_seq_num_last < ssfh->pkt_seq_num() ) ||
     ( ch->num_forwards() == 0 ) )

If I use the Mac/802_11 layer num_forward() gets incremented every time 
the packet passes the MAC layer. If I use Mac/Simple num_forward() 
remains zero. A short grep showed me that in fact this is the case and 
Mac/Simple does not increment it.

Is the use of num_forwards() deprecated or should Mac/Simple simply not 
be used?

Regards,
        Christian

-- 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\ \\ \
Christian Walter Bakk. techn.\ Arrogance in computer science is measured
email: [EMAIL PROTECTED]          \ in nanodijkstras

Reply via email to