<?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>MCUXpresso SDK中的主题 SDK API to get network interface details</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-API-to-get-network-interface-details/m-p/1407858#M3569</link>
    <description>&lt;P&gt;I am using imxrt1170 board with SDK 2.10.1 for testing TCP communication. I need to read the network interface details from my task. Similar to the linux api&amp;nbsp;getifaddrs. I found that the stack keeps the network details in netif structure but couldn't find an API to get the same. Kindly please help.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 06:12:32 GMT</pubDate>
    <dc:creator>Sreeshma</dc:creator>
    <dc:date>2022-02-02T06:12:32Z</dc:date>
    <item>
      <title>SDK API to get network interface details</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-API-to-get-network-interface-details/m-p/1407858#M3569</link>
      <description>&lt;P&gt;I am using imxrt1170 board with SDK 2.10.1 for testing TCP communication. I need to read the network interface details from my task. Similar to the linux api&amp;nbsp;getifaddrs. I found that the stack keeps the network details in netif structure but couldn't find an API to get the same. Kindly please help.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 06:12:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-API-to-get-network-interface-details/m-p/1407858#M3569</guid>
      <dc:creator>Sreeshma</dc:creator>
      <dc:date>2022-02-02T06:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: SDK API to get network interface details</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-API-to-get-network-interface-details/m-p/1407900#M3571</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to LwIP API&lt;/P&gt;
&lt;P&gt;struct netif * netif_get_by_index(u8_t idex)&lt;/P&gt;
&lt;P&gt;struct netif* netif_find(const char *name)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to below link for more details&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nongnu.org/lwip/2_1_x/group__netif.html" target="_blank"&gt;https://www.nongnu.org/lwip/2_1_x/group__netif.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 08:16:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-API-to-get-network-interface-details/m-p/1407900#M3571</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2022-02-02T08:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: SDK API to get network interface details</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-API-to-get-network-interface-details/m-p/1407926#M3572</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/369"&gt;@danielchen&lt;/a&gt;&amp;nbsp;thank u so much for the quick response.&lt;/P&gt;&lt;P&gt;If I call&amp;nbsp;&lt;SPAN&gt;struct netif * netif_get_by_index(u8_t idex) from my task the execution gets aborted at&amp;nbsp;sys_assert. Same is the case with&amp;nbsp;netif_find. Exception&amp;nbsp;occurs from&amp;nbsp;LWIP_ASSERT_CORE_LOCKED();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can use below APIs&lt;/P&gt;&lt;P&gt;unsigned int&lt;BR /&gt;lwip_if_nametoindex(const char *ifname)&lt;/P&gt;&lt;P&gt;char *&lt;BR /&gt;lwip_if_indextoname(unsigned int ifindex, char *ifname)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 08:55:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-API-to-get-network-interface-details/m-p/1407926#M3572</guid>
      <dc:creator>Sreeshma</dc:creator>
      <dc:date>2022-02-02T08:55:49Z</dc:date>
    </item>
  </channel>
</rss>

