[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #9541] ppp: add get state pointer macro
From: |
Joel Cunningham |
Subject: |
[lwip-devel] [patch #9541] ppp: add get state pointer macro |
Date: |
Wed, 17 Jan 2018 09:35:09 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 |
Follow-up Comment #6, patch #9541 (project lwip):
I'm using the netif->state pointer to store external state data that needs to
be maintained per netif. Rather than have a separate table and link each
entry its corresponding netif, it is easier to use the state pointer and
existing netif_list.
In terms of how I'm over-riding it, I'm using the netif extended callback and
when netif_add is invoked, over-ride the state in my callback with a new
structure that also stores the original state pointer. This is only needed
for netifs that aren't my own (loopback, winpcap, ppp).
I'm not as familiar with netif_client_data but I took a look and that would
allow me to achieve the same thing since I just need to store a pointer for
each netif.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?9541>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #9541] ppp: add get state pointer macro, Joel Cunningham, 2018/01/16
- [lwip-devel] [patch #9541] ppp: add get state pointer macro, Simon Goldschmidt, 2018/01/17
- [lwip-devel] [patch #9541] ppp: add get state pointer macro, Dirk Ziegelmeier, 2018/01/17
- [lwip-devel] [patch #9541] ppp: add get state pointer macro, Simon Goldschmidt, 2018/01/17
- [lwip-devel] [patch #9541] ppp: add get state pointer macro, Dirk Ziegelmeier, 2018/01/17
- [lwip-devel] [patch #9541] ppp: add get state pointer macro, Simon Goldschmidt, 2018/01/17
- [lwip-devel] [patch #9541] ppp: add get state pointer macro,
Joel Cunningham <=
- [lwip-devel] [patch #9541] ppp: add get state pointer macro, Dirk Ziegelmeier, 2018/01/17
- [lwip-devel] [patch #9541] ppp: add get state pointer macro, Joel Cunningham, 2018/01/17