Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236805
b: refs/heads/master
c: ad86e1f
h: refs/heads/master
i:
  236803: a399891
v: v3
  • Loading branch information
Jan Engelhardt committed Jan 26, 2011
1 parent 08ee23a commit c48c5db
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 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: 9f4e1ccd80530609bbceec68ae3831697b5c6a68
refs/heads/master: ad86e1f27a9a97a9e50810b10bca678407b1d6fd
4 changes: 3 additions & 1 deletion trunk/net/netfilter/ipvs/ip_vs_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,9 @@ static int __net_init __ip_vs_init(struct net *net)

static void __net_exit __ip_vs_cleanup(struct net *net)
{
IP_VS_DBG(10, "ipvs netns %d released\n", net_ipvs(net)->gen);
struct netns_ipvs *ipvs = net_ipvs(net);

IP_VS_DBG(10, "ipvs netns %d released\n", ipvs->gen);
}

static struct pernet_operations ipvs_core_ops = {
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/netfilter/ipvs/ip_vs_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3556,7 +3556,7 @@ int __net_init __ip_vs_control_init(struct net *net)


ipvs->sysctl_hdr = register_net_sysctl_table(net, net_vs_ctl_path,
tbl);
vs_vars);
if (ipvs->sysctl_hdr == NULL)
goto err_reg;
ip_vs_new_estimator(net, ipvs->tot_stats);
Expand Down
12 changes: 8 additions & 4 deletions trunk/net/netfilter/xt_connlimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,15 @@ connlimit_mt(const struct sk_buff *skb, struct xt_action_param *par)
int connections;

ct = nf_ct_get(skb, &ctinfo);
if (ct != NULL)
tuple_ptr = &ct->tuplehash[0].tuple;
else if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb),
par->family, &tuple))
if (ct != NULL) {
if (info->flags & XT_CONNLIMIT_DADDR)
tuple_ptr = &ct->tuplehash[IP_CT_DIR_REPLY].tuple;
else
tuple_ptr = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple;
} else if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb),
par->family, &tuple)) {
goto hotdrop;
}

if (par->family == NFPROTO_IPV6) {
const struct ipv6hdr *iph = ipv6_hdr(skb);
Expand Down

0 comments on commit c48c5db

Please sign in to comment.