From: Evgeniy Polyakov <zbr@ioremap.net>
To: Yavor Goulishev <yavor@simplifymedia.com>
Cc: David Miller <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [Patch] Establishing more than 64K outgoing TCP connections
Date: Sat, 8 Nov 2008 02:04:00 +0300 [thread overview]
Message-ID: <20081107230400.GA28576@ioremap.net> (raw)
In-Reply-To: <241CE5A1B2AFFA4987A663380D74C0BB3FFDA39997@MBX73.ad2.softcom.biz>
On Fri, Nov 07, 2008 at 05:37:33PM -0500, Yavor Goulishev (yavor@simplifymedia.com) wrote:
> It is not the entire table. It is O(number_of_local_interfaces).
> In general, if you have more then one interface you either need to flatten the
> ip/port space and have a smart way to access it in O(1) or you have the O(number_of_local_interfaces).
> The case of ANY can be solved with special ANY interface. So you can get O(1) even there, but the space will grow.
As was already pointed, you can use SO_BINDTODEVICE for this purpose.
Next solution you may think of is already implemented as SO_REUSEADDR
socket option.
--
Evgeniy Polyakov
next prev parent reply other threads:[~2008-11-07 23:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-28 21:06 [Patch] Establishing more than 64K outgoing TCP connections Yavor Goulishev
2008-11-02 4:15 ` David Miller
2008-11-07 6:12 ` Yavor Goulishev
2008-11-07 6:23 ` David Miller
2008-11-07 6:57 ` Yavor Goulishev
2008-11-07 7:04 ` David Miller
2008-11-07 7:15 ` Yavor Goulishev
2008-11-07 7:30 ` David Miller
2008-11-07 7:40 ` Yavor Goulishev
2008-11-07 8:45 ` Evgeniy Polyakov
2008-11-07 16:38 ` Yavor Goulishev
2008-11-07 17:25 ` Evgeniy Polyakov
2008-11-07 19:54 ` David Miller
2008-11-07 22:37 ` Yavor Goulishev
2008-11-07 23:04 ` Evgeniy Polyakov [this message]
2008-11-07 8:36 ` Rémi Denis-Courmont
2008-11-07 15:56 ` Yavor Goulishev
2008-11-07 16:23 ` Eric Dumazet
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=20081107230400.GA28576@ioremap.net \
--to=zbr@ioremap.net \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=yavor@simplifymedia.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).