Stanislav Fomichev <stfomichev@xxxxxxxxxxxxxx> wrote: > /* Check checksum. */ > - if (csum_ipv6_magic(&oip6h->saddr, &oip6h->daddr, otcplen, IPPROTO_TCP, > + if (hook != NF_INET_LOCAL_OUT && > + csum_ipv6_magic(&oip6h->saddr, &oip6h->daddr, otcplen, IPPROTO_TCP, > skb_checksum(oldskb, tcphoff, otcplen, 0))) { Could you try using nf_ip6_checksum() here instead of csum_ipv6_magic()? It has the advantage that it will also skip checksumming in case inbound packets have already been validated by hardware, etc. Also this should do the right thing in any case (e.g. local packet in POST_ROUTING). -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html