dbus-daemon doesn't work when listen on TCP and system has no configured interfaces
Submitted by Pavel Strashkin
Assigned to D-Bus Maintainers
Description
I'm on OpenSolaris, but sure 100% that it can be reproduced on any OS.
If you don't have configured network interfaces in the system (i.e. interfaces without IP address, except loopback) and want run dbus-daemon in TCP mode (tcp:host=*,port=3000) - it will exit with error "Failed to lookup host/port: node name or service name not known".
The reason is AI_ADDRCONFIG flag. If it set, then getaddrinfo returns E_NONAME because when that flag is set - loopback interfaces wil not be in result list I think it's bug in dbus and that flag should be removed from dbus_listen_tcp_socket code. AI_ADDRCONFIG described in http://www.faqs.org/rfcs/rfc3493.html That flag make sence (but i'm not sure) only in _dbus_connect_tcp_socket, but not in _dbus_listen_tcp_socket.
Version: 1.5