Navigation


Changeset 1307:7a2ab0087788 in freeDiameter for extensions


Ignore:
Timestamp:
Sep 18, 2016, 9:36:51 PM (8 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Parents:
1305:84a3c9c4b834 (diff), 1306:0d15dad33f0b (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:

Remerged proposed branch

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/dbg_msg_dumps/dbg_msg_dumps.c

    r1305 r1307  
    9393                if (msg) {
    9494                        DiamId_t id = NULL;
    95                         if (!fd_msg_source_get( msg, &id, NULL ))
     95                        if (fd_msg_source_get( msg, &id, NULL ))
    9696                                id = (DiamId_t)"<error getting source>";
    9797                        if (!id)
     
    191191                if (msg) {
    192192                        DiamId_t id = NULL;
    193                         if (!fd_msg_source_get( msg, &id, NULL ))
     193                        if (fd_msg_source_get( msg, &id, NULL ))
    194194                                id = (DiamId_t)"<error getting source>";
    195195                        if (!id)
     
    276276                if (msg) {
    277277                        DiamId_t id = NULL;
    278                         if (!fd_msg_source_get( msg, &id, NULL ))
     278                        if (fd_msg_source_get( msg, &id, NULL ))
    279279                                id = (DiamId_t)"<error getting source>";
    280280                        if (!id)
  • extensions/dbg_msg_dumps/dbg_msg_dumps.c

    r1306 r1307  
    33* Author: Sebastien Decugis <sdecugis@freediameter.net>                                                  *
    44*                                                                                                        *
    5 * Copyright (c) 2013, WIDE Project and NICT                                                              *
     5* Copyright (c) 2015, WIDE Project and NICT                                                              *
    66* All rights reserved.                                                                                   *
    77*                                                                                                        *
     
    105105                }
    106106                break;
     107        case HOOK_MESSAGE_PARSING_ERROR2:
     108                LOG_E("PARSING ERROR, returning:");
     109                LOG_SPLIT(FD_LOG_ERROR, "     ", buf, NULL);
     110                break;
    107111        case HOOK_MESSAGE_ROUTING_ERROR:
    108112                LOG_E("ROUTING ERROR '%s' for: ", (char *)other);
     
    117121        case HOOK_MESSAGE_RECEIVED:
    118122                LOG_N("RCV from '%s':", peer_name);
     123                LOG_SPLIT(FD_LOG_NOTICE, "     ", buf, NULL);
     124                break;
     125        case HOOK_MESSAGE_SENDING:
     126                LOG_N("SNDING to '%s':", peer_name);
    119127                LOG_SPLIT(FD_LOG_NOTICE, "     ", buf, NULL);
    120128                break;
     
    194202                }
    195203                break;
     204        case HOOK_MESSAGE_PARSING_ERROR2:
     205                LOG_E("PARSING ERROR, returning: %s", buf);
     206                break;
    196207        case HOOK_MESSAGE_ROUTING_ERROR:
    197208                LOG_E("ROUTING ERROR '%s' for: %s", (char *)other, buf);
     
    204215        case HOOK_MESSAGE_RECEIVED:
    205216                LOG_N("RCV from '%s': %s", peer_name, buf);
     217                break;
     218        case HOOK_MESSAGE_SENDING:
     219                LOG_N("SNDING to '%s': %s", peer_name, buf);
    206220                break;
    207221        case HOOK_MESSAGE_SENT:
     
    273287                }
    274288                break;
     289        case HOOK_MESSAGE_PARSING_ERROR2:
     290                LOG_E("PARSING ERROR, returning: %s", buf);
     291                break;
    275292        case HOOK_MESSAGE_ROUTING_ERROR:
    276293                LOG_E("ROUTING ERROR '%s' for: %s", (char *)other, buf);
     
    283300        case HOOK_MESSAGE_RECEIVED:
    284301                LOG_N("RCV from '%s': %s", peer_name, buf);
     302                break;
     303        case HOOK_MESSAGE_SENDING:
     304                LOG_N("SNDING to '%s': %s", peer_name, buf);
    285305                break;
    286306        case HOOK_MESSAGE_SENT:
     
    341361        }
    342362       
    343         mask_errors = HOOK_MASK( HOOK_MESSAGE_FAILOVER, HOOK_MESSAGE_PARSING_ERROR, HOOK_MESSAGE_ROUTING_ERROR, HOOK_MESSAGE_DROPPED  );
    344         mask_sndrcv = HOOK_MASK( HOOK_MESSAGE_RECEIVED, HOOK_MESSAGE_SENT );
     363        mask_errors = HOOK_MASK( HOOK_MESSAGE_FAILOVER, HOOK_MESSAGE_PARSING_ERROR, HOOK_MESSAGE_PARSING_ERROR2, HOOK_MESSAGE_ROUTING_ERROR, HOOK_MESSAGE_DROPPED  );
     364        mask_sndrcv = HOOK_MASK( HOOK_MESSAGE_RECEIVED, HOOK_MESSAGE_SENT ); /* We don t access SENDING hook here */
    345365        mask_routing= HOOK_MASK( HOOK_MESSAGE_LOCAL, HOOK_MESSAGE_ROUTING_FORWARD, HOOK_MESSAGE_ROUTING_LOCAL );
    346366        mask_peers  = HOOK_MASK( HOOK_PEER_CONNECT_FAILED, HOOK_PEER_CONNECT_SUCCESS );
Note: See TracChangeset for help on using the changeset viewer.