Dear All! I have just started to learn NS2 code for 802.11 MAC layer. I want to know the purpose of the following 3 assert() methods inside RetransmitRTS<http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classMac802__11.htm#Mac802__11d11> .
Mac802_11::RetransmitRTS<http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classMac802__11.htm#Mac802__11d11> () { assert(pktTx_<http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classMac.htm#UnslottedAlohaMacp29> ); assert(pktRTS_<http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classMac802__11.htm#Mac802__11r12> ); assert(mhBackoff_<http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classMac802__11.htm#Mac802__11r7> .busy<http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classMacTimer.htm#TxTimera6>() == 0); } thanking you in advance. Regards, Niamat