Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273495
b: refs/heads/master
c: 52669df
h: refs/heads/master
i:
  273493: a638c79
  273491: 78f37e0
  273487: 90afc46
v: v3
  • Loading branch information
Krzysztof Wilczynski authored and Pablo Neira Ayuso committed Nov 1, 2011
1 parent 6ec68c2 commit 41c8c74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f83347df57113e54e999aa2491be3f685c0c262d
refs/heads/master: 52669dfa8312b7f63b963df6d01dc5513398f4c4
5 changes: 3 additions & 2 deletions trunk/net/netfilter/ipvs/ip_vs_ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
* List of ports (up to IP_VS_APP_MAX_PORTS) to be handled by helper
* First port is set to the default port.
*/
static unsigned int ports_count = 1;
static unsigned short ports[IP_VS_APP_MAX_PORTS] = {21, 0};
module_param_array(ports, ushort, NULL, 0);
module_param_array(ports, ushort, &ports_count, 0444);
MODULE_PARM_DESC(ports, "Ports to monitor for FTP control commands");


Expand Down Expand Up @@ -449,7 +450,7 @@ static int __net_init __ip_vs_ftp_init(struct net *net)
if (ret)
goto err_exit;

for (i=0; i<IP_VS_APP_MAX_PORTS; i++) {
for (i = 0; i < ports_count; i++) {
if (!ports[i])
continue;
ret = register_ip_vs_app_inc(net, app, app->protocol, ports[i]);
Expand Down

0 comments on commit 41c8c74

Please sign in to comment.