]> err.no Git - linux-2.6/blobdiff - net/ipv4/netfilter/nf_conntrack_proto_icmp.c
USB: Add MUSB and TUSB support
[linux-2.6] / net / ipv4 / netfilter / nf_conntrack_proto_icmp.c
index 193a845fe7f84d9e4bf758c13216e00f7aa73c72..97791048fa9b0c3fd7afc9802025ebe6db963cf5 100644 (file)
@@ -87,9 +87,8 @@ static int icmp_packet(struct nf_conn *ct,
           means this will only run once even if count hits zero twice
           (theoretically possible with SMP) */
        if (CTINFO2DIR(ctinfo) == IP_CT_DIR_REPLY) {
-               if (atomic_dec_and_test(&ct->proto.icmp.count)
-                   && del_timer(&ct->timeout))
-                       ct->timeout.function((unsigned long)ct);
+               if (atomic_dec_and_test(&ct->proto.icmp.count))
+                       nf_ct_kill_acct(ct, ctinfo, skb);
        } else {
                atomic_inc(&ct->proto.icmp.count);
                nf_conntrack_event_cache(IPCT_PROTOINFO_VOLATILE, skb);
@@ -115,7 +114,7 @@ static bool icmp_new(struct nf_conn *ct, const struct sk_buff *skb,
                /* Can't create a new ICMP `conn' with this. */
                pr_debug("icmp: can't create new conn with type %u\n",
                         ct->tuplehash[0].tuple.dst.u.icmp.type);
-               NF_CT_DUMP_TUPLE(&ct->tuplehash[0].tuple);
+               nf_ct_dump_tuple_ip(&ct->tuplehash[0].tuple);
                return false;
        }
        atomic_set(&ct->proto.icmp.count, 0);