Changeset 1027:0117a7746b21 in freeDiameter for libfdcore/peers.c
- Timestamp:
- Apr 15, 2013, 4:17:07 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/peers.c
r1010 r1027 424 424 snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "\t['%s' %u]", peer->p_hdr.info.runtime.pir_prodname, peer->p_hdr.info.runtime.pir_firmrev); 425 425 } 426 fd_log_debug( buf);426 fd_log_debug("%s", buf); 427 427 if (details > FULL) { 428 428 /* Dump all info */ 429 429 fd_log_debug("\tEntry origin : %s", peer->p_dbgorig?: "not set"); 430 fd_log_debug("\tConfig flags : %s%s%s %s%s - %s%s%s",431 peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_DEFAULT ? " " :432 (peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_IP ? "IP ." : "IPv6."),433 peer->p_hdr.info.config.pic_flags.pro4 == PI_P4_DEFAULT ? " " :434 (peer->p_hdr.info.config.pic_flags.pro4 == PI_P4_TCP ? "TCP ." : "SCTP."),435 peer->p_hdr.info.config.pic_flags.alg ? "PrefTCP ." : "",436 peer->p_hdr.info.config.pic_flags.sec & PI_SEC_NONE ? "NoTLSok" :" ",437 peer->p_hdr.info.config.pic_flags.sec & PI_SEC_TLS_OLD ? "OldTLS" :" ",438 peer->p_hdr.info.config.pic_flags.exp ? "Expire ." : "",439 peer->p_hdr.info.config.pic_flags.persist ? "Persist ." : ""430 fd_log_debug("\tConfig flags : %s%s%s - %s%s - %s%s", 431 peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_DEFAULT ? "." : 432 (peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_IP ? "IP" : "IPv6"), 433 peer->p_hdr.info.config.pic_flags.pro4 == PI_P4_DEFAULT ? "." : 434 (peer->p_hdr.info.config.pic_flags.pro4 == PI_P4_TCP ? "TCP" : "SCTP"), 435 peer->p_hdr.info.config.pic_flags.alg ? "PrefTCP" : ".", 436 peer->p_hdr.info.config.pic_flags.sec & PI_SEC_NONE ? "NoTLSok" :".", 437 peer->p_hdr.info.config.pic_flags.sec & PI_SEC_TLS_OLD ? "OldTLS" :".", 438 peer->p_hdr.info.config.pic_flags.exp ? "Expire" : ".", 439 peer->p_hdr.info.config.pic_flags.persist ? "Persist" : "." 440 440 ); 441 441 fd_log_debug("\tLifetime : %d sec", peer->p_hdr.info.config.pic_lft);
Note: See TracChangeset
for help on using the changeset viewer.