<div dir="ltr">That's very helpful info. Thanks!<div><br></div><div>So getsockname() and getpeername() returns the initial subflow, what's the API to get other subflows?</div><div><br></div><div style>Edit: found my answer: <a href="https://datatracker.ietf.org/doc/rfc6897/?include_text=1">https://datatracker.ietf.org/doc/rfc6897/?include_text=1</a> by using setsockopt() and getsockopt()</div>

<div style><br></div><div style><div>The functions getpeername() and getsockname() SHOULD also always</div><div>   return the addresses of the first subflow if the socket is used by an</div><div>   MPTCP-aware application, in order to be consistent with MPTCP-unaware</div>

<div>   applications, and, e.g., also with the Stream Control Transmission</div><div>   Protocol (SCTP).  Instead of getpeername() or getsockname(),</div><div>   MPTCP-aware applications can use new API calls, described in</div>

<div>   Section 5.3, in order to retrieve the full list of address pairs for</div><div>   the subflows in use.</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Fri, Jan 3, 2014 at 9:43 AM, Lukas Tribus <span dir="ltr"><<a href="mailto:luky-37@hotmail.com" target="_blank">luky-37@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


Hi,<br>
<div><br>
<br>
> Since iOS7 supports TCP Multipath now, I think more and more devices<br>
> will start support it.<br>
<br>
</div>Not if the servers don't support it.<br>
<br>
Apple pushed for a specific reason:<br>
To avoid having a broken TCP session when the IP address of the handheld<br>
changes, which would interrupt Apple's Siri.<br>
<br>
But TCP multipath is still not supported by linux mainline and I don't<br>
see efforts on linux-netdev to include it anytime soon. I understand there<br>
is a maintained and uptodate patchset available, but that doesn't mean<br>
it will be included in the kernel soon.<br>
<div><br>
<br>
<br>
> But TCP Multipath allows many client IPs connected to the same server,<br>
> suppose Nginx in this case, how would access_log record all of the IPs?<br>
<br>
</div>The application will always see the first IP, which connected to the server,<br>
as per:<br>
<a href="http://lwn.net/Articles/545862/" target="_blank">http://lwn.net/Articles/545862/</a><br>
<br>
<br>
<br>
<br>
Regards,<br>
<br>
Lukas<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div></div>