cURL / Mailing Lists / curl-library / Single Mail


RE: CURLOPT_LOCALPORT option broken ?!

From: Senthil Raja Velu <>
Date: Mon, 23 Feb 2009 23:07:42 -0800

OK, I will use this new code along with ares enabled. I may not be able
to test it today.

Just curious, I saw in your previous code you check for SO_BINDDEVICE
support. But as far as I know it is supported only in linux and not in
Solaris. Hence whether we have SO_BINDDEVICE or not in the code should
not affect in Solaris right.

Thank you for your continued support.

-----Original Message-----
[] On Behalf Of
Sent: Monday, February 23, 2009 7:51 PM
To: libcurl development
Subject: Re: CURLOPT_LOCALPORT option broken ?!


attached is a new version of the patch, I removed the SO_BINDDEVICE code
, as it is not possible to bind an outgoing connection to an interface.
SO_BINDTODEVICE is meant to serve for bind()&listen() only.

Subject: Behavior of SO_BINDTODEVICE
Date: Tuesday, November 11, 2008 - 6:09 am
( if you get ssl errors,

"Well, first of all, the BINDTODEVICE is not intended to regulate the
source of response IP Addresses. It only regulates which Incoming TCP
Connections are accepted. IP Communication still is processed by the IP
FIB (Cache)." - Bernd Eckenfels

Additionally, I improved the quality of the debug strings, hopefully
this will help nailing the solaris issue down.

Received on 2009-02-24