cURL / Mailing Lists / curl-library / Single Mail


Re: [PATCH] curl: Support CURLOPT_LOCALADDR to bind to local address.

From: Ben Greear <>
Date: Fri, 01 Feb 2013 15:09:58 -0800

On 01/16/2013 01:45 PM, Ben Greear wrote:
> On 01/16/2013 01:14 PM, Daniel Stenberg wrote:
>> On Wed, 16 Jan 2013, wrote:
>>> This allows a user to bind to both an interface (with CURLOPT_INTERFACE) and a local IP address. In doing so, it allows the user to work-around some serious
>>> performance issues on machines with lots of virtual interfaces because curl no longer has to scan all interfaces each time it makes a connection.
>> If we want to bind to a specific IP address instead of a specific interface (like when we use the "host!" prefix), doesn't it already skip the lengthy scan of
>> all the interfaces?
> Yes, it would...but then I can't get the SO_BINDTODEVICE logic to be active....

Hello Daniel!

Please let me know if this patch is acceptable for upstream or not.

I need to do some more hacking on curl and would like to resolve this
one way or another before I add too many other patches on top.


Ben Greear <>
Candela Technologies Inc
List admin:
Received on 2013-02-02