Navigation


Changeset 950:51c15f98a965 in freeDiameter for libfdcore/sctp.c


Ignore:
Timestamp:
Feb 21, 2013, 7:57:32 PM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Parents:
949:ad5c976e0dc7 (diff), 924:877592751fee (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Phase:
public
Message:

merge current version from 1.1 branch (927:877592751fee).

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/sctp.c

    r921 r950  
    909909        }
    910910        if (TRACE_BOOL(SCTP_LEVEL)) {
     911                char buf[1024];
     912                sSA_DUMP_NODE_SERV(buf, sizeof(buf), &status.sstat_primary.spinfo_address, NI_NUMERICHOST | NI_NUMERICSERV );
    911913                fd_log_debug( "SCTP_STATUS : sstat_state                  : %i\n" , status.sstat_state);
    912914                fd_log_debug( "              sstat_rwnd                   : %u\n" , status.sstat_rwnd);
     
    916918                fd_log_debug( "              sstat_outstrms               : %hu\n", status.sstat_outstrms);
    917919                fd_log_debug( "              sstat_fragmentation_point    : %u\n" , status.sstat_fragmentation_point);
    918                 fd_log_debug( "              sstat_primary.spinfo_address : ");
    919                 sSA_DUMP_NODE_SERV(&status.sstat_primary.spinfo_address, NI_NUMERICHOST | NI_NUMERICSERV );
    920                 fd_log_debug( "\n" );
     920                fd_log_debug( "              sstat_primary.spinfo_address : %s\n" , buf);
    921921                fd_log_debug( "              sstat_primary.spinfo_state   : %d\n" , status.sstat_primary.spinfo_state);
    922922                fd_log_debug( "              sstat_primary.spinfo_cwnd    : %u\n" , status.sstat_primary.spinfo_cwnd);
  • libfdcore/sctp.c

    r946 r950  
    654654                if (ep->sa.sa_family == AF_INET6)
    655655                #else /* SCTP_USE_MAPPED_ADDRESSES */
    656                 if (target_family == AF_INET6) {
     656                if (target_family == AF_INET6)
    657657                #endif /* SCTP_USE_MAPPED_ADDRESSES */
    658658                        sz = sizeof(sSA6);
     
    10871087        /* We will loop while all data is not received. */
    10881088incomplete:
    1089         if (datasize == bufsz - sizeof(struct timespec)) {
     1089        while (datasize + sizeof(struct timespec) >= bufsz ) {
    10901090                /* The buffer is full, enlarge it */
    10911091                bufsz += mempagesz;
Note: See TracChangeset for help on using the changeset viewer.