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: David van Moolenbroek
Subject: [lwip-devel] [task #14314] Implement interface name/index APIs
Date: Fri, 20 Jan 2017 20:37:27 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

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

Yes :) Specifically I have an array of netif-containing structures, so I use
an O(n) lookup to find a free one (a free list would make that O(1), even).
Then I can set netif->num based on the array index. As such, in my use case,
the netif_num value is completely unused, so it's also not a problem if it
overflows or whatever, as long as I can set netif->num myself.

    _______________________________________________________

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]