NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4535


Ignore:
Timestamp:
Oct 9, 2009, 11:39:39 AM (8 years ago)
Author:
bless
Message:
  • renamed variables for clarification
  • removed superfluous and obsolete code with name lookup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • qos-nslp/trunk/src/QoS_StateModule.cpp

    r4210 r4535  
    20262026    uint32 new_refr_p, new_lifetime;
    20272027    uint32 local_rsn_upstream, rcvd_rsn_upstream;
    2028     rsn* send_rsn = reservemsg->get_rsn();
     2028    rsn* received_rsn = reservemsg->get_rsn();
    20292029    ILog(state_manager::modname, "process_rsn_and_qspec()");
    20302030   
     
    20452045        context->unlock();
    20462046    }
    2047     send_rsn->get(rcvd_rsn_upstream);
     2047    received_rsn->get(rcvd_rsn_upstream);
    20482048    Log(INFO_LOG,LOG_NORMAL,"QOS_STATEMODULE","RSNs: " << local_rsn_upstream << " <= " << rcvd_rsn_upstream);
    20492049   
    20502050    //======================================== process REFRESH_PERIOD ================================================
    2051     char ac[80];
    2052     if (gethostname(ac, sizeof(ac)) == -1) {
    2053         cerr << "Error when getting local host name." << endl;
    2054     }
    20552051    rp* r_p = reservemsg->get_rp();
    20562052    if (r_p) {
     
    21412137            // no QSPEC. Send RESPONSE with RSN because this message must not be forwarded futher as one hop.
    21422138            Log(ERROR_LOG,LOG_NORMAL,state_manager::modname, "no qspec found!");
    2143             send_response_with_rsn(send_rsn, false, local_sid, rcvd_mri, info_spec::transient, info_spec::FullQSPECrequired);
     2139            send_response_with_rsn(received_rsn, false, local_sid, rcvd_mri, info_spec::transient, info_spec::FullQSPECrequired);
    21442140        }
    21452141    }  // end if received rsn > saved rsn
     
    22952291
    22962292        //===================================== process RSN, QSPEC and REFRESH_PERIOD ==================================
    2297         rsn* send_rsn = reservemsg->get_rsn();
    2298         if (send_rsn) {
     2293        rsn* received_rsn = reservemsg->get_rsn();
     2294        if (received_rsn) {
    22992295            function_res = process_rsn_and_qspec(context, reservemsg, rmf_admin, i_am_originator, type == NSLP_Context::QNR,
    23002296                                                 forward, rcvd_sid, rcvd_mri, down);
     
    23162312                }
    23172313                else {
    2318                   send_response_with_rsn(send_rsn, false, rcvd_sid, rcvd_mri,
     2314                  send_response_with_rsn(received_rsn, false, rcvd_sid, rcvd_mri,
    23192315                                         info_spec::transient,
    23202316#ifdef QOS_NSLP_13
     
    23892385            if (type != NSLP_Context::QNI) {
    23902386                if (reservemsg->is_acknowledge_flag()) {
    2391                  send_response_with_rsn(send_rsn, false, rcvd_sid, rcvd_mri, info_spec::success,
     2387                 send_response_with_rsn(received_rsn, false, rcvd_sid, rcvd_mri, info_spec::success,
    23922388#ifdef QOS_NSLP_13
    23932389                     info_spec::Acknowledgement
Note: See TracChangeset for help on using the changeset viewer.