# HG changeset patch # User Sebastien Decugis # Date 1245826514 -32400 # Node ID 5d5401f6d96563a55763c6f698d7bf5c4543ebd1 # Parent 4349b77ad9892892374ebc7823f8089c6b7f196f Added verbosity in sub_auth diff -r 4349b77ad989 -r 5d5401f6d965 extensions/radius_gw/sub_auth.c --- a/extensions/radius_gw/sub_auth.c Wed Jun 24 15:45:32 2009 +0900 +++ b/extensions/radius_gw/sub_auth.c Wed Jun 24 15:55:14 2009 +0900 @@ -861,6 +861,7 @@ #define CONV2_STR( _attr_, _data_, _len_, _trunc_) { \ size_t __l = (size_t)(_len_); \ size_t __off = 0; \ + TRACE_DEBUG(FULL, "Converting attribute to "#_attr_); \ if ((_trunc_) == 0) { \ CHECK_PARAMS( __l <= 253 ); \ } \ @@ -878,12 +879,14 @@ #define CONV2_32B( _attr_, _data_) { \ uint32_t __v = htonl((uint32_t)(_data_)); \ + TRACE_DEBUG(FULL, "Converting attribute to "#_attr_); \ CHECK_MALLOC(radius_msg_add_attr(*rad_fw, (_attr_), (uint8_t *)&__v, sizeof(__v))); \ } #define CONV2_64B( _attr_, _data_) { /* Some systems do not provide htonll */ \ uint64_t __v = ((uint64_t)htonl((uint32_t)(((uint64_t)(_data_)) >> 32))) << 32; \ __v |= htonl((uint32_t)(_data_)); \ + TRACE_DEBUG(FULL, "Converting attribute to "#_attr_); \ CHECK_MALLOC(radius_msg_add_attr(*rad_fw, (_attr_), (uint8_t *)&__v, sizeof(__v))); \ } /* Search the different AVPs we handle here */