comparison include/freeDiameter/freeDiameter.h @ 454:f1484823cb4a

Small hack which might spear some concurrency problems and is quite harmless
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 29 Jul 2010 16:11:12 +0900
parents 097bae83b07a
children 0b6cee362f5d
comparison
equal deleted inserted replaced
453:9a8b3178a7a7 454:f1484823cb4a
225 225
226 } config; /* Configured data (static for this peer entry) */ 226 } config; /* Configured data (static for this peer entry) */
227 227
228 struct { 228 struct {
229 229
230 enum peer_state pir_state; /* Current state of the peer in the state machine */ 230 enum peer_state pir_state; /* Current state of the peer in the state machine. fd_cpu_flush_cache() might be useful before reading. */
231 231
232 char * pir_realm; /* The received realm in CER/CEA. */ 232 char * pir_realm; /* The received realm in CER/CEA. */
233 233
234 uint32_t pir_vendorid; /* Content of the Vendor-Id AVP, or 0 by default */ 234 uint32_t pir_vendorid; /* Content of the Vendor-Id AVP, or 0 by default */
235 uint32_t pir_orstate; /* Origin-State-Id value */ 235 uint32_t pir_orstate; /* Origin-State-Id value */
249 249
250 } runtime; /* Data populated after connection, may change between 2 connections -- not used by fd_peer_add */ 250 } runtime; /* Data populated after connection, may change between 2 connections -- not used by fd_peer_add */
251 251
252 struct fd_list pi_endpoints; /* Endpoint(s) of the remote peer (configured, discovered, or advertized). list of struct fd_endpoint. DNS resolved if empty. */ 252 struct fd_list pi_endpoints; /* Endpoint(s) of the remote peer (configured, discovered, or advertized). list of struct fd_endpoint. DNS resolved if empty. */
253 }; 253 };
254
254 255
255 struct peer_hdr { 256 struct peer_hdr {
256 struct fd_list chain; /* List of all the peers, ordered by their Diameter Id */ 257 struct fd_list chain; /* List of all the peers, ordered by their Diameter Id */
257 struct peer_info info; /* The public data */ 258 struct peer_info info; /* The public data */
258 259
"Welcome to our mercurial repository"