Changeset 378:41e3c2a3721c in freeDiameter for freeDiameter/p_ce.c
- Timestamp:
- Jul 5, 2010, 4:21:22 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/p_ce.c
r332 r378 63 63 64 64 /* Read the endpoints, maybe used to reconnect to the peer later */ 65 CHECK_FCT( fd_cnx_get endpoints(peer->p_cnxctx, NULL, &peer->p_hdr.info.pi_endpoints) );65 CHECK_FCT( fd_cnx_getremoteeps(peer->p_cnxctx, &peer->p_hdr.info.pi_endpoints) ); 66 66 67 67 /* Read the protocol */ … … 106 106 struct avp * avp = NULL; 107 107 union avp_value val; 108 struct fd_list *li , local_ep = FD_LIST_INITIALIZER(local_ep);108 struct fd_list *li; 109 109 110 110 /* Add the Origin-* AVPs */ … … 114 114 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Host-IP-Address", &dictobj, ENOENT ) ); 115 115 116 /* Get the list of endpoints */117 CHECK_FCT( fd_cnx_getendpoints(cnx, &local_ep, NULL) );118 119 116 /* Add the AVP(s) -- not sure what is the purpose... We could probably only add the primary one ? */ 120 for (li = local_ep.next; li != &local_ep; li = li->next) {117 for (li = fd_g_config->cnf_endpoints.next; li != &fd_g_config->cnf_endpoints; li = li->next) { 121 118 struct fd_endpoint * ep = (struct fd_endpoint *)li; 122 119 … … 125 122 CHECK_FCT( fd_msg_avp_add( msg, MSG_BRW_LAST_CHILD, avp ) ); 126 123 } 127 128 124 129 125 /* Vendor-Id, Product-Name, and Firmware-Revision AVPs */
Note: See TracChangeset
for help on using the changeset viewer.