Navigation


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

    r1207 r1238  
    160160
    161161/* Wrapper to sending a message either by out thread (peer in OPEN state) or directly; cnx or peer must be provided. Flags are valid only for direct sending, not through thread (unused) */
    162 int fd_out_send(struct msg ** msg, struct cnxctx * cnx, struct fd_peer * peer)
     162int fd_out_send(struct msg ** msg, struct cnxctx * cnx, struct fd_peer * peer, int update_reqin_cnt)
    163163{
    164164        struct msg_hdr * hdr;
     
    167167        CHECK_PARAMS( msg && *msg && (cnx || (peer && peer->p_cnxctx)));
    168168       
    169         if (peer) {
     169        if (update_reqin_cnt && peer) {
    170170                CHECK_FCT( fd_msg_hdr(*msg, &hdr) );
    171171                if (!(hdr->msg_flags & CMD_FLAG_REQUEST)) {
Note: See TracChangeset for help on using the changeset viewer.