Navigation


Changeset 1097:4d2dcb54d9a6 in freeDiameter


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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1093 r1097  
    20852085int  fd_rtd_error_add(struct rt_data * rtd, DiamId_t sentto, size_t senttolen, uint8_t * origin, size_t originsz, uint32_t rcode, struct fd_list ** candidates, int * sendingattemtps);
    20862086
     2087/* 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) */
     2088int  fd_rtd_get_nb_attempts(struct rt_data * rtd, int * sendingattemtps);
     2089
    20872090/* The extracted list items have the following structure: */
    20882091struct rtd_candidate {
  • 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.