Navigation



Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdcore.h

    r1220 r1305  
    33* Author: Sebastien Decugis <sdecugis@freediameter.net>                                                  *
    44*                                                                                                        *
    5 * Copyright (c) 2013, WIDE Project and NICT                                                              *
     5* Copyright (c) 2016, WIDE Project and NICT                                                              *
    66* All rights reserved.                                                                                   *
    77*                                                                                                        *
     
    128128       
    129129        uint16_t         cnf_port;      /* the local port for legacy Diameter (default: 3868) in host byte order */
    130         uint16_t         cnf_port_tls;  /* the local port for Diameter/TLS (default: 5658) in host byte order */
     130        uint16_t         cnf_port_tls;  /* the local port for Diameter/TLS (default: 5868) in host byte order */
    131131        uint16_t         cnf_port_3436; /* Open an additional server port to listen to old TLS/SCTP clients (RFC3436, freeDiameter versions < 1.2.0) */
    132132        uint16_t         cnf_sctp_str;  /* default max number of streams for SCTP associations (def: 30) */
     
    965965                 */
    966966       
     967        HOOK_MESSAGE_SENDING,
     968                /* Hook called when a message is about to be sent to a peer. The message pointer cannot be modified here, but the content of the message
     969                  could still be changed (for example add or remove some AVP. This is the last chance.
     970                 - {msg} points to the message. Some objects may not have been dictionary resolved. If you
     971                   try to call fd_msg_parse_dict, it will slow down the operation of the instance.
     972                 - {peer} is the one the message is being sent to.
     973                 - {other} is NULL.
     974                 - {permsgdata} points to existing structure if any, or a new structure otherwise.
     975                 */
     976       
    967977        HOOK_MESSAGE_SENT,
    968978                /* Hook called when a message has been sent to a peer. The message might be freed as soon as the hook function returns,
     
    9931003                 - {permsgdata} points to existing structure associated with this message (or new structure if no previous hook was registered).
    9941004                 */
    995        
     1005                 
    9961006        HOOK_MESSAGE_ROUTING_ERROR,
    9971007                /* Hook called when a message being processed by the routing thread meets an error such as no remaining available peer for sending, based on routing callbacks decisions (maybe after retries).
     
    10491059                 */
    10501060       
    1051 #define HOOK_LAST       HOOK_PEER_CONNECT_SUCCESS
     1061        HOOK_MESSAGE_PARSING_ERROR2,
     1062                /* Hook called after an error message has been generated due to a dictionary parsing error.
     1063                 - {msg} points to the error message that has been generated.
     1064                 - {peer} is NULL. You can still retrieve the source from the message itself.
     1065                 - {other} is NULL
     1066                 - {permsgdata} points to existing structure associated with this message (or new structure if no previous hook was registered).
     1067                 Use this hook if you need to populate more data in the error being returned, from the error message.
     1068                 (e.g. some AVP need to be added to replies even if error case.
     1069                 */
     1070#define HOOK_LAST       HOOK_MESSAGE_PARSING_ERROR2
    10521071};
    10531072
Note: See TracChangeset for help on using the changeset viewer.