Mercurial > hg > freeDiameter
diff freeDiameter/p_psm.c @ 378:41e3c2a3721c
Replaced old mechanism to discover local addresses by a call to getifaddrs, lot cleaner!
Should close #4
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 05 Jul 2010 16:21:22 +0900 |
parents | 477a76a7d42f |
children | 26aafbbc1640 |
line wrap: on
line diff
--- a/freeDiameter/p_psm.c Mon Jul 05 14:36:50 2010 +0900 +++ b/freeDiameter/p_psm.c Mon Jul 05 16:21:22 2010 +0900 @@ -570,9 +570,9 @@ CHECK_FCT_DO( fd_ep_clearflags( &peer->p_hdr.info.pi_endpoints, EP_FL_PRIMARY ), /* ignore the error */); /* Get the new ones */ - CHECK_FCT_DO( fd_cnx_getendpoints(peer->p_cnxctx, NULL, &peer->p_hdr.info.pi_endpoints), /* ignore the error */); + CHECK_FCT_DO( fd_cnx_getremoteeps(peer->p_cnxctx, &peer->p_hdr.info.pi_endpoints), /* ignore the error */); - /* We do not support local endpoints change currently, but it could be added here if needed */ + /* We do not support local endpoints change currently, but it could be added here if needed (refresh fd_g_config->cnf_endpoints)*/ if (TRACE_BOOL(ANNOYING)) { TRACE_DEBUG(ANNOYING, "New remote endpoint(s):" );