cURL / Mailing Lists / curl-library / Single Mail



From: Daniel Stenberg <>
Date: Tue, 24 Feb 2009 09:38:14 +0100 (CET)

On Tue, 24 Feb 2009, wrote:

> 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

This statement made me really curious. How would it restrict the bind to
somehow only be for incoming data?

I've snooped around in the code for Linux just now and I cannot see
that the above statement is exactly true. The *purpose* of that option may be
to regulate what incoming data to accept, but given my (admittedly quick)
glance over the code it is used for outgoing packets and thus it WILL have an
affect even in our use case.

Of course we could also just do some testing to see if this is the case or
not... :-)

Received on 2009-02-24