Navigation


Changeset 120:d7acdc46134d in freeDiameter for extensions/dbg_rt


Ignore:
Timestamp:
Dec 9, 2009, 5:36:38 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Renamed several extensions

Location:
extensions/dbg_rt
Files:
2 moved

Legend:

Unmodified
Added
Removed
  • extensions/dbg_rt/CMakeLists.txt

    r117 r120  
    33
    44# Compile as a module
    5 FD_ADD_EXTENSION(rt_debug rt_debug.c)
     5FD_ADD_EXTENSION(dbg_rt dbg_rt.c)
  • extensions/dbg_rt/dbg_rt.c

    r117 r120  
    4444
    4545/* Proxying debug callback */
    46 static int rtdebug_fwd_cb(void * cbdata, struct msg ** msg)
     46static int dbgrt_fwd_cb(void * cbdata, struct msg ** msg)
    4747{
    4848        TRACE_ENTRY("%p %p", cbdata, msg);
    4949       
    50         fd_log_debug("[rt_debug] FWD routing message: %p\n", msg ? *msg : NULL);
     50        fd_log_debug("[dbg_rt] FWD routing message: %p\n", msg ? *msg : NULL);
    5151        if (msg)
    5252                fd_msg_dump_walk(INFO, *msg);
     
    5656
    5757/* Path selection debug callback */
    58 static int rtdebug_out_cb(void * cbdata, struct msg * msg, struct fd_list * candidates)
     58static int dbgrt_out_cb(void * cbdata, struct msg * msg, struct fd_list * candidates)
    5959{
    6060        struct fd_list * li;
     
    6262        TRACE_ENTRY("%p %p %p", cbdata, msg, candidates);
    6363       
    64         fd_log_debug("[rt_debug] OUT routing message: %p\n", msg);
     64        fd_log_debug("[dbg_rt] OUT routing message: %p\n", msg);
    6565        fd_msg_dump_walk(INFO, msg);
    66         fd_log_debug("[rt_debug] Current list of candidates (%p)\n", msg);
     66        fd_log_debug("[dbg_rt] Current list of candidates (%p)\n", msg);
    6767       
    6868        for (li = candidates->next; li != candidates; li = li->next) {
    6969                struct rtd_candidate *c = (struct rtd_candidate *) li;
    70                 fd_log_debug("[rt_debug]   - %d\t%s\n", c->score, c->diamid);
     70                fd_log_debug("[dbg_rt]   - %d\t%s\n", c->score, c->diamid);
    7171        }
    7272       
     
    7575
    7676/* Register the callbacks to the daemon */
    77 static int rtdebug_main(char * conffile)
     77static int dbgrt_main(char * conffile)
    7878{
    7979        TRACE_ENTRY("%p", conffile);
    8080       
    81         CHECK_FCT( fd_rt_fwd_register ( rtdebug_fwd_cb, NULL, RT_FWD_ALL, &fwd_hdl ) );
    82         CHECK_FCT( fd_rt_out_register ( rtdebug_out_cb, NULL, -1 /* so that it is called late */, &out_hdl ) );
     81        CHECK_FCT( fd_rt_fwd_register ( dbgrt_fwd_cb, NULL, RT_FWD_ALL, &fwd_hdl ) );
     82        CHECK_FCT( fd_rt_out_register ( dbgrt_out_cb, NULL, -1 /* so that it is called late */, &out_hdl ) );
    8383
    8484        return 0;
     
    9898
    9999/* Define the entry point function */
    100 EXTENSION_ENTRY("rt_debug", rtdebug_main);
     100EXTENSION_ENTRY("dbg_rt", dbgrt_main);
Note: See TracChangeset for help on using the changeset viewer.