[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: |
Wed, 1 Feb 2017 13:19:25 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 |
Follow-up Comment #31, task #14314 (project lwip):
> To me, the API provided by netif.h would better work on 'num' only and the
conversion +/-1 to index should be done in if.c?
It may be worth noting that my scopes patch relies on the netif calls doing
the +1 conversion, as IP6_NO_ZONE (0) is a special value. As such there is a
reason to have this convention in the core layer too, and so I would keep this
as is.
> The question is how would David improve this for his many-netifs case?
Oh I don't have that many either; ten netifs is currently my maximum
concurrent total. There may be a high turnover though, since my implementation
supports dynamic pseudodevices - e.g. I have tests that dynamically create and
destroy an additional loopback device for each subtest. As before: as long as
I can override the value of 'num' from the init callback, I don't really mind
what netif_add() sets it to (or how). If netif_add() guarantees uniqueness I
can work with that as well, but I'm entirely happy with the way things are
right now, too.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?14314>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #14314] Implement interface name/index APIs, Dirk Ziegelmeier, 2017/02/01
- [lwip-devel] [task #14314] Implement interface name/index APIs, Simon Goldschmidt, 2017/02/01
- [lwip-devel] [task #14314] Implement interface name/index APIs, Dirk Ziegelmeier, 2017/02/01
- [lwip-devel] [task #14314] Implement interface name/index APIs,
David van Moolenbroek <=
- [lwip-devel] [task #14314] Implement interface name/index APIs, David van Moolenbroek, 2017/02/01
- [lwip-devel] [task #14314] Implement interface name/index APIs, Simon Goldschmidt, 2017/02/01
- [lwip-devel] [task #14314] Implement interface name/index APIs, David van Moolenbroek, 2017/02/01
- [lwip-devel] [task #14314] Implement interface name/index APIs, Joel Cunningham, 2017/02/01
- [lwip-devel] [task #14314] Implement interface name/index APIs, Joel Cunningham, 2017/02/02
- [lwip-devel] [task #14314] Implement interface name/index APIs, Simon Goldschmidt, 2017/02/03
- [lwip-devel] [task #14314] Implement interface name/index APIs, Joel Cunningham, 2017/02/03
- [lwip-devel] [task #14314] Implement interface name/index APIs, Joel Cunningham, 2017/02/03
- [lwip-devel] [task #14314] Implement interface name/index APIs, Simon Goldschmidt, 2017/02/03
- [lwip-devel] [task #14314] Implement interface name/index APIs, Joel Cunningham, 2017/02/03