equilibrium2.h File Reference

Contains function. More...

#include <stdbool.h>
#include <sys/types.h>
#include <sys/queue.h>

Go to the source code of this file.

Data Structures

struct  svr_addr_s
struct  svr_group_s
struct  config_blob_key_s
struct  blob_svr_group_s
struct  blob_svr_group_set_s
struct  blob_term_s
struct  blob_rule_s
struct  blob_svc_set_s
struct  blob_svc_set_node_s
struct  msg_svr_addr_s
struct  msg_svr_group_s

Defines

#define MAX_NAME_LEN   64
#define EQ2_BALANCE_SVC_NAME   "equilibrium2-balance"
#define EQ2_CLASSIFY_SVC_NAME   "equilibrium2-classify"
#define EQ2_BALANCE_SVC   1
#define EQ2_CLASSIFY_SVC   2
#define BALANCE_PLUGIN   EQ2_BALANCE_SVC
#define CLASSIFY_PLUGIN   EQ2_CLASSIFY_SVC
#define TERM_FROM_SVC_TYPE   1
#define TERM_FROM_SVC_GATE   2
#define TERM_FROM_EXCEPT   0x100
#define TERM_THEN_ACCEPT   1
#define TERM_THEN_DISCARD   2
#define TERM_THEN_SVC_GATE   3
#define TERM_THEN_SVR_GROUP   4
#define CONFIG_BLOB_SVR_GROUP   1
#define CONFIG_BLOB_SVC_SET   2
#define EQ2_MGMT_SERVER_PORT   8100
#define EQ2_CLIENT_RETRY   10
#define EQ2_BALANCE_MSG_SVR_GROUP   1
#define EQ2_SVC_INFO_MSG_LEN   256

Typedefs

typedef svr_addr_s svr_addr_t
typedef svr_group_s svr_group_t
typedef config_blob_key_s config_blob_key_t
typedef blob_svr_group_s blob_svr_group_t
typedef blob_svr_group_set_s blob_svr_group_set_t
typedef blob_term_s blob_term_t
typedef blob_rule_s blob_rule_t
typedef blob_svc_set_s blob_svc_set_t
typedef blob_svc_set_node_s blob_svc_set_node_t
typedef msg_svr_addr_s msg_svr_addr_t
typedef msg_svr_group_s msg_svr_group_t

Functions

typedef LIST_HEAD (svr_addr_head_s, svr_addr_s) svr_addr_head_t
typedef LIST_HEAD (svr_group_head_s, svr_group_s) svr_group_head_t
typedef LIST_HEAD (blob_ss_head_s, blob_svc_set_node_s) blob_ss_head_t


Detailed Description

Contains function.

Definition in file equilibrium2.h.


Define Documentation

#define BALANCE_PLUGIN   EQ2_BALANCE_SVC

balance service plugin ID

Definition at line 41 of file equilibrium2.h.

#define CLASSIFY_PLUGIN   EQ2_CLASSIFY_SVC

classify service plugin ID

Definition at line 42 of file equilibrium2.h.

#define CONFIG_BLOB_SVC_SET   2

config blob service-set

Definition at line 54 of file equilibrium2.h.

Referenced by add_svc_set_blob(), kcom_add_config_blob(), and kcom_get_config_blob().

#define CONFIG_BLOB_SVR_GROUP   1

config blob server group

Definition at line 53 of file equilibrium2.h.

Referenced by config_post_proc(), kcom_add_config_blob(), and kcom_get_config_blob().

#define EQ2_BALANCE_MSG_SVR_GROUP   1

server group message

Definition at line 58 of file equilibrium2.h.

Referenced by server_msg_hdlr().

#define EQ2_BALANCE_SVC   1

balance service ID

Definition at line 38 of file equilibrium2.h.

Referenced by config_post_proc(), config_ssrb_op(), pack_svc_set_blob(), and read_svc_set().

