[NETFILTER]: Introduce NF_INET_ hook values
[deliverable/linux.git] / net / netfilter / nf_conntrack_proto_tcp.c
index 7a3f64c1aca6f346581c0ef0bc54427f2fb75d14..d96f18863fd2ef24dcdb68db3376efdaabdc3fa3 100644 (file)
@@ -783,9 +783,7 @@ static int tcp_error(struct sk_buff *skb,
         * because the checksum is assumed to be correct.
         */
        /* FIXME: Source route IP option packets --RR */
-       if (nf_conntrack_checksum &&
-           ((pf == PF_INET && hooknum == NF_IP_PRE_ROUTING) ||
-            (pf == PF_INET6 && hooknum == NF_IP6_PRE_ROUTING)) &&
+       if (nf_conntrack_checksum && hooknum == NF_INET_PRE_ROUTING &&
            nf_checksum(skb, hooknum, dataoff, IPPROTO_TCP, pf)) {
                if (LOG_INVALID(IPPROTO_TCP))
                        nf_log_packet(pf, 0, skb, NULL, NULL, NULL,
This page took 0.03178 seconds and 5 git commands to generate.