Navigation


Changeset 1238:8f9684264fe0 in freeDiameter for libfdcore/routing_dispatch.c


Ignore:
Timestamp:
Oct 10, 2013, 11:08:46 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/routing_dispatch.c

    r1230 r1238  
    415415                CHECK_FCT( fd_fifo_post(fd_g_incoming, pmsg) );
    416416        } else {
    417                 CHECK_FCT( fd_out_send(pmsg, NULL, peer) );
     417                CHECK_FCT( fd_out_send(pmsg, NULL, peer, 1) );
    418418        }
    419419       
     
    893893
    894894                /* Push the message into this peer */
    895                 CHECK_FCT( fd_out_send(&msgptr, NULL, peer) );
     895                CHECK_FCT( fd_out_send(&msgptr, NULL, peer, 1) );
    896896
    897897                /* We're done with this answer */
     
    10081008                if (fd_peer_getstate(peer) == STATE_OPEN) {
    10091009                        /* Send to this one */
    1010                         CHECK_FCT_DO( fd_out_send(&msgptr, NULL, peer), continue );
     1010                        CHECK_FCT_DO( fd_out_send(&msgptr, NULL, peer, 1), continue );
    10111011                       
    10121012                        /* If the sending was successful */
Note: See TracChangeset for help on using the changeset viewer.