Navigation


Changeset 22:0b3b46da2c12 in freeDiameter for freeDiameter/peers.c


Ignore:
Timestamp:
Oct 19, 2009, 6:43:09 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Progress on server code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/peers.c

    r20 r22  
    101101       
    102102        p->p_hdr.info.pi_lft     = info->pi_lft;
    103         p->p_hdr.info.pi_streams = info->pi_streams;
    104103        p->p_hdr.info.pi_port    = info->pi_port;
    105104        p->p_hdr.info.pi_tctimer = info->pi_tctimer;
    106105        p->p_hdr.info.pi_twtimer = info->pi_twtimer;
     106       
     107        if (info->pi_sec_data.priority) {
     108                CHECK_MALLOC( p->p_hdr.info.pi_sec_data.priority = strdup(info->pi_sec_data.priority) );
     109        }
    107110       
    108111        /* Move the items from one list to the other */
     
    113116                        fd_list_insert_before(&p->p_hdr.info.pi_endpoints, li);
    114117                }
     118       
    115119       
    116120        /* The internal data */
     
    229233       
    230234        if (p->p_cnxctx) {
    231                 TODO("destroy p->p_cnxctx");
     235                fd_cnx_destroy(p->p_cnxctx);
    232236        }
    233237       
     
    293297                list_empty = FD_IS_LIST_EMPTY(&fd_g_peers);
    294298                CHECK_FCT_DO( pthread_rwlock_unlock(&fd_g_peers_rw), /* continue */ );
     299                CHECK_SYS(  clock_gettime(CLOCK_REALTIME, &now)  );
    295300        }
    296301       
Note: See TracChangeset for help on using the changeset viewer.