Navigation


Changeset 535:72c511043f05 in freeDiameter


Ignore:
Timestamp:
Sep 9, 2010, 2:17:54 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

A few bug fixes on the RADIUS/Diameter gateway.

Location:
extensions/app_radgw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgw_worker.c

    r516 r535  
    285285       
    286286       
    287         if (!keepsession) {
    288                 /* Destroy remaining session data (stateless gateway) */
    289                 CHECK_FCT_DO( fd_sess_destroy(&pa->sess),  );
    290         }
    291        
    292287        /* Now try and send the RADIUS answer */
    293288        if (rad_ans) {
     
    302297        }
    303298       
     299        if (!keepsession) {
     300                /* Destroy remaining session data (stateless gateway) */
     301                CHECK_FCT_DO( fd_sess_destroy(&pa->sess),  );
     302        }
     303       
    304304        /* Clear the RADIUS request */
    305305        if (pa->rad) {
  • extensions/app_radgw/rgwx_acct.c

    r532 r535  
    490490                CHECK_FCT( fd_sess_fromsid ( (char *)/* cast should be removed later */si, si_len, session, NULL) );
    491491               
    492                 TRACE_DEBUG(FULL, "[auth.rgwx] Translating new accounting message for session '%.*s'...", si_len, si);
     492                TRACE_DEBUG(FULL, "[acct.rgwx] Translating new accounting message for session '%.*s'...", si_len, si);
    493493               
    494494                /* Add the Session-Id AVP as first AVP */
     
    12621262               
    12631263                default:
    1264                         fd_log_debug("[auth.rgwx] Received Diameter answer with error code '%d' from server '%.*s', session %.*s, not translating into Accounting-Response\n",
     1264                        fd_log_debug("[acct.rgwx] Received Diameter answer with error code '%d' from server '%.*s', session %.*s, not translating into Accounting-Response\n",
    12651265                                        ahdr->avp_value->u32,
    12661266                                        oh->avp_value->os.len, oh->avp_value->os.data,
     
    12691269                        if (avp) {
    12701270                                CHECK_FCT( fd_msg_avp_hdr ( avp, &ahdr ) );
    1271                                 fd_log_debug("[auth.rgwx]   Error-Message content: '%.*s'\n",
     1271                                fd_log_debug("[acct.rgwx]   Error-Message content: '%.*s'\n",
    12721272                                                ahdr->avp_value->os.len, ahdr->avp_value->os.data);
    12731273                        }
     
    12751275                        if (avp) {
    12761276                                CHECK_FCT( fd_msg_avp_hdr ( avp, &ahdr ) );
    1277                                 fd_log_debug("[auth.rgwx]   Error-Reporting-Host: '%.*s'\n",
     1277                                fd_log_debug("[acct.rgwx]   Error-Reporting-Host: '%.*s'\n",
    12781278                                                ahdr->avp_value->os.len, ahdr->avp_value->os.data);
    12791279                        }
    12801280                        CHECK_FCT( fd_msg_search_avp (*diam_ans, cs->dict.Failed_AVP, &avp) );
    12811281                        if (avp) {
    1282                                 fd_log_debug("[auth.rgwx]   Failed-AVP was included in the message.\n");
     1282                                fd_log_debug("[acct.rgwx]   Failed-AVP was included in the message.\n");
    12831283                                /* Dump its content ? */
    12841284                        }
Note: See TracChangeset for help on using the changeset viewer.