#define EQ2_BALANCE_SVC_NAME   "equilibrium2-balance"

balance service name

Definition at line 33 of file equilibrium2.h.

Referenced by check_ssrb(), and read_svc_set().

#define EQ2_CLASSIFY_SVC   2

classify service ID

Definition at line 39 of file equilibrium2.h.

Referenced by config_ssrb_op(), pack_svc_set_blob(), and read_svc_set().

#define EQ2_CLASSIFY_SVC_NAME   "equilibrium2-classify"

classify service name

Definition at line 36 of file equilibrium2.h.

Referenced by check_ssrb(), and read_svc_set().

#define EQ2_CLIENT_RETRY   10

client retry number

Definition at line 57 of file equilibrium2.h.

#define EQ2_MGMT_SERVER_PORT   8100

balance service TCP port

Definition at line 56 of file equilibrium2.h.

Referenced by server_open().

#define EQ2_SVC_INFO_MSG_LEN   256

maximum message length

Definition at line 59 of file equilibrium2.h.

#define MAX_NAME_LEN   64

maximum length of name string

Definition at line 30 of file equilibrium2.h.

Referenced by read_eq2_rule(), read_eq2_svc_gate(), read_eq2_svc_type(), read_eq2_svr_group(), read_eq2_term(), read_svc_set(), and read_svc_set_rule().

#define TERM_FROM_EXCEPT   0x100

term match condition except

Definition at line 46 of file equilibrium2.h.

Referenced by read_eq2_term().

#define TERM_FROM_SVC_GATE   2

term match condition service gate

Definition at line 45 of file equilibrium2.h.

Referenced by pack_svc_set_blob(), and read_eq2_term().

#define TERM_FROM_SVC_TYPE   1

term match condition service type

Definition at line 44 of file equilibrium2.h.

Referenced by pack_svc_set_blob(), and read_eq2_term().

#define TERM_THEN_ACCEPT   1

term action accept

Definition at line 48 of file equilibrium2.h.

Referenced by read_eq2_term().

#define TERM_THEN_DISCARD   2

term action discard

Definition at line 49 of file equilibrium2.h.

Referenced by read_eq2_term().

#define TERM_THEN_SVC_GATE   3

term action service gate

Definition at line 50 of file equilibrium2.h.

Referenced by pack_svc_set_blob(), and read_eq2_term().

#define TERM_THEN_SVR_GROUP   4

term action server group

Definition at line 51 of file equilibrium2.h.

Referenced by pack_svc_set_blob(), and read_eq2_term().


Typedef Documentation

typedef struct blob_rule_s blob_rule_t

Blob item of rule.

typedef struct blob_svc_set_node_s blob_svc_set_node_t

List item of service-set blob.

typedef struct blob_svc_set_s blob_svc_set_t

Blob item of service-set.

typedef struct blob_svr_group_set_s blob_svr_group_set_t

Blob item of server group set.

typedef struct blob_svr_group_s blob_svr_group_t

Blob item of server group.

typedef struct blob_term_s blob_term_t

Blob item of rule term.

typedef struct config_blob_key_s config_blob_key_t

Blob key of configuration blob.

typedef struct msg_svr_addr_s msg_svr_addr_t

Message item of server address.

typedef struct msg_svr_group_s msg_svr_group_t

Message item of server group.

typedef struct svr_addr_s svr_addr_t

List item of server address.

typedef struct svr_group_s svr_group_t

List item of server group.


Function Documentation

typedef LIST_HEAD ( blob_ss_head_s  ,
blob_svc_set_node_s   
)

List head of service-set blob.

typedef LIST_HEAD ( svr_group_head_s  ,
svr_group_s   
)

List head of server group.

typedef LIST_HEAD ( svr_addr_head_s  ,
svr_addr_s   
)

List head of server address.


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:26:58 2010 for SDK Your Net Corporation Equilibrium II: equilibrium2-mgmt 1.0 by Doxygen 1.5.1