Navigation


Changeset 894:43fb27a9037f in freeDiameter for libfdcore/sctps.c


Ignore:
Timestamp:
Nov 30, 2012, 6:51:49 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Intrumented socket reception to store the timestamp along the received buffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/sctps.c

    r808 r894  
    9292                                /* Demux this message to the appropriate fifo, another thread will pull, gnutls process, and send to target queue */
    9393                                if (strid < conn->cc_sctp_para.pairs) {
     94                                        /* Note, here the timespec is piggytailed to buf */
    9495                                        CHECK_FCT_DO(fd_event_send(conn->cc_sctps_data.array[strid].raw_recv, event, bufsz, buf), goto fatal );
    9596                                } else {
     
    195196                        return -1;
    196197                }
     198                if (ev == FDEVP_CNX_MSG_RECV) {
     199                        memcpy(&ctx->recvon, ctx->partial.buf + ctx->partial.bufsz, sizeof(struct timespec)); /* retrieve piggy-tailed ts */
     200                }
    197201        }
    198202               
Note: See TracChangeset for help on using the changeset viewer.