All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
To: yasuyuki.kozakai@toshiba.co.jp
Cc: netfilter@lists.netfilter.org
Subject: Re: Re IPv6 MARK support
Date: Wed, 28 Feb 2007 20:36:18 +0900 (JST)	[thread overview]
Message-ID: <200702281136.l1SBaJ3T008745@toshiba.co.jp> (raw)
In-Reply-To: <200702281053.l1SArNIC025800@toshiba.co.jp>


Hi again,

From: Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
Date: Wed, 28 Feb 2007 19:53:22 +0900 (JST)

> 
> Hi,
> 
> From: "Boutin Maël" <mael.boutin@laposte.net>
> Date: Wed, 28 Feb 2007 10:55:01 +0100
> 
> > After some tests, it appears that it is the OUTPUT chain that does not
> > work. Indeed with the PREROUTING chain the mark is taken into account
> > by iproute and the packet is routed as indicated in the corresponding
> > tables.
> > 
> > Is it a bug or something i missed ?
> 
> I suspect IPv6 routing. But for conformation, can you try
> 
> 	ip6tables -t mangle -A OUTPUT -m mark --mark 0x1 -j LOG	--log-prefix "out6 "
> 	ip6tables -t mangle -A POSTROUTING -m mark --mark 0x1 -j LOG --log-prefix "post6 "
> 
> after your rules and check whether you can see some log by LOG target ?
> And do you have any chance to try 2.6.20 ?

I found that ip6_route_me_harder() doesn't take into account of mark.

Can you try this patch ?

Regards,

[NETFILTER]: ip6_route_me_harder should take into account mark

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>

diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c
index f6294e5..ca50b58 100644
--- a/net/ipv6/netfilter.c
+++ b/net/ipv6/netfilter.c
@@ -15,6 +15,7 @@ int ip6_route_me_harder(struct sk_buff *
 	struct dst_entry *dst;
 	struct flowi fl = {
 		.oif = skb->sk ? skb->sk->sk_bound_dev_if : 0,
+		.mark = skb->mark,
 		.nl_u =
 		{ .ip6_u =
 		  { .daddr = iph->daddr,


  reply	other threads:[~2007-02-28 11:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-28  8:04 Re IPv6 MARK support Boutin Maël
2007-02-28  9:55 ` Boutin Maël
2007-02-28 10:53   ` Yasuyuki KOZAKAI
2007-02-28 11:36     ` Yasuyuki KOZAKAI [this message]
     [not found]     ` <200702281136.l1SBaJLe019021@toshiba.co.jp>
2007-02-28 11:53       ` Boutin Maël
2007-02-28 12:38         ` Yasuyuki KOZAKAI
     [not found]         ` <200702281238.l1SCcE4F016826@toshiba.co.jp>
2007-03-01 10:32           ` Boutin Maël
2007-03-01 11:05             ` Boutin Maël
2007-03-01 15:18               ` Pascal Hambourg
2007-03-01 15:42                 ` Eray Aslan
2007-03-01 21:31                   ` Boutin Maël

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=200702281136.l1SBaJ3T008745@toshiba.co.jp \
    --to=yasuyuki.kozakai@toshiba.co.jp \
    --cc=netfilter@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.