Navigation


Changeset 356:e203fc0c95e3 in freeDiameter for extensions/app_radgw/rgw_common.h


Ignore:
Timestamp:
Jul 1, 2010, 3:47:34 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Updated the app_radgw extension to allow more souple management of sessions, and stateful gateway features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgw_common.h

    r333 r356  
    7272
    7373        /* handle an incoming RADIUS message */
    74         int     (*rgwp_rad_req) ( struct rgwp_config * conf, struct session * session, struct radius_msg * rad_req, struct radius_msg ** rad_ans, struct msg ** diam_fw, struct rgw_client * cli );
    75         /* ret 0: continue;
     74        int     (*rgwp_rad_req) ( struct rgwp_config * conf, struct session ** session, struct radius_msg * rad_req, struct radius_msg ** rad_ans, struct msg ** diam_fw, struct rgw_client * cli );
     75        /* ret >0: critical error (errno), log and exit.
     76           ret 0: continue;
    7677           ret -1: stop processing this message
    7778           ret -2: reply the content of rad_ans to the RADIUS client immediatly
    78            ret >0: critical error (errno), log and exit.
    7979         */
    8080       
    8181        /* handle the corresponding Diameter answer */
    82         int     (*rgwp_diam_ans) ( struct rgwp_config * conf, struct session * session, struct msg ** diam_ans, struct radius_msg ** rad_fw, struct rgw_client * cli );
     82        int     (*rgwp_diam_ans) ( struct rgwp_config * conf, struct session * session, struct msg ** diam_ans, struct radius_msg ** rad_fw, struct rgw_client * cli, int * stateful );
    8383        /* ret 0: continue; ret >0: error; ret: -1 ... (tbd) */
    84 
     84        /* if *stateful = 1 on return, the session will not be destroyed after RADIUS answer is sent. The extension must ensure to register a timeout on the session in this case. */
     85       
    8586} rgwp_descriptor;
    8687
Note: See TracChangeset for help on using the changeset viewer.