ns-allinone-2.35/ns-2.35/mac/smac.cc
void SMAC::update_myNeighbList()
{
        //we should update the schedTab[].numNodes before we call checkMySched()
        //to ensure the next available schedule is correct
        check_schedFlag();
        update_neighbList();
        updateNeighbList_ = 0;
        schedTab_[0].chkSched = 0;  //we already did checkMySched() in update_neighbList()
        txRequest_ = 0;
}
//update_myNeighbList() is executed whenever the UpdateNeighb timer timesout
update_myNeighbList() is executed whenever the UpdateNeighb timer timesout
update_myNeighbList () is executed whenever the UpdateNeighb timer timesout
void SMAC::update_myNeighbList()
{
        check_schedFlag();
        update_neighbList();
        updateNeighbList_ = 0;
        schedTab_[0].chkSched = 0;  
        txRequest_ = 0;
}
void SMAC :: update_myNeighbList ( ) { check_schedFlag ( ) ; update_neighbList ( ) ; updateNeighbList_ = 0 ; schedTab_ [ 0 ] . chkSched = 0 ; txRequest_ = 0 ; }
update_myNeighbList() is executed whenever the UpdateNeighb timer timesout
update_myNeighbList () is executed whenever the UpdateNeighb timer timesout
//we should update the schedTab[].numNodes before we call checkMySched() //to ensure the next available schedule is correct //we already did checkMySched() in update_neighbList()