Re: [lwip-users] Advise on PPPoS implementation

2017-11-01 Thread Raivis
Hi, I just connected the satellite modem to the micro-controller, and I get the same results. Where I'm able to establish the PPP session, but it won't connect to my TCP server. I wanted to ask, is there a debug define I can enable which would let me know what bytes it tried to transfer over the

Re: [lwip-users] "HIDE the declaration of PBUF STRUCT in pbuf.h"

2017-11-01 Thread goldsimon
antonio wrote: >I *moved* the declaration of *struct pbuf from pbuf.h to pbuf.c*. That won't work as in many places the struct needs to be known. Including sizeof() and other direct instantiations (not via pbuf_alloc). We started a scheme for private header files to solve this. Simon

[lwip-users] "HIDE the declaration of PBUF STRUCT in pbuf.h"

2017-11-01 Thread antonio
Hi all, I *moved* the declaration of *struct pbuf from pbuf.h to pbuf.c*. In addition, I also *created functions for accessing and setting pbuf struct fields*. Then I went in all the files and *replaced direct access to my provided functions using "Coccinelle" *. However, I have many compilation

Re: [lwip-users] Question about DHCP server and 2nd layer delivery

2017-11-01 Thread antonio
Hi Xiaomin, There is not a DHCP server in Lwip, however, you can find one around the web and try to integrate it into your application. A quick check on the web, I found code for basic DHCP servers... here is an example.. https://github.com/crossbowerbt/dhcpserver/blob/master/dhcpserver.c