netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Gabriel Paues <gabriel@sics.se>
Cc: netdev@oss.sgi.com
Subject: Re: dst_entry and friends
Date: Mon, 29 Apr 2002 16:55:03 +0200	[thread overview]
Message-ID: <20020429165503.A14300@wotan.suse.de> (raw)
In-Reply-To: <3CCD1D18.F33EAEE8@sics.se>

On Mon, Apr 29, 2002 at 12:14:48PM +0200, Gabriel Paues wrote:
> My idea is to use netfilter and in the PRE_ROUTING-hook check the flowlabel for
> values other than zero, and set the dst_entry in the skbuff to something with
> its input-function to ip6_output. I dont know if I should allocate this
> fabricated dst_entry myself or if I should scan the list of already existing
> ones. By setting the input-function-pointer to ip6_output i will skip the whole

That won't work for most networking protocols, which always route themselves.
All you can do is to drop the route later in netfilter and reroute/resubmit

Still your concept will fail for path mtu discovery for example, which
assumes that an incoming ICMP can be matched to an dst_entry in the routing
cache to communicate the new pmtu. 

It may be easier to just change ip_route_output(). Routes are often 
cached however, so you would need to make sure that the caches 
are invalidated when the flow label changes (e.g. by setting dst->obsolete) 

Overall the concept does not look very promising however. I guess to make 
the labels unique you'll have to add srcip/dstip to your private tables too,
and that means that the label lookup is exactly equivalent in cost to 
a normal routing cache lookup - even if you didn't need the src/dst it 
probably wouldn't be much cheaper.

-Andi

  reply	other threads:[~2002-04-29 14:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-26 12:55 route cache GC monitoring Robert Olsson
2002-04-26 15:25 ` kuznet
2002-04-29 10:14 ` dst_entry and friends Gabriel Paues
2002-04-29 14:55   ` Andi Kleen [this message]
2002-05-09  9:35 ` route cache GC monitoring David S. 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=20020429165503.A14300@wotan.suse.de \
    --to=ak@suse.de \
    --cc=gabriel@sics.se \
    --cc=netdev@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).