Hans Schillstrom | 61b1ab4 | 2011-01-03 14:44:42 +0100 | [diff] [blame] | 1 | /* |
| 2 | * IP Virtual Server |
| 3 | * Data structure for network namspace |
| 4 | * |
| 5 | */ |
| 6 | |
| 7 | #ifndef IP_VS_H_ |
| 8 | #define IP_VS_H_ |
| 9 | |
| 10 | #include <linux/list.h> |
| 11 | #include <linux/mutex.h> |
| 12 | #include <linux/list_nulls.h> |
| 13 | #include <linux/ip_vs.h> |
| 14 | #include <asm/atomic.h> |
| 15 | #include <linux/in.h> |
| 16 | |
| 17 | struct ip_vs_stats; |
| 18 | struct ip_vs_sync_buff; |
| 19 | struct ctl_table_header; |
| 20 | |
| 21 | struct netns_ipvs { |
| 22 | int gen; /* Generation */ |
Hans Schillstrom | fc72325 | 2011-01-03 14:44:43 +0100 | [diff] [blame] | 23 | /* |
| 24 | * Hash table: for real service lookups |
| 25 | */ |
| 26 | #define IP_VS_RTAB_BITS 4 |
| 27 | #define IP_VS_RTAB_SIZE (1 << IP_VS_RTAB_BITS) |
| 28 | #define IP_VS_RTAB_MASK (IP_VS_RTAB_SIZE - 1) |
| 29 | |
| 30 | struct list_head rs_table[IP_VS_RTAB_SIZE]; |
Hans Schillstrom | 252c641 | 2011-01-03 14:44:46 +0100 | [diff] [blame^] | 31 | /* ip_vs_proto */ |
| 32 | #define IP_VS_PROTO_TAB_SIZE 32 /* must be power of 2 */ |
| 33 | struct ip_vs_proto_data *proto_data_table[IP_VS_PROTO_TAB_SIZE]; |
Hans Schillstrom | d0a1eef | 2011-01-03 14:44:44 +0100 | [diff] [blame] | 34 | |
Hans Schillstrom | b6e885d | 2011-01-03 14:44:45 +0100 | [diff] [blame] | 35 | /* ip_vs_lblc */ |
| 36 | int sysctl_lblc_expiration; |
| 37 | struct ctl_table_header *lblc_ctl_header; |
| 38 | struct ctl_table *lblc_ctl_table; |
Hans Schillstrom | d0a1eef | 2011-01-03 14:44:44 +0100 | [diff] [blame] | 39 | /* ip_vs_lblcr */ |
| 40 | int sysctl_lblcr_expiration; |
| 41 | struct ctl_table_header *lblcr_ctl_header; |
| 42 | struct ctl_table *lblcr_ctl_table; |
Hans Schillstrom | 61b1ab4 | 2011-01-03 14:44:42 +0100 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | #endif /* IP_VS_H_ */ |