<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span style="color:#1f497d">Hello expert</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">This is Elvis from broadcom. Now I meet one problem about dbus-dameon which prefer adding more listen on TCP port, it will meet below error “Failed to start message bus: Failed to lookup host/port: "*:123456": Name or service not known (-2)”</span></p><p class="MsoNormal" style="text-indent:9.6pt"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">After trace, I know it is for getaddreinfo error. Would you explain why here we use below 2 flags and <b>AI_ADDRCONFIG = 0</b>? </span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">Really look forward to your response. </span></p><p class="MsoNormal" style="text-indent:9.6pt"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">dbus/dbus-sysdeps-unix.c</span></p><p class="MsoNormal"> </p><p class="MsoNormal" style="text-indent:9.6pt"><b> hints.ai_flags = AI_ADDRCONFIG | AI_PASSIVE; ==== > Why here we put AI_ADDRCONFIG, any purpose? </b></p><p class="MsoNormal"> if ((res = getaddrinfo(host, port, &hints, &ai)) != 0 || !ai)</p><p class="MsoNormal"> {</p><p class="MsoNormal"> dbus_set_error (error,</p><p class="MsoNormal"> _dbus_error_from_errno (errno),</p><p class="MsoNormal"> "Failed to lookup host/port: \"%s:%s\": %s (%d)",</p><p class="MsoNormal"> host ? host : "*", port, gai_strerror(res), res);</p><p class="MsoNormal"> goto failed;</p><p class="MsoNormal" style="text-indent:9.6pt">}</p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">Thanks</span></p><p class="MsoNormal"><span style="color:#1f497d">Elvis</span></p></div></body></html>