diff include/freeDiameter/freeDiameter.h @ 36:1498b3c7304c

Backup
author Sebastien Decugis <sdecugis@nict.go.jp>
date Mon, 02 Nov 2009 17:31:36 +0900
parents 0e2b57789361
children cc3c59fe98fe
line wrap: on
line diff
--- a/include/freeDiameter/freeDiameter.h	Mon Nov 02 14:54:42 2009 +0900
+++ b/include/freeDiameter/freeDiameter.h	Mon Nov 02 17:31:36 2009 +0900
@@ -247,7 +247,7 @@
 				   We have sent a CER on our initiated connection, and received a CER from the remote peer on another connection. Election.
 				   If we win the election, we must disconnect the initiated connection and send a CEA on the other => we go to OPEN state.
 				   If we lose, we disconnect the other connection (receiver) and fallback to WAITCEA state. */
-	STATE_OPEN_HANDSHAKE,	/* TLS Handshake and validation are in progress in open state */
+	STATE_OPEN_HANDSHAKE,	/* TLS Handshake and validation are in progress in open state -- we show the state because it can last a long time */
 	
 	/* Failover state machine */
 	STATE_SUSPECT,		/* A DWR was sent and not answered within TwTime. Failover in progress. */
@@ -306,6 +306,10 @@
 		#define PI_EXP_INACTIVE	1	/* the peer entry expires (i.e. is deleted) after pi_lft seconds without activity */
 		unsigned	exp :1;
 		
+		#define PI_PRST_NONE	0	/* the peer entry is deleted after disconnection / error */
+		#define PI_PRST_ALWAYS	1	/* the peer entry is persistant (will be kept as ZOMBIE in case of error) */
+		unsigned	persist :1;
+		
 		unsigned	inband_none :1;	/* This is only meaningful with pi_flags.sec == 3 */
 		unsigned	inband_tls  :1;	/* This is only meaningful with pi_flags.sec == 3 */
 		
"Welcome to our mercurial repository"