Navigation



Ignore:
Timestamp:
Feb 9, 2011, 3:26:58 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Large UNTESTED commit with the following changes:

  • Improved DiameterIdentity? handling (esp. interationalization issues), and improve efficiency of some string operations in peers, sessions, and dictionary modules (closes #7)
  • Cleanup in the session module to free only unreferenced sessions (#16)
  • Removed fd_cpu_flush_cache(), replaced by more robust alternatives.
  • Improved peer state machine algorithm to counter SCTP multistream race condition.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_netemul/tne_process.c

    r691 r706  
    8888                /* Duplicate eventually, unless deactivated */
    8989                if (tne_conf.dupl_proba != 0.0) {
    90                         char * src;
     90                        DiamId_t src;
     91                        size_t srclen;
    9192                        /* Pick a random value in [0, 1] */
    9293                        double my_rand = drand48();
    9394                        m = pi->chain.o;
    94                         CHECK_FCT( fd_msg_source_get(m, &src) );
     95                        CHECK_FCT( fd_msg_source_get(m, &src, &srclen) );
    9596                       
    9697                        while (my_rand < (double) tne_conf.dupl_proba) {
     
    105106                                CHECK_FCT( fd_msg_bufferize(m, &buf, &len) );
    106107                                CHECK_FCT( fd_msg_parse_buffer(&buf, len, &nm) );
    107                                 CHECK_FCT( fd_msg_source_set(nm, src, 0, NULL) );
     108                                CHECK_FCT( fd_msg_source_set(nm, src, srclen, 0, NULL) );
    108109                                CHECK_FCT( fd_msg_hdr(nm, &nh) );
    109110                                nh->msg_flags |= CMD_FLAG_RETRANSMIT; /* Add the 'T' flag */
Note: See TracChangeset for help on using the changeset viewer.