* [NETFILTER 6/7]: Avoid unncessary checksum validation in UDP connection tracking
@ 2005-06-20 23:04 Patrick McHardy
0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2005-06-20 23:04 UTC (permalink / raw)
To: David S. Miller; +Cc: Netfilter Development Mailinglist
[-- Attachment #1: 06.diff --]
[-- Type: text/x-patch, Size: 1207 bytes --]
[NETFILTER]: Avoid unncessary checksum validation in UDP connection tracking
Signed-off-by: Keir Fraser <Keir.Fraser@xl.cam.ac.uk>
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
commit f324916223389c944e50fa8b2c514bacf3f460c5
tree e67258b81c73684aa0cfc8117243b9c0b303324f
parent 2976a51fd8ab66770b1b3083ffaa41bd05d70e1e
author Keir Fraser <Keir.Fraser@xl.cam.ac.uk> Mon, 20 Jun 2005 18:52:00
committer Patrick McHardy <kaber@trash.net> Mon, 20 Jun 2005 18:52:00
net/ipv4/netfilter/ip_conntrack_proto_udp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/ipv4/netfilter/ip_conntrack_proto_udp.c b/net/ipv4/netfilter/ip_conntrack_proto_udp.c
--- a/net/ipv4/netfilter/ip_conntrack_proto_udp.c
+++ b/net/ipv4/netfilter/ip_conntrack_proto_udp.c
@@ -120,6 +120,7 @@ static int udp_error(struct sk_buff *skb
* and moreover root might send raw packets.
* 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, udplen, IPPROTO_UDP,
skb->ip_summed == CHECKSUM_HW ? skb->csum
: skb_checksum(skb, iph->ihl*4, udplen, 0))) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-06-20 23:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 23:04 [NETFILTER 6/7]: Avoid unncessary checksum validation in UDP connection tracking Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.