Navigation


Changeset 516:1c2f5ee38039 in freeDiameter for extensions/app_radgw/radius.c


Ignore:
Timestamp:
Aug 27, 2010, 10:59:51 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Allow RADIUS Proxies with the app_radgw extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/radius.c

    r254 r516  
    44 * It is redistributed under the terms of the BSD license, as allowed
    55 * by the original copyright reproduced bellow.
    6  *  In addition to this notice, only the #include directives have been modified.
     6 *  In addition to this notice, the following changes have been done:
     7 *   - created the radius_msg_dump_attr_val function
    78 */
    89#include "rgw_common.h"
     
    218219
    219220
    220 static void radius_msg_dump_attr(struct radius_attr_hdr *hdr)
     221void radius_msg_dump_attr_val(struct radius_attr_hdr *hdr)
    221222{
    222223        struct radius_attr_type *attr;
     
    225226
    226227        attr = radius_get_attr_type(hdr->type);
    227 
    228         printf("   Attribute %d (%s) length=%d\n",
    229                hdr->type, attr ? attr->name : "?Unknown?", hdr->length);
    230228
    231229        if (attr == NULL)
     
    283281                break;
    284282        }
     283}
     284
     285static void radius_msg_dump_attr(struct radius_attr_hdr *hdr)
     286{
     287        struct radius_attr_type *attr;
     288
     289        attr = radius_get_attr_type(hdr->type);
     290
     291        printf("   Attribute %d (%s) length=%d\n",
     292               hdr->type, attr ? attr->name : "?Unknown?", hdr->length);
     293       
     294        radius_msg_dump_attr_val(hdr);
    285295}
    286296
Note: See TracChangeset for help on using the changeset viewer.