From: Shan Wei <shanwei@cn.fujitsu.com>
To: linux-sctp@vger.kernel.org
Subject: Re: Source address selection with secondary interface address
Date: Thu, 25 Nov 2010 02:11:06 +0000 [thread overview]
Message-ID: <4CEDC5BA.1030202@cn.fujitsu.com> (raw)
In-Reply-To: <79C4240C13B4C84B910850B96B1B431201C276DA@DEMUEXC035.nsn-intra.net>
Kiss, Zoltan (NSN - HU/Budapest) wrote, at 11/24/2010 11:18 PM:
> Hi,
>
> In this routing entry:
>
> 10.0.0.36/28 via 10.0.0.153 dev vlan2
>
> .153 is the nexthop, not the source IP! My theory that when it queries this route, it will give back implicitly the primary IP of that interface, which is .156, and that's why it isn't succeeded.
You'd better to confirm it.
>
> About the next step, so is this a correct statement?:
>
> sctp_v4_get_dst() is querying the routing table with every local address (.146 and .154, in this order) of that association as SRC address, and if it receives ANY kind of valid route with this condition (only SRC is defined), it will use that SRC for the packet (right the first query will succeed with .146), BUT it won't change the outgoing interface according to this routing entry (OR it change it in the skb, but later IP will overwrite it?)
Isn't [HB ACK] send out from vlan1?
--
Best Regards
-----
Shan Wei
prev parent reply other threads:[~2010-11-25 2:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-17 16:22 Source address selection with secondary interface address Kiss, Zoltan (NSN - HU/Budapest)
2010-11-23 15:24 ` Kiss, Zoltan (NSN - HU/Budapest)
2010-11-24 7:06 ` Shan Wei
2010-11-24 9:03 ` Shan Wei
2010-11-24 15:18 ` Kiss, Zoltan (NSN - HU/Budapest)
2010-11-25 2:11 ` Shan Wei [this message]
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=4CEDC5BA.1030202@cn.fujitsu.com \
--to=shanwei@cn.fujitsu.com \
--cc=linux-sctp@vger.kernel.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.