[Top][All Lists]

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

[lwip-devel] [bug #20223] netconn_write() /tcp_enqueue() truncates data

From: Srinivas Gollakota
Subject: [lwip-devel] [bug #20223] netconn_write() /tcp_enqueue() truncates data 'size'
Date: Wed, 20 Jun 2007 14:04:26 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)


                 Summary: netconn_write() /tcp_enqueue() truncates data
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: gollakota
            Submitted on: Wednesday 06/20/2007 at 10:04
                Category: TCP
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



lwip_send() takes the 'size' parameter as 'int' where as
netconn_write(..,u16_t size,..) and 
tcp_enqueue(..,u16_t len,..)

takes it as unsigned short or u16_t. This results in truncating the data
block size if the data size is greater than 2^16. (On a architecture where
short is 16 bit)

Is there any reason for keeping the 'size' as u16_t in the netconn and tcp


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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