equilibrium2_svc.h

Go to the documentation of this file.
00001 /*
00002  * $Id: equilibrium2_svc.h 354699 2009-12-24 01:00:59Z deo $
00003  *
00004  * This code is provided as is by Juniper Networks SDK Developer Support.
00005  * It is provided with no warranties or guarantees, and Juniper Networks
00006  * will not provide support or maintenance of this code in any fashion.
00007  * The code is provided only to help a developer better understand how
00008  * the SDK can be used.
00009  * 
00010  * Copyright (c) 2008, Juniper Networks, Inc.
00011  * All rights reserved.
00012  */
00013  
00021 #ifndef __EQUILIBRIUM2_SVC_H__
00022 #define __EQUILIBRIUM2_SVC_H__
00023 
00024 #include <sys/types.h>
00025 #include <sys/queue.h>
00026 #include <jnx/trace.h>
00027 
00029 #define EV_CLASS_CLASSIFY "ev-class-classify"
00030 
00031 #define EV_CLASSIFY_FIRST_PACKET    1  
00033 #define STATUS_UPDATE_INTERVAL      2  
00036 #ifdef INSIST_ERR
00037 #undef INSIST_ERR
00038 #endif
00039 
00040 #define INSIST_ERR(c) if (!(c)) \
00041     msp_log(LOG_EMERG, "%s:%d: insist '%s' ERROR: %m", \
00042         __FILE__, __LINE__, #c); else (void)NULL
00043 
00044 #define EQ2_TRACE(_msg_type, _fmt...) \
00045     msp_log(LOG_INFO, _fmt)
00046 
00048 typedef enum connect_state_e {
00049     CONNECT_NA,                  
00050     CONNECT_OK,                  
00051     CONNECT_INPROGRESS           
00052 } connect_state_t;
00053 
00057 typedef struct sp_svc_set_s {
00058     LIST_ENTRY(sp_svc_set_s) entry;        
00059     blob_svc_set_t           *ss_policy;   
00060     int                      ss_ssn_count;
00062     char                     ss_active;    
00063 } sp_svc_set_t;
00064 
00065 typedef LIST_HEAD(sp_svc_set_head_s, sp_svc_set_s) sp_svc_set_head_t;
00066 
00067 /* Dummy number for demo purpose. */
00068 #define EQ2_LUCKY_NUM    666
00069 
00071 enum classify_public_data_id_e {
00072     EQ2_CLASSIFY_PUB_DATA_LUCKY_NUM,
00073     EQ2_CLASSIFY_PUB_DATA_LUCKY_STR
00074 } classify_public_data_id_t;
00075 
00076 #endif /* __EQUILIBRIUM2_SVC_H__ */
00077 

2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:27:08 2010 for SDK Your Net Corporation Equilibrium II: equilibrium2-balance 1.0 by Doxygen 1.5.1