lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #14314] Implement interface name/index APIs


From: Joel Cunningham
Subject: [lwip-devel] [task #14314] Implement interface name/index APIs
Date: Fri, 20 Jan 2017 04:53:39 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #1, task #14314 (project lwip):

Attached patch adds the following APIs:

Interface Identification APIs from RFC 3493:
  * lwip_if_nametoindex (COMPAT macro if_nametoindex)
  * lwip_if_indextoname (COMPAT macro if_indextoname)

netifapi:
  * netifapi_netif_name_to_index
  * netifapi_netif_index_to_name

netif:
  * netif_name_to_index
  * netif_index_to_name
  * netif_num_to_index
  * netif_index_to_num

I think the implementation turned out fairly straight forward. RFC 3493
introduces a new header (net/if.h) containing API.  Top level APIs are in
if.c

netifapi_ functions turned out a little clunkier than I wanted because they
must return err_t due to NETIFAPI_VAR_ALLOC when LWIP_MPU_COMPATBILE is
enabled

netif APIs were structured after standards API

I have also attached a lwip-contrib patch for adding some shell commands for
testing and integrating into VS project files.  I'll need help updating the
other ports

(file #39516, file #39517)
    _______________________________________________________

Additional Item Attachment:

File name: 0001-Task-14314-Add-interface-name-index-APIs.patch Size:14 KB
File name: 0001-Add-interface-support-to-shell-and-VS-project-file.patch
Size:5 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?14314>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]