All of lore.kernel.org
 help / color / mirror / Atom feed
From: Devesh Agrawal <devesh.agrawal@gmail.com>
To: linux-net@vger.kernel.org, netdev@oss.sgi.com
Subject: How to route a skb to a particular oif, when the fib_lookup suggests another one.
Date: Sat, 26 Mar 2005 11:20:22 +0530	[thread overview]
Message-ID: <db01ab3505032521504ac85fcc@mail.gmail.com> (raw)
In-Reply-To: <db01ab3505032313517830af81@mail.gmail.com>

Hi,
I have to route a packet thru a particular output interface, however
my routing tables have two routes, that match it : one to eth0 and one
to wlan0, with the eth0 being chosen as it is more specific.  I am
using ip_route_output_key, with fl->oif = index of device I want this
packet to go (=wlan0).
However, in the ip_route_output_slow I found that even when oif is not
0, you get a valid dev_out, however when the fib_lookup succeeds, you
merely free this old dev_out, and assign dev_out to the res.dev (ie
the one found out by the fib_lookup),
So this means that even if I specify the oif, the packet will still
get routed to eth0.
Am I correct, or is there something I am missing. Also I am setting
tos bit RTO_ONLINK .
Please help me. I am quite perplexed by this.
Sincerely,
--
Devesh Agrawal

       reply	other threads:[~2005-03-26  5:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <db01ab3505032313427fcd144f@mail.gmail.com>
     [not found] ` <db01ab3505032313517830af81@mail.gmail.com>
2005-03-26  5:50   ` Devesh Agrawal [this message]
     [not found]     ` <537f59d105032609144e0ac813@mail.gmail.com>
2005-03-27  2:34       ` How to route a skb to a particular oif, when the fib_lookup suggests another one Devesh Agrawal

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=db01ab3505032521504ac85fcc@mail.gmail.com \
    --to=devesh.agrawal@gmail.com \
    --cc=linux-net@vger.kernel.org \
    --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 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.