One question about getaddrinfo invoked in _dbus_listen_tcp_socket

Elvis Qin <elvis.qin-dY08KVG/lbpWk0Htik3J/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
*Hello Thiago Macieira*



*Really appreciate your feedback and suggestion about TCP usages.  I will
pay attention this. *



*What does you mean “No, it isn’t”. you mean current the A_ADDRCONFIG will
pass to uclibc API * *getaddrinfo(host, port, &hints, &ai) with 0x0020 |
0x0001 ?*



>* *hints.ai_flags = AI_ADDRCONFIG | AI_PASSIVE;   ==== > actually if*

>* AL_ADDRCONFIG is not 0x0020 but 0, this ai_flags still is AI_PASSIVE.**

> No, it isn't.



*Last information for you reference, after changing this line to
**hints.ai_flags
= AI_PASSIVE  delete AI_ADDCONFIG, **It can fix my case successfully(mean
launched dbus-deamon very early before network interface is created and
assign IPv4 or IPv6 address.)*

*Even I kill it then launch again in system, it still work fine.  Even I
test it in my X86 Ubuntu/Fedora distribution.*



*So If you think that we can change this line to hints.ai_flags =
AI_PASSIVE in this function in future release. In this way, the dbus-daemon
can be used in X86/ARM/MIPS embedded network devices. *





*Thanks*

*Elvis*

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.