Changeset 968:652713ce3596 in freeDiameter
- Timestamp:
- Mar 12, 2013, 11:47:53 PM (11 years ago)
- Branch:
- default
- Parents:
- 967:bbc08d58325a (diff), 940:9b00b868e308 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfdcore.h
r939 r968 87 87 88 88 /* Parse the freeDiameter.conf configuration file, load the extensions */ 89 int fd_core_parseconf(c har * conffile);89 int fd_core_parseconf(const char * conffile); 90 90 91 91 /* Start the server & client threads */ … … 111 111 int cnf_eyec; /* Eye catcher: EYEC_CONFIG */ 112 112 113 c har*cnf_file; /* Configuration file to parse, default is DEFAULT_CONF_FILE */113 const char *cnf_file; /* Configuration file to parse, default is DEFAULT_CONF_FILE */ 114 114 115 115 DiamId_t cnf_diamid; /* Diameter Identity of the local peer (FQDN -- ASCII) */ … … 350 350 * ENOMEM : Memory allocation for the new object element failed.) 351 351 */ 352 int fd_peer_add ( struct peer_info * info, c har * orig_dbg, void (*cb)(struct peer_info *, void *), void * cb_data );352 int fd_peer_add ( struct peer_info * info, const char * orig_dbg, void (*cb)(struct peer_info *, void *), void * cb_data ); 353 353 354 354 /* -
include/freeDiameter/libfdcore.h
r947 r968 385 385 int fd_peer_get_state(struct peer_hdr *peer); 386 386 387 /* 388 * FUNCTION: fd_peer_get_load_pending 389 * 390 * PARAMETERS: 391 * peer : The peer which load to read 392 * 393 * DESCRIPTION: 394 * Returns the current number of requests sent to this peer 395 * that have not been answered yet. This is an empirical indication 396 * of the workload of this peer. 397 * 398 * RETURN VALUE: 399 * 0 : The load parameter has been updated. (it should have a positive value always) 400 * !0 : An error occurred 401 */ 402 int fd_peer_get_load_pending(struct peer_hdr *peer, int * load); 403 387 404 /* 388 405 * FUNCTION: fd_peer_validate_register -
libfdcore/fdd.l
r961 r968 52 52 yylloc->first_column = yylloc->last_column + 1; \ 53 53 yylloc->last_column = yylloc->first_column + yyleng - 1; \ 54 TRACE_DEBUG_ERROR(\54 fd_log_debug( \ 55 55 "(%d:%d-%d:%d) matched rule %d, length=%d, txt='%s'\n", \ 56 56 yylloc->first_line, yylloc->first_column, \ -
libfdcore/peers.c
r939 r968 91 91 92 92 /* Add a new peer entry */ 93 int fd_peer_add ( struct peer_info * info, c har * orig_dbg, void (*cb)(struct peer_info *, void *), void * cb_data )93 int fd_peer_add ( struct peer_info * info, const char * orig_dbg, void (*cb)(struct peer_info *, void *), void * cb_data ) 94 94 { 95 95 struct fd_peer *p = NULL; -
libfdcore/peers.c
r961 r968 257 257 } 258 258 259 /* Return the value of srlist->cnt */ 260 int fd_peer_get_load_pending(struct peer_hdr *peer, int * load) 261 { 262 struct fd_peer * p = (struct fd_peer *)peer; 263 TRACE_ENTRY("%p %p", peer, load); 264 CHECK_PARAMS(CHECK_PEER(peer) && load); 265 266 CHECK_POSIX( pthread_mutex_lock(&p->p_sr.mtx) ); 267 *load = p->p_sr.cnt; 268 CHECK_POSIX( pthread_mutex_unlock(&p->p_sr.mtx) ); 269 270 return 0; 271 } 272 273 259 274 /* Destroy a structure once cleanups have been performed (fd_psm_abord, ...) */ 260 275 int fd_peer_free(struct fd_peer ** ptr) … … 395 410 } 396 411 397 fd_log_debug("> %s\t%s ", STATE_STR(fd_peer_getstate(peer)), peer->p_hdr.info.pi_diamid);412 fd_log_debug("> %s\t%s\t[%dsr]", STATE_STR(fd_peer_getstate(peer)), peer->p_hdr.info.pi_diamid, peer->p_sr.cnt); 398 413 if (details > INFO) { 399 414 fd_log_debug("\t(rlm:%s)", peer->p_hdr.info.runtime.pir_realm ?: "<unknown>");
Note: See TracChangeset
for help on using the changeset viewer.