lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] recv_avail field of netconn structure


From: Stathis Voukelatos
Subject: [lwip-devel] recv_avail field of netconn structure
Date: Wed, 31 Jul 2013 12:06:20 +0100

Hi,

 

If LWIP_SO_RCVBUF is defined then the netconn structure contains the recv_avail field

to store the number of bytes currently sitting in the recvmbox of the netconn.

In lwip 1.4.1 the type of recv_avail is ‘s16_t’, which can cause it to overflow for large

receive buffer sizes. Should it not be an ‘int’ just as the recv_bufsize that it is compared

against?

 

Cheers,

Stathis

 

 

Stathis Voukelatos

Senior Software Engineer

Linn Products Ltd.

Glasgow Road

Eaglesham, Glasgow

G76 0EQ, UK

Tel: +44 (0)141 3035191

Email: address@hidden

 


reply via email to

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