Changeset 1545:3a40bd55ee74 in freeDiameter
- Timestamp:
- Jun 16, 2020, 3:32:03 AM (4 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dbg_rt/dbg_rt.c
r1216 r1545 34 34 *********************************************************************************************************/ 35 35 36 /* 37 * Debug-only extension for routing module; 36 /* 37 * Debug-only extension for routing module; 38 38 * displays state information at the end of routing information process. 39 39 */ … … 48 48 char * buf = NULL; size_t buflen; 49 49 TRACE_ENTRY("%p %p", cbdata, msg); 50 50 51 51 LOG_D("[dbg_rt] FWD routing message: %p", msg ? *msg : NULL); 52 52 if (msg) { … … 64 64 struct msg * msg = *pmsg; 65 65 char * buf = NULL; size_t buflen; 66 66 67 67 TRACE_ENTRY("%p %p %p", cbdata, msg, candidates); 68 68 69 69 LOG_D("[dbg_rt] OUT routing message: %p", msg); 70 70 CHECK_MALLOC( fd_msg_dump_treeview(&buf, &buflen, NULL, msg, NULL, 0, 1) ); 71 71 LOG_D("%s", buf); 72 free(buf); 72 73 LOG_D("[dbg_rt] Current list of candidates (%p): (score - id)", msg); 73 74 74 75 for (li = candidates->next; li != candidates; li = li->next) { 75 76 struct rtd_candidate *c = (struct rtd_candidate *) li; 76 77 LOG_D("[dbg_rt] %d -\t%s", c->score, c->diamid); 77 78 } 78 79 79 80 return 0; 80 81 } … … 84 85 { 85 86 TRACE_ENTRY("%p", conffile); 86 87 87 88 CHECK_FCT( fd_rt_fwd_register ( dbgrt_fwd_cb, NULL, RT_FWD_ALL, &fwd_hdl ) ); 88 89 CHECK_FCT( fd_rt_out_register ( dbgrt_out_cb, NULL, -1 /* so that it is called late */, &out_hdl ) ); … … 95 96 { 96 97 TRACE_ENTRY(); 97 98 98 99 /* Unregister the modules */ 99 100 CHECK_FCT_DO( fd_rt_fwd_unregister ( fwd_hdl, NULL ), /* continue */ ); 100 101 CHECK_FCT_DO( fd_rt_out_unregister ( out_hdl, NULL ), /* continue */ ); 101 102 102 103 return ; 103 104 }
Note: See TracChangeset
for help on using the changeset viewer.