Changeset 1019:6fcd30ce3ce7 in freeDiameter for libfdproto/rt_data.c
- Timestamp:
- Apr 1, 2013, 5:16:28 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/rt_data.c
r740 r1019 43 43 /* Structure that contains the routing data for a message */ 44 44 struct rt_data { 45 int extracted; /* if 0, candidates is ordered by diamid, otherwise the order is unspecified */45 int extracted; /* if 0, candidates is ordered by diamid, otherwise the order is unspecified. This also counts the number of times the message was (re-)sent, as a side effect */ 46 46 struct fd_list candidates; /* All the candidates. Items are struct rtd_candidate. */ 47 47 struct fd_list errors; /* All errors received from other peers for this message */ … … 185 185 /* If a peer returned a protocol error for this message, save it so that we don't try to send it there again. 186 186 Case insensitive search since the names are received from other peers*/ 187 int fd_rtd_error_add(struct rt_data * rtd, DiamId_t sentto, size_t senttolen, uint8_t * origin, size_t originsz, uint32_t rcode )187 int 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) 188 188 { 189 189 struct fd_list * li; 190 190 int match = 0; 191 191 192 TRACE_ENTRY("%p %p %zd %p %zd %u ", rtd, sentto, senttolen, origin, originsz, rcode);192 TRACE_ENTRY("%p %p %zd %p %zd %u %p %p", rtd, sentto, senttolen, origin, originsz, rcode, candidates, sendingattemtps); 193 193 CHECK_PARAMS( rtd && sentto && senttolen ); /* origin may be NULL */ 194 194 … … 239 239 fd_rtd_candidate_del(rtd, origin, originsz); 240 240 241 if (candidates) 242 *candidates = &rtd->candidates; 243 244 if (sendingattemtps) 245 *sendingattemtps = rtd->extracted; 246 241 247 /* Done! */ 242 248 return 0; … … 260 266 } 261 267 262 rtd->extracted = 1;268 rtd->extracted += 1; 263 269 return; 264 270 }
Note: See TracChangeset
for help on using the changeset viewer.