From: Ben Greear <greearb@candelatech.com>
To: hadi@cyberus.ca
Cc: David Miller <davem@davemloft.net>,
netdev@vger.kernel.org, atis@mikrotik.com,
eric.dumazet@gmail.com, zenczykowski@gmail.com
Subject: Re: [PATCH] net: Fix RPF to work with policy routing
Date: Fri, 23 Oct 2009 08:34:49 -0700 [thread overview]
Message-ID: <4AE1CD19.8090901@candelatech.com> (raw)
In-Reply-To: <1256295075.6264.59.camel@dogo.mojatatu.com>
jamal wrote:
> with the ipt or skbedit actions or via netfilter i could
> set marks which could be as trivial as "set mark X if packet
> came in via eth0 or eth1 and mark Y if they came in via gre0"
>
I implemented something similar while allowing for virtual router like
applications. I had to add a mark very early in the pkt rx logic in dev.c,
and had to add a 'skb_default_mark' member to the netdevice because
the route lookup is done before the normal iptables logic ran. Without
this, if a flow already existed for pkts coming in eth1, if the packet came
back in eth2, it would use eth1's flow.
I'll dig out the patch if anyone is interested...
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2009-10-23 15:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 12:12 [PATCH] net: Fix RPF to work with policy routing jamal
2009-10-18 12:13 ` jamal
2009-10-23 4:49 ` David Miller
2009-10-23 6:30 ` Maciej Żenczykowski
2009-10-23 10:51 ` jamal
2009-10-23 15:34 ` Ben Greear [this message]
2009-10-23 22:40 ` jamal
2009-10-30 5:51 ` David Miller
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=4AE1CD19.8090901@candelatech.com \
--to=greearb@candelatech.com \
--cc=atis@mikrotik.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=hadi@cyberus.ca \
--cc=netdev@vger.kernel.org \
--cc=zenczykowski@gmail.com \
/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.