Re: Introduction - pre patch submission

From: Robert Marcano <robert_at_marcanoonline.com>
Date: Sun, 02 May 2010 22:04:57 -0430

On 04/30/2010 10:42 PM, Amos Jeffries wrote:
> Robert Marcano wrote:
>>
>> - Make tcp_outgoing_address be able to use an interface name and not
>> only a fixed ip address, this solve a problem we have with some setups
>> where we allow to acces to the internet with a dedicated ISP for a
>> group of users, and that ISP is using a dynamic ip (we currently solve
>> this with a scripting hack regenerating the configuration file)
>>
>
> tcp_outgoing_address is absolutely not the right place for this. A
> separate tcp_outgoing_interface will be needed at minimum.
>
> I'm interested in hearing how you propose to make this work.
>
> You will face the problems of:
> * how to identify the kernel ID of the interface name configured.
> * how to pass the interface ID back using the socket API.
>

This is done normally on POSIX applications iterating over the returned
list from getifaddrs

On Windows, the same idea but using GetAdaptersAddresses looking for the
AdapterName

tcp_outgoing_interface will need a parameter in order to indicate which
address to use ipv4, ipv6 or both

> Amos
Received on Mon May 03 2010 - 02:35:11 MDT

This archive was generated by hypermail 2.2.0 : Mon May 03 2010 - 12:00:06 MDT