Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / netfilter_ipv4 / ipt_CLUSTERIP.h
blobbaa83e757156c66d9e34015f554512eadb84f1f1
1 #ifndef _IPT_CLUSTERIP_H_target
2 #define _IPT_CLUSTERIP_H_target
4 enum clusterip_hashmode {
5 CLUSTERIP_HASHMODE_SIP = 0,
6 CLUSTERIP_HASHMODE_SIP_SPT,
7 CLUSTERIP_HASHMODE_SIP_SPT_DPT,
8 };
10 #define CLUSTERIP_HASHMODE_MAX CLUSTERIP_HASHMODE_SIP_SPT_DPT
12 #define CLUSTERIP_MAX_NODES 16
14 #define CLUSTERIP_FLAG_NEW 0x00000001
16 struct clusterip_config;
18 struct ipt_clusterip_tgt_info {
20 u_int32_t flags;
21 struct clusterip_config *config;
23 /* only relevant for new ones */
24 u_int8_t clustermac[6];
25 u_int16_t num_total_nodes;
26 u_int16_t num_local_nodes;
27 u_int16_t local_nodes[CLUSTERIP_MAX_NODES];
28 enum clusterip_hashmode hash_mode;
29 u_int32_t hash_initval;
32 #endif /*_IPT_CLUSTERIP_H_target*/