Navigation



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
  • extensions/dbg_interactive/routing.i

    r1013 r1019  
    6666                fd_rtd_candidate_del($self, (os0_t)STRING, LENGTH);
    6767        }
    68         void error(char * peerid, size_t peeridlen, char * STRING, size_t LENGTH, uint32_t rcode) {
    69                 int ret =  fd_rtd_error_add($self, peerid, peeridlen, (os0_t)STRING, LENGTH, rcode);
    70                 if (ret != 0) {
    71                         DI_ERROR(ret, NULL, NULL);
    72                 }
     68        int error(char * peerid, size_t peeridlen, char * STRING, size_t LENGTH, uint32_t rcode) {
     69                int n;
     70                int ret =  fd_rtd_error_add($self, peerid, peeridlen, (os0_t)STRING, LENGTH, rcode, NULL, &n);
     71                if (ret != 0) {
     72                        DI_ERROR(ret, NULL, NULL);
     73                }
     74                return n;
    7375        }
    7476        struct fd_list * extract(int score = 0) {
Note: See TracChangeset for help on using the changeset viewer.