On Tue, 04.11.14 21:42, Tomasz Torcz (to...@pipebreaker.pl) wrote:

> On Tue, Nov 04, 2014 at 08:56:48PM +0100, Jan Včelák wrote:
> > Hi!
> > 
> > > > OK. I will remove the syslog. But I will have to keep network.target for
> > > > now as we support non-Linux systems as well. Adding support for rtnl or
> > > > IP_FREEBIND would mean duplicating a lot of code... probably.
> > > 
> > > Note that invoking IP_FREEBIND is just a single setsockopt() line...
> > 
> > You are right. We enabled IP_FREEBIND after all. (And we also added 
> > IP_BINDANY 
> > and IPV6_BINDANY on FreeBSD to achieve the same behavior.)
> > 
> > On the other hand, we cannot give the administrator proper feedback when 
> > the 
> > daemon is configured incorrectly.
> > 
> 
>   If you need, you can first try binding without IP_FREEBIND. If it fails,
> you can print "Configured address (xxx) not available yet", enable IP_FREEBIND
> and call bind() again.

I'd recommend this, too. I'd check for the right errno first though,
given that there might be other reasons why bind() could fail, and one
shouldn't confuse the user with misleadin error messages.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to