From: Laurent Licour <laurent@licour.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] netfilter : nfmark routing in OUTPUT, mangle, NFQUEUE
Date: Thu, 17 Jul 2008 10:00:56 +0200 [thread overview]
Message-ID: <487EFC38.4030709@licour.com> (raw)
In-Reply-To: <487C7B6F.8010802@trash.net>
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
> Please resend against the current kernel tree if you want me to
> apply this. Also it appears the patch is whitespace damaged,
> please make sure you'll send it in a way that doesn't corrupt
> it (f.i. as attachment).
Here is the patch against the 2.6.26-stable
[-- Attachment #2: netfilter.nfmark.output.mangle.patch --]
[-- Type: text/plain, Size: 716 bytes --]
--- linux-2.6.26/net/ipv4/netfilter.c.ori 2008-07-15 22:39:02.000000000 +0200
+++ linux-2.6.26/net/ipv4/netfilter.c 2008-07-16 18:10:14.000000000 +0200
@@ -121,6 +121,7 @@
__be32 daddr;
__be32 saddr;
u_int8_t tos;
+ __u32 mark;
};
static void nf_ip_saveroute(const struct sk_buff *skb,
@@ -134,6 +135,7 @@
rt_info->tos = iph->tos;
rt_info->daddr = iph->daddr;
rt_info->saddr = iph->saddr;
+ rt_info->mark = skb->mark;
}
}
@@ -146,6 +148,7 @@
const struct iphdr *iph = ip_hdr(skb);
if (!(iph->tos == rt_info->tos
+ && skb->mark == rt_info->mark
&& iph->daddr == rt_info->daddr
&& iph->saddr == rt_info->saddr))
return ip_route_me_harder(skb, RTN_UNSPEC);
prev parent reply other threads:[~2008-07-17 8:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-10 5:45 [PATCH] netfilter : nfmark routing in OUTPUT, mangle, NFQUEUE Laurent Licour
2008-07-15 10:26 ` Patrick McHardy
2008-07-17 8:00 ` Laurent Licour [this message]
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=487EFC38.4030709@licour.com \
--to=laurent@licour.com \
--cc=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.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.