<?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>MQX Software SolutionsのトピックRe: DHCP problem with some routers</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219353#M5711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;error = ipcfg_bind_dhcp_wait(...);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (error) &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("\nDHCP boot failed, error = %x.", error);&lt;/P&gt;&lt;P&gt;&amp;nbsp; return;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the error in your case ?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2012 10:19:01 GMT</pubDate>
    <dc:creator>Martin_</dc:creator>
    <dc:date>2012-10-19T10:19:01Z</dc:date>
    <item>
      <title>DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219348#M5706</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've detected that the DHCP functionality doesn't work with all routers. For example, the basic application that is created with all new MQX projects in Codewarrior, works correctly at my home. But the DHCP function is not working at my office.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for in the forum, I've found that some people is having this same problem. But there's no helpful answers to fix this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 07:37:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219348#M5706</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2012-10-16T07:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219349#M5707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which Freescale MQX version do you use ?&lt;/P&gt;&lt;P&gt;Can you post communication log for network protocol analyzer (Wireshark) between the DHCP server and MQX DHCP client ? Which RTCS function is failing and what is the return code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 11:50:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219349#M5707</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2012-10-18T11:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219350#M5708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your interest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well. I'm using MQX 3.7, and the function i'm using is the same as the basic application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error = ipcfg_bind_dhcp_wait(IPCFG_default_enet_device, 1, &amp;amp;ip_data);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached file, you can see the communication log using Wireshark. I'm able to see the request from MQX to my router, but I'm not able to see the replies of the router to my board: I don't know how to see this replies. Anyway, in the backend of my router, I'm able to see it is being received the DHCP packets, and the router is sending replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 15:59:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219350#M5708</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2012-10-18T15:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219351#M5709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In log there are only outbound DHCP messages from client to server.&lt;/P&gt;&lt;P&gt;It would be useful to see also DHCP server messages from server to client to debug this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, we can see DHCPDECLINEs from MQX dhcp client. Quickly searching on internet:&lt;/P&gt;&lt;P&gt;&amp;lt;--&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.helpline4it.com/encyclopedia-210.html"&gt;http://www.helpline4it.com/encyclopedia-210.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;DHCP Decline Message (DHCPDECLINE)&lt;/P&gt;&lt;P&gt;A message sent by a DHCP client to the DHCP server to decline the offer of an IP address on the network. This message is used when the client detects a potential conflict because the IP address is found to be already in use on the network. The DHCP decline message name is DHCPDECLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.freesoft.org/CIE/RFC/2131/25.htm"&gt;http://www.freesoft.org/CIE/RFC/2131/25.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If the server receives a DHCPDECLINE message, the client has discovered through some other means that the suggested network address is already in use. The server MUST mark the network address as not available and SHOULD notify the local system administrator of a possible configuration problem.&lt;/P&gt;&lt;P&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 3 cases when MQX dhcp client sends DHCPDECLINE&lt;/P&gt;&lt;P&gt;-the offered IP is already in use (checked by ARP)&lt;/P&gt;&lt;P&gt;-server id option is not valid (incoming DHCP packet not valid)&lt;/P&gt;&lt;P&gt;-message type option is not valid (incoming DHCP packet not valid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should discuss with your system administrator the rules the dhcp server is using to to offer IP to clients.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 05:52:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219351#M5709</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2012-10-19T05:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219352#M5710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I agree with you that the messages from the server to the client would be useful to debug this problem, but I haven't been able to scan these messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I can tell you, is that the router is working ok. This is the log in the router refering to this DHCP problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oct 19, 2012 8:18:56 AM com.teldat.tr69.osconfig.linux.dhcp.LinuxDHCPConfig external&lt;/P&gt;&lt;P&gt;INFO: New binding: ifc br1, ip &lt;STRONG&gt;192.168.1.114&lt;/STRONG&gt;, lease 86400, mac C0A801370102, hostname , vendorId _global_, clientId C0:A8:01:37:01:02, manufacturerOUI , serialNumber , productClass &lt;/P&gt;&lt;P&gt;Oct 19, 2012 8:19:01 AM com.teldat.tr69.osconfig.linux.dhcp.LinuxDHCPConfig external&lt;/P&gt;&lt;P&gt;INFO: New binding: ifc br1, ip &lt;STRONG&gt;192.168.1.115&lt;/STRONG&gt;, lease 86400, mac C0A801370102, hostname , vendorId _global_, clientId C0:A8:01:37:01:02, manufacturerOUI , serialNumber , productClass &lt;/P&gt;&lt;P&gt;Oct 19, 2012 8:19:09 AM com.teldat.tr69.osconfig.linux.dhcp.LinuxDHCPConfig external&lt;/P&gt;&lt;P&gt;INFO: New binding: ifc br1, ip &lt;STRONG&gt;192.168.1.116&lt;/STRONG&gt;, lease 86400, mac C0A801370102, hostname , vendorId _global_, clientId C0:A8:01:37:01:02, manufacturerOUI , serialNumber , productClass &lt;/P&gt;&lt;P&gt;Oct 19, 2012 8:19:25 AM com.teldat.tr69.osconfig.linux.dhcp.LinuxDHCPConfig external&lt;/P&gt;&lt;P&gt;INFO: New binding: ifc br1, ip &lt;STRONG&gt;192.168.1.117&lt;/STRONG&gt;, lease 86400, mac C0A801370102, hostname , vendorId _global_, clientId C0:A8:01:37:01:02, manufacturerOUI , serialNumber , productClass&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;All the IPs the router is assigning are available in our network.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Do you have any other suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Thanks for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 08:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219352#M5710</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2012-10-19T08:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219353#M5711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;error = ipcfg_bind_dhcp_wait(...);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (error) &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("\nDHCP boot failed, error = %x.", error);&lt;/P&gt;&lt;P&gt;&amp;nbsp; return;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the error in your case ?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 10:19:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219353#M5711</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2012-10-19T10:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219354#M5712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mmmm, the problem is that ipcfg_bind_dhcp_wait(...) returns always 0,&lt;/P&gt;&lt;P&gt;because when this function is not able to get an IP address via DHCP, it&lt;/P&gt;&lt;P&gt;assigns the default IP address. So, the returned value is 0 because this&lt;/P&gt;&lt;P&gt;default assignation is always OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can see is that, in &lt;STRONG&gt;ipcfg.c,&lt;/STRONG&gt; function &lt;STRONG&gt;ipcfg_poll_dhcp_internal&lt;/STRONG&gt;()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if (_lwsem_poll (&amp;amp;(ipcfg_data[device].dhcp_response_semaphore)))&lt;/P&gt;&lt;P&gt;    {&lt;/P&gt;&lt;P&gt;        if (ipcfg_data[device].actual_state == IPCFG_STATE_BUSY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the execution point enters the first condition, the second condition&lt;/P&gt;&lt;P&gt;is always different to IPCFG_STATE_BUSY (in fact, its value is UNBOUND), so&lt;/P&gt;&lt;P&gt;it is assigned an error = RTCSERR_IPCFG_BIND and it is proceed with the&lt;/P&gt;&lt;P&gt;default values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you again for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Oct 19, 2012 at 12:19 PM, Martin Latal &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 10:45:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219354#M5712</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2012-10-19T10:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219355#M5713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should get a switch with port mirroring. this way you would be able to capture also dhcp server responses. &lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/Port_mirroring" title="http://en.wikipedia.org/wiki/Port_mirroring"&gt;Port mirroring - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let's try the other way round - in dhcpclnt.c there are 3 lines where DHCPCLNT_decline() function is called. Which one of the 3 possibilites executes ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 11:27:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219355#M5713</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2012-10-19T11:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219356#M5714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   packet_option = DHCP_find_option(opt, len, DHCPOPT_SERVERID);&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;   if ( !packet_option || ntohc(packet_option + 1) != 4 ) {&lt;/P&gt;&lt;P&gt;      /* Server id option is required in all DHCP responses */&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;DHCPCLNT_decline&lt;/STRONG&gt;( dhcp_ptr, RTCSERR_DHCP_SERVER_OPTION_MISSING );&lt;/P&gt;&lt;P&gt;      dhcp_ptr-&amp;gt;NEW_DATA.ServerIp = *temp_addr;&lt;/P&gt;&lt;P&gt;      *error = RTCSERR_DHCPCLNT_ERROR_DECLINED;&lt;/P&gt;&lt;P&gt;      return 0;&lt;/P&gt;&lt;P&gt;   } else  {&lt;/P&gt;&lt;P&gt;      packet_option += 2;&lt;/P&gt;&lt;P&gt;      *current_ip = ntohl(packet_option);&lt;/P&gt;&lt;P&gt;   } /* Endif */&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the other hand, I will try to know about the port mirroring posibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Oct 19, 2012 at 1:27 PM, Martin Latal &amp;lt;admin@community.freescale.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 13:36:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219356#M5714</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2012-10-19T13:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: DHCP problem with some routers</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219357#M5715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might be a physical problem.&amp;nbsp; Are you 100 or 10?&amp;nbsp; I had this exact problem using a microchip pic32 and a old phy 10 mb only.&amp;nbsp; Our layout had the +/- swapped.&amp;nbsp; The phy was able to deal with Auto MDIX, not +/- flipped.&lt;/P&gt;&lt;P&gt;It took forever to troubleshoot, it was never a problem with our MCF52233 with the built in 100mb phy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 16:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DHCP-problem-with-some-routers/m-p/219357#M5715</guid>
      <dc:creator>RayS</dc:creator>
      <dc:date>2012-10-19T16:13:00Z</dc:date>
    </item>
  </channel>
</rss>

