Navigation


Changeset 950:51c15f98a965 in freeDiameter for libfdcore


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).

Location:
libfdcore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/fdd.l

    r944 r950  
    5252        yylloc->first_column = yylloc->last_column + 1;                 \
    5353        yylloc->last_column = yylloc->first_column + yyleng - 1;        \
    54         TRACE_DEBUG_ERROR("(%d:%d-%d:%d) matched rule %d, length=%d, txt='%s'\n",       \
     54        TRACE_DEBUG_ERROR(                                              \
     55                "(%d:%d-%d:%d) matched rule %d, length=%d, txt='%s'\n", \
    5556                yylloc->first_line, yylloc->first_column,               \
    5657                yylloc->last_line, yylloc->last_column,                 \
     
    145146<*>[[:alnum:]]+         |       /* This rule is only useful to print a complete token in error messages */
    146147        /* Unrecognized character */
    147 <*>.                    { 
     148<*>.                    {
    148149                                TRACE_DEBUG_ERROR("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext);
    149150                                return LEX_ERROR;
  • libfdcore/fdd.y

    r944 r950  
    328328                                if (fd == NULL) {
    329329                                        int ret = errno;
    330                                         TRACE_DEBUG(INFO, "Unable to open extension file %s for reading: %s\n", fname, strerror(ret));
     330                                        TRACE_DEBUG_ERROR("Unable to open extension file %s for reading: %s\n", fname, strerror(ret));
    331331                                        yyerror (&yylloc, conf, "Error adding extension");
    332332                                        YYERROR;
     
    502502                                if (fd == NULL) {
    503503                                        int ret = errno;
    504                                         TRACE_DEBUG(INFO, "Unable to open certificate file %s for reading: %s\n", $3, strerror(ret));
     504                                        TRACE_DEBUG_ERROR("Unable to open certificate file %s for reading: %s\n", $3, strerror(ret));
    505505                                        yyerror (&yylloc, conf, "Error on file name");
    506506                                        YYERROR;
     
    510510                                if (fd == NULL) {
    511511                                        int ret = errno;
    512                                         TRACE_DEBUG(INFO, "Unable to open private key file %s for reading: %s\n", $5, strerror(ret));
     512                                        TRACE_DEBUG_ERROR("Unable to open private key file %s for reading: %s\n", $5, strerror(ret));
    513513                                        yyerror (&yylloc, conf, "Error on file name");
    514514                                        YYERROR;
     
    533533                                if (fd == NULL) {
    534534                                        int ret = errno;
    535                                         TRACE_DEBUG(INFO, "Unable to open CA file %s for reading: %s\n", $3, strerror(ret));
     535                                        TRACE_DEBUG_ERROR("Unable to open CA file %s for reading: %s\n", $3, strerror(ret));
    536536                                        yyerror (&yylloc, conf, "Error on file name");
    537537                                        YYERROR;
     
    573573                                if (fd == NULL) {
    574574                                        int ret = errno;
    575                                         TRACE_DEBUG(INFO, "Unable to open CRL file %s for reading: %s\n", $3, strerror(ret));
     575                                        TRACE_DEBUG_ERROR("Unable to open CRL file %s for reading: %s\n", $3, strerror(ret));
    576576                                        yyerror (&yylloc, conf, "Error on file name");
    577577                                        YYERROR;
     
    616616                                                        &err_pos),
    617617                                                { yyerror (&yylloc, conf, "Error setting Priority parameter.");
    618                                                   fprintf(stderr, "Error at position : %s\n", err_pos);
     618                                                  TRACE_DEBUG_ERROR("Error at position : %s\n", err_pos);
    619619                                                  YYERROR; } );
    620620                        }
     
    633633                                if (fd == NULL) {
    634634                                        int ret = errno;
    635                                         TRACE_DEBUG(INFO, "Unable to open DH file %s for reading: %s\n", $3, strerror(ret));
     635                                        TRACE_DEBUG_ERROR("Unable to open DH file %s for reading: %s\n", $3, strerror(ret));
    636636                                        yyerror (&yylloc, conf, "Error on file name");
    637637                                        YYERROR;
  • libfdcore/peers.c

    r917 r950  
    9191
    9292/* Add a new peer entry */
    93 int fd_peer_add ( struct peer_info * info, char * orig_dbg, void (*cb)(struct peer_info *, void *), void * cb_data )
     93int fd_peer_add ( struct peer_info * info, const char * orig_dbg, void (*cb)(struct peer_info *, void *), void * cb_data )
    9494{
    9595        struct fd_peer *p = NULL;
  • libfdcore/peers.c

    r947 r950  
    549549        ev_data->validate = !found;
    550550       
    551         CHECK_FCT_DO( ret = fd_event_send(peer->p_events, FDEVP_CNX_INCOMING, sizeof(ev_data), ev_data), goto out );
     551        CHECK_FCT_DO( ret = fd_event_send(peer->p_events, FDEVP_CNX_INCOMING, sizeof(*ev_data), ev_data), goto out );
    552552       
    553553out:   
  • 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.