lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9541] ppp: add get state pointer macro


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #9541] ppp: add get state pointer macro
Date: Wed, 17 Jan 2018 00:53:19 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

Follow-up Comment #1, patch #9541 (project lwip):

Well, in the windows port, this is a rather ugly hack which I only did to
prevent making the code handle something which I thought nobody else really
needed. In that particular situation, we are using the pcap netif to run a
simulation of our code on windows. Our driver code only delegates the I/O work
to the pcap netif. Since this invokes C++ classes, this is even more hacky
since I cannot define the offset via "offsetof" without compiling C code as
C++ code...

The downside is that you need a place where you exchange the netif state. This
is not even documented for the pcap netif.

Before just applying this, can you tell us more about why you need this? Maybe
we can come up with an alternative which is easier to use and cleaner...

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9541>

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




reply via email to

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