Navigation


Changeset 1238:8f9684264fe0 in freeDiameter for libfdcore/p_dp.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/p_dp.c

    r1186 r1238  
    113113                CHECK_FCT( fd_peer_get_load_pending(&peer->p_hdr, &to_receive, &to_send) );
    114114               
    115                 if ((to_receive == 0) && (to_send == 1 /* only the DPA */)) {
     115                if ((to_receive == 0) && (to_send == 0)) {
    116116                        /* No pending exchange, move to CLOSING directly */
    117117                        CHECK_FCT( fd_psm_change_state(peer, STATE_CLOSING) );
    118118               
    119119                        /* Now send the DPA */
    120                         CHECK_FCT( fd_out_send( msg, NULL, peer) );
     120                        CHECK_FCT( fd_out_send( msg, NULL, peer, 0) );
    121121                       
    122122                        /* and move to CLOSED */
     
    132132                       
    133133                        /* Now send the DPA */
    134                         CHECK_FCT( fd_out_send( msg, NULL, peer) );
     134                        CHECK_FCT( fd_out_send( msg, NULL, peer, 0) );
    135135                }
    136136        } else {
     
    202202       
    203203        /* Now send the DPR message */
    204         CHECK_FCT_DO( fd_out_send(&msg, NULL, peer), /* ignore since we are on timeout anyway */ );
     204        CHECK_FCT_DO( fd_out_send(&msg, NULL, peer, 0), /* ignore since we are on timeout anyway */ );
    205205       
    206206        return 0;
Note: See TracChangeset for help on using the changeset viewer.