From: Patrick McHardy <kaber@trash.net>
To: Harald Welte <laforge@gnumonks.org>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: [PATCH]: fix ipt_MASQUERADE in latest -bk
Date: Fri, 29 Aug 2003 02:10:26 +0200 [thread overview]
Message-ID: <3F4E99F2.8040907@trash.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
Hi Harald,
this change broke masquerading, key.oif is uninitialized and routing
lookups fail:
[NETFILTER]: Fix masquerade routing check, backport to 2.4 by
kurd@cp.rtfm.se
This patch fixes it.
Best regards,
Patrick
[-- Attachment #2: ipt_MASQUERADE-oif.diff --]
[-- Type: text/plain, Size: 462 bytes --]
===== net/ipv4/netfilter/ipt_MASQUERADE.c 1.6 vs edited =====
--- 1.6/net/ipv4/netfilter/ipt_MASQUERADE.c Tue Aug 12 11:30:12 2003
+++ edited/net/ipv4/netfilter/ipt_MASQUERADE.c Fri Aug 29 02:09:24 2003
@@ -87,6 +87,7 @@
key.dst = (*pskb)->nh.iph->daddr;
key.src = 0; /* Unknown: that's what we're trying to establish */
key.tos = RT_TOS((*pskb)->nh.iph->tos)|RTO_CONN;
+ key.oif = 0;
#ifdef CONFIG_IP_ROUTE_FWMARK
key.fwmark = (*pskb)->nfmark;
#endif
next reply other threads:[~2003-08-29 0:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-29 0:10 Patrick McHardy [this message]
2003-08-30 18:51 ` [PATCH]: fix ipt_MASQUERADE in latest -bk Harald Welte
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=3F4E99F2.8040907@trash.net \
--to=kaber@trash.net \
--cc=laforge@gnumonks.org \
--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.