Changeset 1107:96f2051215c8 in freeDiameter for extensions/app_radgw/rgw_clients.c
- Timestamp:
- May 12, 2013, 11:39:07 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/rgw_clients.c
r1033 r1107 921 921 /* Dump the entry in debug mode */ 922 922 if (TRACE_BOOL(FULL + 1 )) { 923 char sa_buf[sSA_DUMP_STRLEN]; 924 fd_sa_sdump_numeric(sa_buf, ip_port); 923 925 TRACE_DEBUG(FULL, "Adding %s:", (type == RGW_CLI_NAS) ? "NAS" : "PROXY" ); 924 TRACE_ sSA(FD_LOG_DEBUG, FULL, "\tIP : ", ip_port, NI_NUMERICHOST | NI_NUMERICSERV, "");926 TRACE_DEBUG(FULL, "\tIP : %s", sa_buf ); 925 927 TRACE_BUFFER(FD_LOG_DEBUG, FULL, "\tKey: [", *key, keylen, "]" ); 926 928 } … … 941 943 942 944 if (ret == EEXIST) { 945 char sa_buf[sSA_DUMP_STRLEN]; 943 946 /* Check if the key is the same, then skip or return an error */ 944 947 if ((keylen == prev->key.len ) && ( ! memcmp(*key, prev->key.data, keylen) ) && (type == prev->type)) { … … 950 953 fd_log_error("ERROR: Conflicting RADIUS clients descriptions!"); 951 954 TRACE_ERROR("Previous entry: %s", (prev->type == RGW_CLI_NAS) ? "NAS" : "PROXY"); 952 TRACE_sSA(FD_LOG_ERROR, NONE, "\tIP : ", prev->sa, NI_NUMERICHOST | NI_NUMERICSERV, "" ); 955 fd_sa_sdump_numeric(sa_buf, prev->sa); 956 TRACE_ERROR("\tIP : %s", sa_buf); 953 957 TRACE_BUFFER(FD_LOG_ERROR, NONE, "\tKey: [", prev->key.data, prev->key.len, "]" ); 954 958 TRACE_ERROR("Conflicting entry: %s", (type == RGW_CLI_NAS) ? "NAS" : "PROXY"); 955 TRACE_sSA(FD_LOG_ERROR, NONE, "\tIP : ", ip_port, NI_NUMERICHOST | NI_NUMERICSERV, "" ); 959 fd_sa_sdump_numeric(sa_buf, ip_port); 960 TRACE_ERROR("\tIP : %s", sa_buf); 956 961 TRACE_BUFFER(FD_LOG_ERROR, NONE, "\tKey: [", *key, keylen, "]" ); 957 962 } … … 969 974 970 975 for (ref = senti->next; ref != senti; ref = ref->next) { 976 char sa_buf[sSA_DUMP_STRLEN]; 971 977 client = (struct rgw_client *)ref; 972 978 /* TODO: use a fct param instead of hardcoded FD_LOG_DEBUG */ 973 TRACE_sSA(FD_LOG_DEBUG, NONE, " - ", client->sa, NI_NUMERICHOST | NI_NUMERICSERV, (client->type == RGW_CLI_NAS) ? "" : " [PROXY]" ); 979 TODO("Replace with appropriate code"); 980 /* TRACE_sSA(FD_LOG_DEBUG, NONE, " - ", client->sa, NI_NUMERICHOST | NI_NUMERICSERV, (client->type == RGW_CLI_NAS) ? "" : " [PROXY]" ); */ 974 981 } 975 982 }
Note: See TracChangeset
for help on using the changeset viewer.