projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b433095
)
[NETFILTER]: Don't checksum CHECKSUM_UNNECESSARY skbs in TCP connection tracking
author
Patrick McHardy
<kaber@trash.net>
Tue, 3 May 2005 21:23:50 +0000
(14:23 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 May 2005 21:23:50 +0000
(14:23 -0700)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_proto_tcp.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
b/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
index 2b87c1974be605d5bdb1ee769188d7e03fb2ddc8..721ddbf522b422d554479a7ab15c0955798f16ee 100644
(file)
--- a/
net/ipv4/netfilter/ip_conntrack_proto_tcp.c
+++ b/
net/ipv4/netfilter/ip_conntrack_proto_tcp.c
@@
-819,6
+819,7
@@
static int tcp_error(struct sk_buff *skb,
*/
/* FIXME: Source route IP option packets --RR */
if (hooknum == NF_IP_PRE_ROUTING
+ && skb->ip_summed != CHECKSUM_UNNECESSARY
&& csum_tcpudp_magic(iph->saddr, iph->daddr, tcplen, IPPROTO_TCP,
skb->ip_summed == CHECKSUM_HW ? skb->csum
: skb_checksum(skb, iph->ihl*4, tcplen, 0))) {