Navigation


Changeset 961:d95cd3ca9e8d in freeDiameter for libfdcore/peers.c


Ignore:
Timestamp:
Mar 7, 2013, 4:09:54 AM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Parents:
960:f39fa6cd86e0 (diff), 933:04f590da5821 (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 latest 1.1 branch (one commit post 1.1.6)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/peers.c

    r933 r961  
    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

    r950 r961  
    33* Author: Sebastien Decugis <sdecugis@freediameter.net>                                                  *
    44*                                                                                                        *
    5 * Copyright (c) 2012, WIDE Project and NICT                                                              *
     5* Copyright (c) 2013, WIDE Project and NICT                                                              *
    66* All rights reserved.                                                                                   *
    77*                                                                                                        *
     
    515515                peer->p_flags.pf_delete = 1;
    516516               
     517#ifndef DISABLE_PEER_EXPIRY
    517518                /* Set this peer to expire on inactivity */
    518519                peer->p_hdr.info.config.pic_flags.exp   = PI_EXP_INACTIVE;
    519520                peer->p_hdr.info.config.pic_lft         = 3600; /* 1 hour without any message
    520521                -- RFC3539 states that this must not be inferior to BRINGDOWN_INTERVAL = 5 minutes */
     522               
    521523                CHECK_FCT_DO( ret = fd_p_expi_update( peer ), goto out );
    522 
     524#endif /* DISABLE_PEER_EXPIRY */
    523525               
    524526                /* Insert the new peer in the list (the PSM will take care of setting the expiry after validation) */
Note: See TracChangeset for help on using the changeset viewer.