Navigation


Changeset 1097:4d2dcb54d9a6 in freeDiameter for libfdproto


Ignore:
Timestamp:
May 6, 2013, 7:49:59 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
1098:f38d77f9cfd3, 1099:6ce5c99a40af
Phase:
public
Message:

New function fd_rtd_get_nb_attempts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/rt_data.c

    r1019 r1097  
    249249}
    250250
     251/* Only retrieve the number of times this message has been processed by the routing-out mechanism (i.e. number of times it was failed over) */
     252int  fd_rtd_get_nb_attempts(struct rt_data * rtd, int * sendingattemtps)
     253{
     254        struct fd_list * li;
     255        int match = 0;
     256       
     257        TRACE_ENTRY("%p %p", rtd, sendingattemtps);
     258        CHECK_PARAMS( rtd && sendingattemtps );
     259       
     260        *sendingattemtps = rtd->extracted;
     261       
     262        /* Done! */
     263        return 0;
     264}
     265
    251266/* Extract the list of valid candidates, and initialize their scores */
    252267void fd_rtd_candidate_extract(struct rt_data * rtd, struct fd_list ** candidates, int ini_score)
Note: See TracChangeset for help on using the changeset viewer.