[lwip-users] TCP Receive Timeout

2019-12-18 Thread Yacob Hassidim
Hello all,

 

I use LwIP version 2.0.3.

 

I want to define timeout for TCP receive.

 

LwIP allows to define the following options:

- LWIP_TCPIP_TIMEOUT

- LWIP_SO_RCVTIMEO

 

Which of them shall be enabled for receive timeout?

 

The timeout value shall be set by the function netconn_set_recvtimeout().

Can I use netconn_set_recvtimeout() at any time or it must be at system
startup?

 

Thanks.

 

Yacob Hassidim.

 

 

 

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] LWIP IPV6 UDP STM32f746

2019-12-18 Thread Simon Goldschmidt



On 18.12.19 08:00, ajnlwip wrote:

Is there anyone that is using ipv6 with LWIP and raw udp interface?
If so, it would be nice if you can share some code. I am using stm32f746


Depending on which kind of problems you see, it might be better to ask a
more generic question. I don't see why IPv6 on that stm32 should be much
different from any other platform.

Regards,
Simon

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] fragmentation failure with stm32 if length > 1704

2019-12-18 Thread Simon Goldschmidt
ranran wrote:
> Hi,
>
> I've solved this issue after increasing size as was suggested here. Thanks !
> (The issue was also posted here:
> https://community.st.com/s/question/0D50XBozSc5SQE/ethernet-fragmentation-issues)
>
> Yet, whenever lwip receives (from PC) big packet , above its limit, it gets
> into exception as was described above.

I didn't quite get the post which seemed to suggest to increase some size, but
this still seems like a driver issue. lwIP does *not* in general have problems
with this!

>
> This seems like a high security issue.

Yes, it is!

>
> Any idea how it can be solved ?

Fix your driver :-)

Maybe your MAC just accepts jumbo packets? The idea of fragmentation is that
jumbo packets are split into multiple packets of 1514 bytes max each...

Regards,
Simon

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] fragmentation failure with stm32 if length > 1704

2019-12-18 Thread ranran
Hi,

I've solved this issue after increasing size as was suggested here. Thanks !
(The issue was also posted here:
https://community.st.com/s/question/0D50XBozSc5SQE/ethernet-fragmentation-issues)

Yet, whenever lwip receives (from PC) big packet , above its limit, it gets
into exception as was described above.

This seems like a high security issue.

Any idea how it can be solved ?

Thanks



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users