comparison extensions/app_radgw/rgw_msg.c @ 517:d5383f28b96e

Cleanup the RADIUS dump format
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 27 Aug 2010 11:14:17 +0900
parents 1c2f5ee38039
children 2c097ed9d0ea
comparison
equal deleted inserted replaced
516:1c2f5ee38039 517:d5383f28b96e
96 fd_log_debug(" %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", 96 fd_log_debug(" %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n",
97 auth[8], auth[9], auth[10], auth[11], 97 auth[8], auth[9], auth[10], auth[11],
98 auth[12], auth[13], auth[14], auth[15]); 98 auth[12], auth[13], auth[14], auth[15]);
99 for (i = 0; i < msg->radius.attr_used; i++) { 99 for (i = 0; i < msg->radius.attr_used; i++) {
100 struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]); 100 struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]);
101 fd_log_debug(" - len:%3hhu, type:0x%02hhx (%s)\n", attr->length, attr->type, rgw_msg_attrtype_str(attr->type)); 101 fd_log_debug(" - type: 0x%02hhx (%s)\n len: %3hhu,", attr->length, attr->type, rgw_msg_attrtype_str(attr->type));
102 radius_msg_dump_attr_val(attr); 102 radius_msg_dump_attr_val(attr);
103 } 103 }
104 fd_log_debug("-----------------------------\n"); 104 fd_log_debug("-----------------------------\n");
105 } 105 }
106 106
"Welcome to our mercurial repository"