diff options
Diffstat (limited to 'include/net/ip_vs.h')
| -rw-r--r-- | include/net/ip_vs.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 95374d1696a1..ee75ccdf5188 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
| @@ -808,8 +808,6 @@ struct netns_ipvs { | |||
| 808 | struct list_head rs_table[IP_VS_RTAB_SIZE]; | 808 | struct list_head rs_table[IP_VS_RTAB_SIZE]; |
| 809 | /* ip_vs_app */ | 809 | /* ip_vs_app */ |
| 810 | struct list_head app_list; | 810 | struct list_head app_list; |
| 811 | /* ip_vs_ftp */ | ||
| 812 | struct ip_vs_app *ftp_app; | ||
| 813 | /* ip_vs_proto */ | 811 | /* ip_vs_proto */ |
| 814 | #define IP_VS_PROTO_TAB_SIZE 32 /* must be power of 2 */ | 812 | #define IP_VS_PROTO_TAB_SIZE 32 /* must be power of 2 */ |
| 815 | struct ip_vs_proto_data *proto_data_table[IP_VS_PROTO_TAB_SIZE]; | 813 | struct ip_vs_proto_data *proto_data_table[IP_VS_PROTO_TAB_SIZE]; |
| @@ -890,6 +888,7 @@ struct netns_ipvs { | |||
| 890 | unsigned int sysctl_sync_refresh_period; | 888 | unsigned int sysctl_sync_refresh_period; |
| 891 | int sysctl_sync_retries; | 889 | int sysctl_sync_retries; |
| 892 | int sysctl_nat_icmp_send; | 890 | int sysctl_nat_icmp_send; |
| 891 | int sysctl_pmtu_disc; | ||
| 893 | 892 | ||
| 894 | /* ip_vs_lblc */ | 893 | /* ip_vs_lblc */ |
| 895 | int sysctl_lblc_expiration; | 894 | int sysctl_lblc_expiration; |
| @@ -976,6 +975,11 @@ static inline int sysctl_sync_sock_size(struct netns_ipvs *ipvs) | |||
| 976 | return ipvs->sysctl_sync_sock_size; | 975 | return ipvs->sysctl_sync_sock_size; |
| 977 | } | 976 | } |
| 978 | 977 | ||
| 978 | static inline int sysctl_pmtu_disc(struct netns_ipvs *ipvs) | ||
| 979 | { | ||
| 980 | return ipvs->sysctl_pmtu_disc; | ||
| 981 | } | ||
| 982 | |||
| 979 | #else | 983 | #else |
| 980 | 984 | ||
| 981 | static inline int sysctl_sync_threshold(struct netns_ipvs *ipvs) | 985 | static inline int sysctl_sync_threshold(struct netns_ipvs *ipvs) |
| @@ -1018,6 +1022,11 @@ static inline int sysctl_sync_sock_size(struct netns_ipvs *ipvs) | |||
| 1018 | return 0; | 1022 | return 0; |
| 1019 | } | 1023 | } |
| 1020 | 1024 | ||
| 1025 | static inline int sysctl_pmtu_disc(struct netns_ipvs *ipvs) | ||
| 1026 | { | ||
| 1027 | return 1; | ||
| 1028 | } | ||
| 1029 | |||
| 1021 | #endif | 1030 | #endif |
| 1022 | 1031 | ||
| 1023 | /* | 1032 | /* |
| @@ -1179,7 +1188,8 @@ extern void ip_vs_service_net_cleanup(struct net *net); | |||
| 1179 | * (from ip_vs_app.c) | 1188 | * (from ip_vs_app.c) |
| 1180 | */ | 1189 | */ |
| 1181 | #define IP_VS_APP_MAX_PORTS 8 | 1190 | #define IP_VS_APP_MAX_PORTS 8 |
| 1182 | extern int register_ip_vs_app(struct net *net, struct ip_vs_app *app); | 1191 | extern struct ip_vs_app *register_ip_vs_app(struct net *net, |
| 1192 | struct ip_vs_app *app); | ||
| 1183 | extern void unregister_ip_vs_app(struct net *net, struct ip_vs_app *app); | 1193 | extern void unregister_ip_vs_app(struct net *net, struct ip_vs_app *app); |
| 1184 | extern int ip_vs_bind_app(struct ip_vs_conn *cp, struct ip_vs_protocol *pp); | 1194 | extern int ip_vs_bind_app(struct ip_vs_conn *cp, struct ip_vs_protocol *pp); |
| 1185 | extern void ip_vs_unbind_app(struct ip_vs_conn *cp); | 1195 | extern void ip_vs_unbind_app(struct ip_vs_conn *cp); |
