Changeset 974:2091bf698fb1 in freeDiameter for extensions/app_radgw/radius.c
- Timestamp:
- Mar 15, 2013, 2:14:35 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/radius.c
r972 r974 320 320 auth = &(msg->radius.hdr->authenticator[0]); 321 321 322 fd_log_debug("------ RADIUS msg dump ------- \n");323 fd_log_debug(" id : 0x%02hhx, code : %hhd (%s), length : %d \n", msg->radius.hdr->identifier, msg->radius.hdr->code, rgw_msg_code_str(msg->radius.hdr->code), ntohs(msg->radius.hdr->length));324 fd_log_debug(" auth: %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx \n",322 fd_log_debug("------ RADIUS msg dump -------"); 323 fd_log_debug(" id : 0x%02hhx, code : %hhd (%s), length : %d", msg->radius.hdr->identifier, msg->radius.hdr->code, rgw_msg_code_str(msg->radius.hdr->code), ntohs(msg->radius.hdr->length)); 324 fd_log_debug(" auth: %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx", 325 325 auth[0], auth[1], auth[2], auth[3], auth[4], auth[5], auth[6], auth[7]); 326 fd_log_debug(" %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx \n",326 fd_log_debug(" %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx", 327 327 auth[8], auth[9], auth[10], auth[11], auth[12], auth[13], auth[14], auth[15]); 328 328 for (i = 0; i < msg->radius.attr_used; i++) { … … 332 332 } 333 333 if (has_meta && msg->ps_nb) { 334 fd_log_debug("---- hidden attributes: \n");334 fd_log_debug("---- hidden attributes:"); 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]); … … 339 339 } 340 340 } 341 fd_log_debug("----------------------------- \n");341 fd_log_debug("-----------------------------"); 342 342 } 343 343 … … 527 527 msg_len = ntohs(hdr->length); 528 528 if (msg_len < sizeof(*hdr) || msg_len > len) { 529 TRACE_DEBUG(INFO, "Invalid RADIUS message length \n");529 TRACE_DEBUG(INFO, "Invalid RADIUS message length"); 530 530 return EINVAL; 531 531 } 532 532 533 533 if (msg_len < len) { 534 TRACE_DEBUG(INFO, "Ignored %lu extra bytes after RADIUS message \n",534 TRACE_DEBUG(INFO, "Ignored %lu extra bytes after RADIUS message", 535 535 (unsigned long) len - msg_len); 536 536 }
Note: See TracChangeset
for help on using the changeset viewer.