Re: [lwip-users] lwip2.0.2 l2tp question

2017-07-06 Thread Sylvain Rochet
Hi, On Wed, Jul 05, 2017 at 09:02:02PM -0700, odobryabov wrote: > > (...) > > pppol2tp: input packet, len=0, tunnel=47089, session=35933, ns=0, nr=0 > Data hex: ff 03 c0 21 09 1c 00 08 d9 bb 4b cc ^ LCP ^^

Re: [lwip-users] how to set the link up

2017-07-06 Thread Noam Weissman
Dear Simon, I was not offended buy any means. Your work and the input of every other person here is appreciated. You are all doing a wonderful work :-) BR, Noam. From: lwip-users on behalf of goldsi...@gmx.de

Re: [lwip-users] how to set the link up

2017-07-06 Thread goldsi...@gmx.de
Have you read about the "not meant offensive" part? Seriously, this project lives from people getting involved and sharing improvements! Simon Noam Weissman: Hi Simon, When something is working fine and does not cause any issues its overlooked. I took ST example, modified it, made it

Re: [lwip-users] how to set the link up

2017-07-06 Thread Noam Weissman
Hi Simon, When something is working fine and does not cause any issues its overlooked. I took ST example, modified it, made it general for our usage and it is running on several device without seen problems. When Silvayin pointed out on that I checked the code and modified my core !!.

Re: [lwip-users] how to set the link up

2017-07-06 Thread goldsi...@gmx.de
Noam Weissman wrote: THANKS for pointing this out !!!. I am using the code I sent for several years and was not aware of that :-( I must say now I'm a little bit shocked. You already pointed out lwIP has threading requirements on this list more than once. And still you've got it wrong. What

[lwip-users] LwIP data management

2017-07-06 Thread Tilen MAJERLE
Hello to all users, this is my first post so I hope I'm not in any violation. In past few days I'm studying LwIP arhitecture very deeply in the code and I can't find to understand one thing so far. I'm looking at RAW mode and TCP connection, something like: tcp_new(), tcp_connect() -> wait

Re: [lwip-users] how to set the link up

2017-07-06 Thread massimiliano cialdi
sorry, I was too inattentive and too fast to write my previously mail. I still apologize best regards Max Powersoft logo *Massimiliano Cialdi |*Senior Firmware Engineer *skype:* mci.pws *| email:* massimiliano.cia...@powersoft.it

Re: [lwip-users] how to set the link up

2017-07-06 Thread Dirk Ziegelmeier
Seriously, Max, if I send you a link to the lwIP docs, the I can at least expect you ​ READ AND try HARD to UNDERSTAND the docs.​ You really can answer that question by yourself.​ Read the page that I sent you, and several other pages in the docs, there are many questions answered in there

Re: [lwip-users] how to set the link up

2017-07-06 Thread massimiliano cialdi
About thread safe, in all the examples I found the sequence of instructions is this: tcpip_init(NULL, NULL); netif_add(_netif0, _netif0_ipaddr, _netif0_netmask, _netif0_gw, NULL, ethernetif_init, tcpip_input); netif_set_default(_netif0); netif_set_up(_netif0); I guess that

Re: [lwip-users] seting up ip address after initialization

2017-07-06 Thread Dirk Ziegelmeier
http://www.nongnu.org/lwip/2_0_x/group__netifapi__netif.html ​HTH Dirk On Thu, Jul 6, 2017 at 12:16 PM, massimiliano cialdi < massimiliano.cia...@powersoft.it> wrote: > I have to set the ip address after initialization. > > I guess I have to pass 0.0.0.0 as ip address, netmask and gw to call

[lwip-users] seting up ip address after initialization

2017-07-06 Thread massimiliano cialdi
I have to set the ip address after initialization. I guess I have to pass 0.0.0.0 as ip address, netmask and gw to call to netif_add(). I wonder which api (thread safe?) to call to set the proper ip address at a later time. best regards Max

Re: [lwip-users] PPPoS: ppp session disconnect if hit bad fcs for LCP packet

2017-07-06 Thread Axel Lin
2017-07-01 12:28 GMT+08:00 Axel Lin : > 2017-07-01 0:47 GMT+08:00 Patrick Klos : >> On 6/30/2017 11:18 AM, Axel Lin wrote: >>> >>> It's not easy to hit this issue, usually it needs to run for a couple >>> hours or more than one day. >>> But the symptom seems