Re: [PATCH] bind non local ip on FreeBSD

2010-11-23 Thread joris dedieu
2010/11/22 joris dedieu joris.ded...@gmail.com: Hi list, FreeBSD (and maybe other BSD) use IP_BINDANY flag to permite bind() to bind a non local ip (ie an ip which is not defined in an interface). In most case, you will use carp to do so, but has I needed it without carp, I make a little

Re: [PATCH] bind non local ip on FreeBSD

2010-11-23 Thread Alexandre Snarskii
On Mon, Nov 22, 2010 at 02:03:42PM +0100, joris dedieu wrote: Hi list, FreeBSD (and maybe other BSD) use IP_BINDANY flag to permite bind() to bind a non local ip Please note that this flag is available only since FreeBSD 8, so your patch will break haproxy builds on older versions, like

Re: [PATCH] bind non local ip on FreeBSD

2010-11-23 Thread Willy Tarreau
On Tue, Nov 23, 2010 at 05:28:26PM +0300, Alexandre Snarskii wrote: On Mon, Nov 22, 2010 at 02:03:42PM +0100, joris dedieu wrote: Hi list, FreeBSD (and maybe other BSD) use IP_BINDANY flag to permite bind() to bind a non local ip Please note that this flag is available only since FreeBSD

[PATCH] bind non local ip on FreeBSD

2010-11-22 Thread joris dedieu
Hi list, FreeBSD (and maybe other BSD) use IP_BINDANY flag to permite bind() to bind a non local ip (ie an ip which is not defined in an interface). In most case, you will use carp to do so, but has I needed it without carp, I make a little quick and dirty patch on 1.4.9 version. If some here