<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: bug in MQX getaddrinfo() with IPv6 enabled? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370316#M12242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, can't compile....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Y:\MQX\rtcs\source\if\getaddrinfo.c|640|59|1|19503|1)&lt;/P&gt;&lt;P&gt;=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((ip_addr = RTCS_hosts_get_addr(hostname, family)) != NULL)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;illegal implicit conversion from 'int' to&lt;/P&gt;&lt;P&gt;&amp;gt;'void *'&lt;/P&gt;&lt;P&gt;(Y:\MQX\rtcs\source\if\getaddrinfo.c|674|64|1|20598|1)&lt;/P&gt;&lt;P&gt;=e, '.') == NULL) &amp;amp;&amp;amp; ((dns_suffix = RTCS_get_primary_dns_suffix()) != NULL ))&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;illegal implicit conversion from 'int' to&lt;/P&gt;&lt;P&gt;&amp;gt;'const char *'&lt;/P&gt;&lt;P&gt;(Y:\\MQX\rtcs\source\if\getaddrinfo.c|700|53|1|21815|1)&lt;/P&gt;&lt;P&gt;=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dns_params.name_to_resolve = hostname;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Host name to resolve (null-terminated string). */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;illegal implicit conversion from 'const char *' to&lt;/P&gt;&lt;P&gt;&amp;gt;'char *'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems I'm lacking some new function defs, such as RTCS_hosts_get_addr()&amp;nbsp; and RTCS_get_primary_dns_suffix() ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2014 16:51:56 GMT</pubDate>
    <dc:creator>m_bach</dc:creator>
    <dc:date>2014-11-05T16:51:56Z</dc:date>
    <item>
      <title>bug in MQX getaddrinfo() with IPv6 enabled?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370312#M12238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I using MQX with IPv6, so enabled RTCSCFG_ENABLE_IP6&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I'm using get getaddrinfo() with an FQDN, getaddrinfo() always fails if my DNS Server does not reply AAAA queries...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whats happening:&lt;/P&gt;&lt;P&gt;- getaddrinfo() sends the 'A' record query to my DNS server, and collects the qualified answer. Everything is fine.&lt;/P&gt;&lt;P&gt;- next in line due to NET_ORDER is the INET6 family query&lt;/P&gt;&lt;P&gt;- getaddrinfo() then sends a subsequent 'AAAA' query, which is not fully responded by my DNS Server for this host.&lt;/P&gt;&lt;P&gt;- then getaddrinfo() returns error(4), which is odd because the 'A' record was replied fine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I patched getaddrinfo.c accoringly, and want to know what you think about this.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers, Martin&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338713"&gt;getaddrinfo.c.patch.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 15:50:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370312#M12238</guid>
      <dc:creator>m_bach</dc:creator>
      <dc:date>2014-10-31T15:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: bug in MQX getaddrinfo() with IPv6 enabled?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370313#M12239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is known issue. It was already fixed on development branch.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;In attachment you can find latest version of getaddrinfo.c file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:02:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370313#M12239</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2014-11-03T16:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: bug in MQX getaddrinfo() with IPv6 enabled?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370314#M12240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RadekS, thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just checking your changes. Which is a little hard, because there is a change in tabs/spaces style. I have to ignore whitespace changes ...&lt;/P&gt;&lt;P&gt;Is there a way to follow the MQX developpent branch? Any public source code repository available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:04:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370314#M12240</guid>
      <dc:creator>m_bach</dc:creator>
      <dc:date>2014-11-05T16:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: bug in MQX getaddrinfo() with IPv6 enabled?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370315#M12241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, unfortunately currently it is not possible. MQX is released only in periodic intervals. &lt;/P&gt;&lt;P&gt;You are right, attached getaddrinfo.c contains more changes and some of these changes don’t need be anyway connected to this bug. It is just snippet from current source code.&lt;/P&gt;&lt;P&gt;You should take it only as inspiration…&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:45:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370315#M12241</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2014-11-05T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: bug in MQX getaddrinfo() with IPv6 enabled?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370316#M12242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, can't compile....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Y:\MQX\rtcs\source\if\getaddrinfo.c|640|59|1|19503|1)&lt;/P&gt;&lt;P&gt;=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((ip_addr = RTCS_hosts_get_addr(hostname, family)) != NULL)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;illegal implicit conversion from 'int' to&lt;/P&gt;&lt;P&gt;&amp;gt;'void *'&lt;/P&gt;&lt;P&gt;(Y:\MQX\rtcs\source\if\getaddrinfo.c|674|64|1|20598|1)&lt;/P&gt;&lt;P&gt;=e, '.') == NULL) &amp;amp;&amp;amp; ((dns_suffix = RTCS_get_primary_dns_suffix()) != NULL ))&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;illegal implicit conversion from 'int' to&lt;/P&gt;&lt;P&gt;&amp;gt;'const char *'&lt;/P&gt;&lt;P&gt;(Y:\\MQX\rtcs\source\if\getaddrinfo.c|700|53|1|21815|1)&lt;/P&gt;&lt;P&gt;=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dns_params.name_to_resolve = hostname;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Host name to resolve (null-terminated string). */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;illegal implicit conversion from 'const char *' to&lt;/P&gt;&lt;P&gt;&amp;gt;'char *'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems I'm lacking some new function defs, such as RTCS_hosts_get_addr()&amp;nbsp; and RTCS_get_primary_dns_suffix() ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:51:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370316#M12242</guid>
      <dc:creator>m_bach</dc:creator>
      <dc:date>2014-11-05T16:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: bug in MQX getaddrinfo() with IPv6 enabled?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370317#M12243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, you got it :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-getaddrinfo-with-IPv6-enabled/m-p/370317#M12243</guid>
      <dc:creator>m_bach</dc:creator>
      <dc:date>2014-11-05T16:52:31Z</dc:date>
    </item>
  </channel>
</rss>

