cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: CURLOPT_LOCALPORT option broken ?!

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

Hi,
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.
Senthil.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of
koettermarkus_at_gmx.de
Sent: Monday, February 23, 2009 7:51 PM
To: libcurl development
Subject: Re: CURLOPT_LOCALPORT option broken ?!

Hi,

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

https://kerneltrap.org/mailarchive/linux-net/2008/11/11/4058724/thread
( if you get ssl errors,
http://209.85.129.132/search?q=cache:ufmrJgCzFe0J:https://kerneltrap.org
/mailarchive/linux-net/2008/11/11/4058724/thread
)

"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.

MfG
Markus
Received on 2009-02-24