cURL / Mailing Lists / curl-library / Single Mail


Re: [Fwd: Patch for SO_BINDTODEVICE]

From: Ben Greear <>
Date: Mon, 23 Feb 2004 10:17:27 -0800

Daniel Stenberg wrote:
> On Thu, 12 Feb 2004, Ben Greear wrote:
>>>* SO_BINDTODEVICE failed, device eth0 errno 1, error: Operation not permitted
>>I should definately fix the strlen problem. It very well may not be
>>possible to bind to loopback, but for eth0, it should work if you are root.
> You're right of course. Once I retried as root it worked fine...

As an update, I patched apache to use the bind-to-device system
call also, and was able to test CURL against it. The patch
seems to work as I had hoped.

Can you let me know if/when this patch goes into CuRL?
(Not a big problem either way since I have my local copy
updated anyway.)


Ben Greear <>
Candela Technologies Inc
Received on 2004-02-23