Changeset 979:b90cb4c07160 in freeDiameter for extensions/app_radgw
- Timestamp:
- Mar 15, 2013, 2:45:03 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/app_radgw
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/radius.c
r974 r979 328 328 for (i = 0; i < msg->radius.attr_used; i++) { 329 329 struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]); 330 fd_log_debug(" - Type: 0x%02hhx (%s) \nLen: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);330 fd_log_debug(" - Type: 0x%02hhx (%s) Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length); 331 331 radius_msg_dump_attr_val(attr); 332 332 } … … 335 335 for (i = msg->ps_first; i < msg->ps_first + msg->ps_nb; i++) { 336 336 struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]); 337 fd_log_debug(" - Type: 0x%02hhx (%s) \nLen: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);337 fd_log_debug(" - Type: 0x%02hhx (%s) Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length); 338 338 radius_msg_dump_attr_val(attr); 339 339 } … … 355 355 auth, MD5_MAC_LEN); 356 356 if (attr == NULL) { 357 printf("WARNING: Could not add " 358 "Message-Authenticator\n"); 357 printf("WARNING: Could not add Message-Authenticator\n"); 359 358 return -1; 360 359 } … … 693 692 if (tmp->type == RADIUS_ATTR_MESSAGE_AUTHENTICATOR) { 694 693 if (attr != NULL) { 695 printf("Multiple Message-Authenticator " 696 "attributes in RADIUS message\n"); 694 printf("Multiple Message-Authenticator attributes in RADIUS message\n"); 697 695 return 1; 698 696 } -
extensions/app_radgw/rgw_worker.c
r974 r979 164 164 if ((diam_msg == NULL) || ( fd_msg_parse_rules(diam_msg, fd_g_config->cnf_dict, NULL) ) ) { 165 165 fd_log_debug("[radgw] No or invalid Diameter message was generated after processing the RADIUS command %hhd (%s)." 166 " It may indicate a gateway configuration problem, or implementation issue in a plugin. \n",166 " It may indicate a gateway configuration problem, or implementation issue in a plugin.", 167 167 msg->radius.hdr->code, rgw_msg_code_str(msg->radius.hdr->code)); 168 168 /* We should also dump the conflicting rule here to help debug? */ … … 280 280 281 281 if (pb) { 282 TRACE_DEBUG(INFO, "[radgw] WARNING: %d mandatory AVP in the Diameter answer have not been translated to RADIUS! \nPlease use debug.rgwx for more information.", pb);282 TRACE_DEBUG(INFO, "[radgw] WARNING: %d mandatory AVP in the Diameter answer have not been translated to RADIUS! Please use debug.rgwx for more information.", pb); 283 283 } 284 284 } -
extensions/app_radgw/rgwx_auth.c
r974 r979 1450 1450 if (ahdr->avp_value->u32 != 3) { 1451 1451 fd_log_debug("[auth.rgwx] Received Diameter answer with Auth-Request-Type set to %d (%s) from server %.*s, session %.*s." 1452 " This may cause interoperability problems with RADIUS. \n",1452 " This may cause interoperability problems with RADIUS.", 1453 1453 ahdr->avp_value->u32, 1454 1454 (ahdr->avp_value->u32 == 1) ? "AUTHENTICATE_ONLY" : -
extensions/app_radgw/rgwx_echodrop.c
r974 r979 220 220 { 221 221 fd_log_debug( "[echodrop.rgwx] The extension is configured to echo some attributes from this message, but no session object has been created for it (yet)." 222 " Please check your configuration file and include a session-generating extension BEFORE calling echodrop.rgwx to echo attributes.\n"223 " Please use debug.rgwx to retrieve more information.\n" );222 " Please check your configuration file and include a session-generating extension BEFORE calling echodrop.rgwx to echo attributes." 223 " Please use debug.rgwx to retrieve more information." ); 224 224 return EINVAL; 225 225 } );
Note: See TracChangeset
for help on using the changeset viewer.