Re: Multiple source IP addresses & port assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 27 Aug 2004 08:19:35 +1000
Martijn van Oosterhout <kleptog@svana.org> wrote:

> If you're connecting to different places, you might be able to use
> SO_REUSEPORT. That avoids the TIME_WAIT problem for incoming
> connections anyway....
> 
> After all, for TCP you're not required to have unique addr:port on your
> end, just as long as the remote end is different...

SO_REUSEPORT only works if you bind explicitly.

Henrik wants:

1) Automatically rotate through a set of source addresses
   on each connect()

2) Allow automatic local port selection to use existing ports
   when source addresses differ.

#2 is blocked by how tcp_{v4,v6}_get_port behave.  #1 would be
a new feature to add to the routing code.

He doesn't want to have to explicitly bind to a particular saddr/
sport in order to get this but currently he has to.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux