Navigation


Changeset 1019:6fcd30ce3ce7 in freeDiameter for include


Ignore:
Timestamp:
Apr 1, 2013, 5:16:28 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Retrieve additional information when adding a routing error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1014 r1019  
    20482048void fd_rtd_candidate_extract(struct rt_data * rtd, struct fd_list ** candidates, int ini_score);
    20492049
    2050 /* If a peer returned a protocol error for this message, save it so that we don't try to send it there again */
    2051 int  fd_rtd_error_add(struct rt_data * rtd, DiamId_t sentto, size_t senttolen, uint8_t * origin, size_t originsz, uint32_t rcode);
     2050/* If a peer returned a protocol error for this message, save it so that we don't try to send it there again. Optionally retrieve the current list of candidates. */
     2051int  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);
    20522052
    20532053/* The extracted list items have the following structure: */
    20542054struct rtd_candidate {
    2055         struct fd_list  chain;  /* link in the list returned by the previous fct */
     2055        struct fd_list  chain;  /* link in the list returned by the previous fcts */
    20562056        DiamId_t        diamid; /* the diameter Id of the peer */
    20572057        size_t          diamidlen; /* cached size of the diamid string */
Note: See TracChangeset for help on using the changeset viewer.