<?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 Routing problem over two different subnet in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Routing-problem-over-two-different-subnet/m-p/479099#M15748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, I've already opened a post at links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2023" data-containertype="14" data-objectid="385983" data-objecttype="1" href="https://community.nxp.com/thread/385983"&gt;https://community.freescale.com/thread/385983&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2023" data-containertype="14" data-objectid="385788" data-objecttype="1" href="https://community.nxp.com/thread/385788"&gt;https://community.freescale.com/thread/385788&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I open new discussion because I can't add new answers, I can only create new post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to solve my problem where the ping anomaly is only the most evident and the most simple problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that in ICMP_service routine, in icmp.c file, at ICMPTYPE_REDIRECT switch case, condition IP_is_gate(source, origdest) returns 1 when the server (192.168.76.1) sends ICMP packet with message redirect.&lt;/P&gt;&lt;P&gt;ICMP redirect message says at RTCS that it can send our message directly to my PC (192.168.67.87), but my PC is in different subnet, and I think this event causes problems at routing table of RTCS stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use MQX 4.0 on K60, but it seems to me that MQX 4.2 doesn't fix this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the extract of the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else&amp;nbsp; if(IP_is_gate(source, origdest)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms.address = gateway;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms.network = origdest;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms.netmask = 0xFFFFFFFFL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms.locmask = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTCSCMD_internal(parms, IPIF_gate_add_redirect);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found if I add this condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else&amp;nbsp; if(origdest!=0xC0A84357 &amp;amp;&amp;amp; IP_is_gate(source, origdest)) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the ping and my other functions always run properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the RTCS should discard destinations if they're different from our subnet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to add a correct fix for my problem?&lt;/P&gt;&lt;P&gt;Do you agree with what I'm saying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;bye,&lt;/P&gt;&lt;P&gt;Michele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2016 07:53:17 GMT</pubDate>
    <dc:creator>gianmichelepasi</dc:creator>
    <dc:date>2016-04-26T07:53:17Z</dc:date>
    <item>
      <title>Routing problem over two different subnet</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Routing-problem-over-two-different-subnet/m-p/479099#M15748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, I've already opened a post at links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2023" data-containertype="14" data-objectid="385983" data-objecttype="1" href="https://community.nxp.com/thread/385983"&gt;https://community.freescale.com/thread/385983&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2023" data-containertype="14" data-objectid="385788" data-objecttype="1" href="https://community.nxp.com/thread/385788"&gt;https://community.freescale.com/thread/385788&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I open new discussion because I can't add new answers, I can only create new post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to solve my problem where the ping anomaly is only the most evident and the most simple problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that in ICMP_service routine, in icmp.c file, at ICMPTYPE_REDIRECT switch case, condition IP_is_gate(source, origdest) returns 1 when the server (192.168.76.1) sends ICMP packet with message redirect.&lt;/P&gt;&lt;P&gt;ICMP redirect message says at RTCS that it can send our message directly to my PC (192.168.67.87), but my PC is in different subnet, and I think this event causes problems at routing table of RTCS stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use MQX 4.0 on K60, but it seems to me that MQX 4.2 doesn't fix this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the extract of the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else&amp;nbsp; if(IP_is_gate(source, origdest)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms.address = gateway;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms.network = origdest;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms.netmask = 0xFFFFFFFFL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms.locmask = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTCSCMD_internal(parms, IPIF_gate_add_redirect);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found if I add this condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else&amp;nbsp; if(origdest!=0xC0A84357 &amp;amp;&amp;amp; IP_is_gate(source, origdest)) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the ping and my other functions always run properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the RTCS should discard destinations if they're different from our subnet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to add a correct fix for my problem?&lt;/P&gt;&lt;P&gt;Do you agree with what I'm saying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;bye,&lt;/P&gt;&lt;P&gt;Michele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 07:53:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Routing-problem-over-two-different-subnet/m-p/479099#M15748</guid>
      <dc:creator>gianmichelepasi</dc:creator>
      <dc:date>2016-04-26T07:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Routing problem over two different subnet</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Routing-problem-over-two-different-subnet/m-p/479100#M15749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michele,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below thread, I hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/115022"&gt;how to set/change gateway setting or make it accept connection from different subnet&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &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>Tue, 03 May 2016 00:59:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Routing-problem-over-two-different-subnet/m-p/479100#M15749</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-05-03T00:59:26Z</dc:date>
    </item>
  </channel>
</rss>

