Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349190
b: refs/heads/master
c: 1e47ee8
h: refs/heads/master
v: v3
  • Loading branch information
Pablo Neira Ayuso committed Jan 12, 2013
1 parent e3f7cc1 commit 5d7cfb4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 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: 4610476d89d53714ca94aae081fa035908bc137a
refs/heads/master: 1e47ee8367babe6a5e8adf44a714c7086657b87e
2 changes: 2 additions & 0 deletions trunk/include/net/netfilter/nf_conntrack_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ extern void nf_conntrack_cleanup(struct net *net);
extern int nf_conntrack_proto_init(struct net *net);
extern void nf_conntrack_proto_fini(struct net *net);

extern void nf_conntrack_cleanup_end(void);

extern bool
nf_ct_get_tuple(const struct sk_buff *skb,
unsigned int nhoff,
Expand Down
9 changes: 5 additions & 4 deletions trunk/net/netfilter/nf_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1376,11 +1376,12 @@ void nf_conntrack_cleanup(struct net *net)
synchronize_net();
nf_conntrack_proto_fini(net);
nf_conntrack_cleanup_net(net);
}

if (net_eq(net, &init_net)) {
RCU_INIT_POINTER(nf_ct_destroy, NULL);
nf_conntrack_cleanup_init_net();
}
void nf_conntrack_cleanup_end(void)
{
RCU_INIT_POINTER(nf_ct_destroy, NULL);
nf_conntrack_cleanup_init_net();
}

void *nf_ct_alloc_hashtable(unsigned int *sizep, int nulls)
Expand Down
1 change: 1 addition & 0 deletions trunk/net/netfilter/nf_conntrack_standalone.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ static int __init nf_conntrack_standalone_init(void)
static void __exit nf_conntrack_standalone_fini(void)
{
unregister_pernet_subsys(&nf_conntrack_net_ops);
nf_conntrack_cleanup_end();
}

module_init(nf_conntrack_standalone_init);
Expand Down

0 comments on commit 5d7cfb4

Please sign in to comment.