<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
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:SimSun;
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@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="font-family:"Arial","sans-serif"">Hello Thiago Macieira</span></p><p class="MsoNormal"><span style="font-family:"Arial","sans-serif""> </span></p><p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Please read my response for above subject.</span></p><p class="MsoNormal"><span style="font-family:"Arial","sans-serif""> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">First of all, don't use TCP.</span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><Elvis></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">For different machine I need use TCP.</span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Second, please read up on the recent case of exploit on Jeep cars. Hint: it </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">was caused by dbus-daemon used on TCP.</span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Third, 123456 is not a valid port number. That's probably why getaddrinfo is </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">failing.</span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><Elvis></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">This port 123456 is just one example. I Know getaddrinfo ai_flags usage for network socket.</span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">You know </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Uclibc define this 2 flags</span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""># define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */</span></p><p class="MsoNormal"><span style="font-family:"Arial","sans-serif""># define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose</span> <span style="font-family:"Arial","sans-serif"">returned address type.. */</span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">My concern, this file you already define </span><i><span style="font-family:"Arial","sans-serif"">AI_ADDRCONFIG = 0 not Linux standard in dbus-sysdeps-unix.c source code line 98.</span></i><span style="font-size:10.0pt;font-family:"Arial","sans-serif""></span></p><pre><i><span style="font-family:"Arial","sans-serif""> </span></i></pre><pre><i><span style="font-family:"Arial","sans-serif"">hints.ai_flags = AI_ADDRCONFIG | AI_PASSIVE; ==== > actually if AL_ADDRCONFIG is not 0x0020 but 0, this ai_flags still is AI_PASSIVE.</span></i></pre><pre><i><span style="font-family:"Arial","sans-serif""> </span></i></pre><pre><i><span style="font-family:"Arial","sans-serif"">If my understanding is wrong, please correct me.</span></i></pre><pre><i><span style="font-family:"Arial","sans-serif""> </span></i></pre><pre><i><span style="font-family:"Arial","sans-serif"">By the way, suppose if all the linux interface is not UP maybe not created at all. I think this getaddrinfo MUST failed with EAI_NONAME = -2.</span></i></pre><pre><i><span style="font-family:"Arial","sans-serif""> </span></i></pre><pre><i><span style="font-family:"Arial","sans-serif""> </span></i></pre><pre><i><span style="font-family:"Arial","sans-serif"">Thanks</span></i></pre><pre><i><span style="font-family:"Arial","sans-serif"">Elvis </span></i></pre><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span></p></div></body></html>