Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112085
b: refs/heads/master
c: 678d667
h: refs/heads/master
i:
  112083: 33b8d82
v: v3
  • Loading branch information
Alexey Dobriyan authored and Patrick McHardy committed Oct 8, 2008
1 parent 031c139 commit 03cd1ba
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 68047937677f2dffb5c47b57ce8baba5714b2142
refs/heads/master: 678d66753091a4102910392fb6198a6c6ce7f510
10 changes: 8 additions & 2 deletions trunk/net/netfilter/nf_conntrack_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ EXPORT_SYMBOL_GPL(nf_conntrack_l3proto_register);

void nf_conntrack_l3proto_unregister(struct nf_conntrack_l3proto *proto)
{
struct net *net;

BUG_ON(proto->l3proto >= AF_MAX);

mutex_lock(&nf_ct_proto_mutex);
Expand All @@ -219,7 +221,8 @@ void nf_conntrack_l3proto_unregister(struct nf_conntrack_l3proto *proto)
synchronize_rcu();

/* Remove all contrack entries for this protocol */
nf_ct_iterate_cleanup(&init_net, kill_l3proto, proto);
for_each_net(net)
nf_ct_iterate_cleanup(net, kill_l3proto, proto);
}
EXPORT_SYMBOL_GPL(nf_conntrack_l3proto_unregister);

Expand Down Expand Up @@ -316,6 +319,8 @@ EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_register);

void nf_conntrack_l4proto_unregister(struct nf_conntrack_l4proto *l4proto)
{
struct net *net;

BUG_ON(l4proto->l3proto >= PF_MAX);

mutex_lock(&nf_ct_proto_mutex);
Expand All @@ -328,7 +333,8 @@ void nf_conntrack_l4proto_unregister(struct nf_conntrack_l4proto *l4proto)
synchronize_rcu();

/* Remove all contrack entries for this protocol */
nf_ct_iterate_cleanup(&init_net, kill_l4proto, l4proto);
for_each_net(net)
nf_ct_iterate_cleanup(net, kill_l4proto, l4proto);
}
EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_unregister);

Expand Down

0 comments on commit 03cd1ba

Please sign in to comment.