diff options
author | 2009-06-02 20:08:38 +0200 | |
---|---|---|
committer | 2009-06-02 20:08:38 +0200 | |
commit | 274d383b9c1906847a64bbb267b0183599ce86a0 (patch) | |
tree | c5a75eb38b79a05b11f25542ebad45c1c4c4410b /net/netfilter/nf_conntrack_netlink.c | |
parent | netfilter: ctnetlink: cleanup message-size calculation (diff) | |
download | linux-274d383b9c1906847a64bbb267b0183599ce86a0.tar.gz linux-274d383b9c1906847a64bbb267b0183599ce86a0.tar.bz2 linux-274d383b9c1906847a64bbb267b0183599ce86a0.zip |
netfilter: conntrack: don't report events on module removal
During the module removal there are no possible event listeners
since ctnetlink must be removed before to allow removing
nf_conntrack. This patch removes the event reporting for the
module removal case which is not of any use in the existing code.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_netlink.c')
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index 58fde0e47b05..3a20de1be63c 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c @@ -777,9 +777,9 @@ ctnetlink_del_conntrack(struct sock *ctnl, struct sk_buff *skb, err = ctnetlink_parse_tuple(cda, &tuple, CTA_TUPLE_REPLY, u3); else { /* Flush the whole table */ - nf_conntrack_flush(&init_net, - NETLINK_CB(skb).pid, - nlmsg_report(nlh)); + nf_conntrack_flush_report(&init_net, + NETLINK_CB(skb).pid, + nlmsg_report(nlh)); return 0; } |