Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _IPT_CLUSTERIP_H_target |
| 2 | #define _IPT_CLUSTERIP_H_target |
| 3 | |
| 4 | enum clusterip_hashmode { |
| 5 | CLUSTERIP_HASHMODE_SIP = 0, |
| 6 | CLUSTERIP_HASHMODE_SIP_SPT, |
| 7 | CLUSTERIP_HASHMODE_SIP_SPT_DPT, |
| 8 | }; |
| 9 | |
| 10 | #define CLUSTERIP_HASHMODE_MAX CLUSTERIP_HASHMODE_SIP_SPT_DPT |
| 11 | |
| 12 | #define CLUSTERIP_MAX_NODES 16 |
| 13 | |
| 14 | #define CLUSTERIP_FLAG_NEW 0x00000001 |
| 15 | |
| 16 | struct clusterip_config; |
| 17 | |
| 18 | struct ipt_clusterip_tgt_info { |
| 19 | |
| 20 | u_int32_t flags; |
Patrick McHardy | d3c3f42 | 2007-07-07 22:38:30 -0700 | [diff] [blame] | 21 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | /* only relevant for new ones */ |
| 23 | u_int8_t clustermac[6]; |
| 24 | u_int16_t num_total_nodes; |
| 25 | u_int16_t num_local_nodes; |
| 26 | u_int16_t local_nodes[CLUSTERIP_MAX_NODES]; |
Patrick McHardy | d3c3f42 | 2007-07-07 22:38:30 -0700 | [diff] [blame] | 27 | u_int32_t hash_mode; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | u_int32_t hash_initval; |
Harald Welte | dd7f0b8 | 2005-06-22 12:38:33 -0700 | [diff] [blame] | 29 | |
| 30 | struct clusterip_config *config; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | #endif /*_IPT_CLUSTERIP_H_target*/ |