| To: | linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
|---|---|
| Subject: | How to route a skb to a particular oif, when the fib_lookup suggests another one. |
| From: | Devesh Agrawal <devesh.agrawal@xxxxxxxxx> |
| Date: | Sat, 26 Mar 2005 11:20:22 +0530 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=CY0mzi6gXa+q4RC/1LVFLUy4HtrpXBJKOFhp0vi51u/qQ5eVcyYrtm0gzfG1OObMYtnIdiTMakzIehEVkKDk7b1dhwzJp7/e6RZbocqo+sWQPIZVwRHmwKMNtWLKnK0v/FSIIA9qCDM6ef9kfGaDlA2NSb97FlqmQJ8UBRxzlk8= |
| In-reply-to: | <db01ab3505032313517830af81@mail.gmail.com> |
| References: | <db01ab3505032313427fcd144f@mail.gmail.com> <db01ab3505032313517830af81@mail.gmail.com> |
| Reply-to: | Devesh Agrawal <devesh.agrawal@xxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [IPSEC] Make IPCOMP more resilient, James Morris |
|---|---|
| Next by Date: | Re: [PATCH] Conntrack leak with raw sockets, Phil Oester |
| Previous by Thread: | [IPSEC] Make IPCOMP more resilient, Herbert Xu |
| Next by Thread: | Re: How to route a skb to a particular oif, when the fib_lookup suggests another one., Devesh Agrawal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |