Module: sip-router Branch: master Commit: 274969bcca2301c96dbbcc17c5b1d411073c8277 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=274969bc...
Author: Peter Dunkley peter.dunkley@crocodile-rcs.com Committer: Peter Dunkley peter.dunkley@crocodile-rcs.com Date: Thu Jul 12 21:44:45 2012 +0100
core: update printing of socket lists to show the advertised address if set for the socket
- useful for diagnosing what is going on with advertised address - Enhancement added by Hugh Waite @ Crocodile RCS
---
socket_info.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/socket_info.c b/socket_info.c index 0a0e406..766e554 100644 --- a/socket_info.c +++ b/socket_info.c @@ -2012,10 +2012,13 @@ void print_all_socket_lists() si->name.s); if (!si->flags & SI_IS_IP) printf(" [%s]", si->address_str.s); - printf( ":%s%s%s\n", + printf( ":%s%s%s", si->port_no_str.s, si->flags & SI_IS_MCAST ? " mcast" : "", si->flags & SI_IS_MHOMED? " mhomed" : ""); + if (si->useinfo.name.s) + printf(" advertise %s", si->useinfo.name.s); + printf("\n"); } } }while((proto=next_proto(proto)));