diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /include/net/ip_vs.h | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r-- | include/net/ip_vs.h | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 98978e73f666..fe82b1e10a29 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -26,6 +26,11 @@ | |||
26 | #include <linux/ipv6.h> /* for struct ipv6hdr */ | 26 | #include <linux/ipv6.h> /* for struct ipv6hdr */ |
27 | #include <net/ipv6.h> /* for ipv6_addr_copy */ | 27 | #include <net/ipv6.h> /* for ipv6_addr_copy */ |
28 | 28 | ||
29 | |||
30 | /* Connections' size value needed by ip_vs_ctl.c */ | ||
31 | extern int ip_vs_conn_tab_size; | ||
32 | |||
33 | |||
29 | struct ip_vs_iphdr { | 34 | struct ip_vs_iphdr { |
30 | int len; | 35 | int len; |
31 | __u8 protocol; | 36 | __u8 protocol; |
@@ -220,6 +225,26 @@ enum { | |||
220 | }; | 225 | }; |
221 | 226 | ||
222 | /* | 227 | /* |
228 | * SCTP State Values | ||
229 | */ | ||
230 | enum ip_vs_sctp_states { | ||
231 | IP_VS_SCTP_S_NONE, | ||
232 | IP_VS_SCTP_S_INIT_CLI, | ||
233 | IP_VS_SCTP_S_INIT_SER, | ||
234 | IP_VS_SCTP_S_INIT_ACK_CLI, | ||
235 | IP_VS_SCTP_S_INIT_ACK_SER, | ||
236 | IP_VS_SCTP_S_ECHO_CLI, | ||
237 | IP_VS_SCTP_S_ECHO_SER, | ||
238 | IP_VS_SCTP_S_ESTABLISHED, | ||
239 | IP_VS_SCTP_S_SHUT_CLI, | ||
240 | IP_VS_SCTP_S_SHUT_SER, | ||
241 | IP_VS_SCTP_S_SHUT_ACK_CLI, | ||
242 | IP_VS_SCTP_S_SHUT_ACK_SER, | ||
243 | IP_VS_SCTP_S_CLOSED, | ||
244 | IP_VS_SCTP_S_LAST | ||
245 | }; | ||
246 | |||
247 | /* | ||
223 | * Delta sequence info structure | 248 | * Delta sequence info structure |
224 | * Each ip_vs_conn has 2 (output AND input seq. changes). | 249 | * Each ip_vs_conn has 2 (output AND input seq. changes). |
225 | * Only used in the VS/NAT. | 250 | * Only used in the VS/NAT. |
@@ -251,8 +276,7 @@ struct ip_vs_estimator { | |||
251 | u32 outbps; | 276 | u32 outbps; |
252 | }; | 277 | }; |
253 | 278 | ||
254 | struct ip_vs_stats | 279 | struct ip_vs_stats { |
255 | { | ||
256 | struct ip_vs_stats_user ustats; /* statistics */ | 280 | struct ip_vs_stats_user ustats; /* statistics */ |
257 | struct ip_vs_estimator est; /* estimator */ | 281 | struct ip_vs_estimator est; /* estimator */ |
258 | 282 | ||
@@ -518,8 +542,7 @@ struct ip_vs_scheduler { | |||
518 | /* | 542 | /* |
519 | * The application module object (a.k.a. app incarnation) | 543 | * The application module object (a.k.a. app incarnation) |
520 | */ | 544 | */ |
521 | struct ip_vs_app | 545 | struct ip_vs_app { |
522 | { | ||
523 | struct list_head a_list; /* member in app list */ | 546 | struct list_head a_list; /* member in app list */ |
524 | int type; /* IP_VS_APP_TYPE_xxx */ | 547 | int type; /* IP_VS_APP_TYPE_xxx */ |
525 | char *name; /* application module name */ | 548 | char *name; /* application module name */ |
@@ -594,17 +617,6 @@ extern void ip_vs_init_hash_table(struct list_head *table, int rows); | |||
594 | * (from ip_vs_conn.c) | 617 | * (from ip_vs_conn.c) |
595 | */ | 618 | */ |
596 | 619 | ||
597 | /* | ||
598 | * IPVS connection entry hash table | ||
599 | */ | ||
600 | #ifndef CONFIG_IP_VS_TAB_BITS | ||
601 | #define CONFIG_IP_VS_TAB_BITS 12 | ||
602 | #endif | ||
603 | |||
604 | #define IP_VS_CONN_TAB_BITS CONFIG_IP_VS_TAB_BITS | ||
605 | #define IP_VS_CONN_TAB_SIZE (1 << IP_VS_CONN_TAB_BITS) | ||
606 | #define IP_VS_CONN_TAB_MASK (IP_VS_CONN_TAB_SIZE - 1) | ||
607 | |||
608 | enum { | 620 | enum { |
609 | IP_VS_DIR_INPUT = 0, | 621 | IP_VS_DIR_INPUT = 0, |
610 | IP_VS_DIR_OUTPUT, | 622 | IP_VS_DIR_OUTPUT, |
@@ -749,7 +761,7 @@ extern struct ip_vs_protocol ip_vs_protocol_udp; | |||
749 | extern struct ip_vs_protocol ip_vs_protocol_icmp; | 761 | extern struct ip_vs_protocol ip_vs_protocol_icmp; |
750 | extern struct ip_vs_protocol ip_vs_protocol_esp; | 762 | extern struct ip_vs_protocol ip_vs_protocol_esp; |
751 | extern struct ip_vs_protocol ip_vs_protocol_ah; | 763 | extern struct ip_vs_protocol ip_vs_protocol_ah; |
752 | 764 | extern struct ip_vs_protocol ip_vs_protocol_sctp; | |
753 | 765 | ||
754 | /* | 766 | /* |
755 | * Registering/unregistering scheduler functions | 767 | * Registering/unregistering scheduler functions |