Mercurial > hg > freeDiameter
diff libfdcore/p_dw.c @ 1238:8f9684264fe0
Change management of the p_reqin_count counter to be updated only on routable messages. This should limit the errors in the counter value resulting from rejected or discarded link-local messages.
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Thu, 10 Oct 2013 16:08:46 +0200 |
parents | 56c36d1007b4 |
children |
line wrap: on
line diff
--- a/libfdcore/p_dw.c Sat Sep 14 12:56:05 2013 +0200 +++ b/libfdcore/p_dw.c Thu Oct 10 16:08:46 2013 +0200 @@ -82,7 +82,7 @@ CHECK_FCT( fd_msg_add_origin ( msg, 1 ) ); /* Now send this message */ - CHECK_FCT( fd_out_send(&msg, NULL, peer) ); + CHECK_FCT( fd_out_send(&msg, NULL, peer, 0) ); /* And mark the pending DW */ peer->p_flags.pf_dw_pending = 1; @@ -105,7 +105,7 @@ CHECK_FCT( fd_msg_new_answer_from_req ( fd_g_config->cnf_dict, msg, 0 ) ); CHECK_FCT( fd_msg_rescode_set( *msg, "DIAMETER_SUCCESS", NULL, NULL, 0 ) ); CHECK_FCT( fd_msg_add_origin ( *msg, 1 ) ); - CHECK_FCT( fd_out_send( msg, peer->p_cnxctx, peer) ); + CHECK_FCT( fd_out_send( msg, peer->p_cnxctx, peer, 0) ); } else { /* Discard the DWA */