From: Patrick McHardy <kaber@trash.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: [PATCH 2.4 7/8]: Fix refreshing of overlapping expectations
Date: Fri, 04 Mar 2005 13:18:54 +0100 [thread overview]
Message-ID: <4228522E.2030704@trash.net> (raw)
[-- Attachment #1: 07.diff --]
[-- Type: text/x-patch, Size: 1990 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/03/04 01:03:49+01:00 kaber@coreworks.de
# [NETFILTER]: Fix refreshing of overlapping expectations
#
# Backport from 2.6, original patch from Rusty:
#
# More importantly, a previous expectation should only be refreshed and return
# EEXIST if it's owned by the same connection (nfsim found this bug).
#
# Slightly different from 2.6 patch, it had a bug that was corrected
# in a different patch. We still want to return -EEXIST if the
# expectation is owned by a different connection as the expectation
# list is global.
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# net/ipv4/netfilter/ip_conntrack_core.c
# 2005/03/04 01:03:48+01:00 kaber@coreworks.de +2 -1
# [NETFILTER]: Fix refreshing of overlapping expectations
#
# Backport from 2.6, original patch from Rusty:
#
# More importantly, a previous expectation should only be refreshed and return
# EEXIST if it's owned by the same connection (nfsim found this bug).
#
# Slightly different from 2.6 patch, it had a bug that was corrected
# in a different patch. We still want to return -EEXIST if the
# expectation is owned by a different connection as the expectation
# list is global.
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
diff -Nru a/net/ipv4/netfilter/ip_conntrack_core.c b/net/ipv4/netfilter/ip_conntrack_core.c
--- a/net/ipv4/netfilter/ip_conntrack_core.c 2005-03-04 01:52:08 +01:00
+++ b/net/ipv4/netfilter/ip_conntrack_core.c 2005-03-04 01:52:08 +01:00
@@ -973,7 +973,8 @@
pointing into the payload - otherwise we should have to copy
the data filled out by the helper over the old one */
DEBUGP("expect_related: resent packet\n");
- if (related_to->helper->timeout) {
+ if (old->expectant == related_to &&
+ related_to->helper->timeout) {
if (!del_timer(&old->timeout)) {
/* expectation is dying. Fall through */
old = NULL;
reply other threads:[~2005-03-04 12:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4228522E.2030704@trash.net \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.